SymmetricDS Spring 使用嵌入式客户端启动
SymmetricDS Spring boot with Embedded Clients
是否可以只有客户端类型的节点?[=14=]
当我的 Spring 启动应用程序与 SymmetricDS Client 一起启动时,我在日志中看到以下内容:
SymmetricDS: type=client......
如果所有节点都将相互同步并且没有服务器怎么办?
我有以下代码:
public ClientNode(File file) throws IOException {
propFile = file;
Properties propertiesFile = new Properties();
propertiesFile.load(new FileReader(propFile));
cEngine = new ClientSymmetricEngine(propertiesFile, false);
getcEngine().setup();
getcEngine().openRegistration("client", "001");
getcEngine().start();
}
他们将如何相互注册?我有以下属性:
external.id=001
engine.name=client-001
sync.url=http://localhost:8080/sync/client-001
group.id=client
db.url=jdbc:h2:mem:testdb;LOCK_TIMEOUT=60000
db.driver=org.h2.Driver
db.user=USER
registration.url=http://localhost:31415/sync/server
db.password=PW
job.routing.period.time.ms=5000
job.push.period.time.ms=10000
job.pull.period.time.ms=10000
initial.load.create.first=true
auto.config.database=true
#I was hoping this will make it register
auto.registration=true
auto_reload=true
您需要将其中一个节点升级为服务器。它将用于配置系统并针对
注册所有客户端
是否可以只有客户端类型的节点?[=14=]
当我的 Spring 启动应用程序与 SymmetricDS Client 一起启动时,我在日志中看到以下内容:
SymmetricDS: type=client......
如果所有节点都将相互同步并且没有服务器怎么办?
我有以下代码:
public ClientNode(File file) throws IOException {
propFile = file;
Properties propertiesFile = new Properties();
propertiesFile.load(new FileReader(propFile));
cEngine = new ClientSymmetricEngine(propertiesFile, false);
getcEngine().setup();
getcEngine().openRegistration("client", "001");
getcEngine().start();
}
他们将如何相互注册?我有以下属性:
external.id=001
engine.name=client-001
sync.url=http://localhost:8080/sync/client-001
group.id=client
db.url=jdbc:h2:mem:testdb;LOCK_TIMEOUT=60000
db.driver=org.h2.Driver
db.user=USER
registration.url=http://localhost:31415/sync/server
db.password=PW
job.routing.period.time.ms=5000
job.push.period.time.ms=10000
job.pull.period.time.ms=10000
initial.load.create.first=true
auto.config.database=true
#I was hoping this will make it register
auto.registration=true
auto_reload=true
您需要将其中一个节点升级为服务器。它将用于配置系统并针对
注册所有客户端