SymmetricDS 官方DEMO解释及部署-QUICKSTART-1

QuickStart Explanation-1

2.1 安装

官方下载最新版,目前最新版2018.10.31号的3.9.15 Server

2.2 连接数据库

每个节点就相当于一个XXX.properties的配置文件。拿官方示例说明:

engine.name=corp-000

# The class name for the JDBC Driver
db.driver=org.h2.Driver

# The JDBC URL used to connect to the database
db.url=jdbc:h2:corp;AUTO_SERVER=TRUE;LOCK_TIMEOUT=60000

# The user to login as who can create and update tables
db.user=sa

# The password for the user to login as
db.password=

registration.url=
sync.url=http://localhost:31415/sync/corp-000

# Do not change these for running the demo
group.id=corp
external.id=000

# Don't muddy the waters with purge logging
job.purge.period.time.ms=7200000

# This is how often the routing job will be run in milliseconds
job.routing.period.time.ms=5000
# This is how often the push job will be run.
job.push.period.time.ms=10000
# This is how often the pull job will be run.
job.pull.period.time.ms=10000
# Kick off initial load
initial.load.create.first=true

engine.name:名字可以随意取,不做要求
group.id:组ID,根据示例理解就是STORE是一个节点组,包含STORE-001,STORE-002两个节点,CORP也是一个节点组仅包含一个节点CORP-000
external.id: 实际上该节点的ID
sync.url: 同步资源的链接,不能为空,让目标端节点获取配置的地方。
registration.url:注册资源的链接,如果是空的,代表着该节点就是源端节点,目标端的节点要配置为源端的地址。
db.driver:数据库驱动
db.user、db.password:数据库连接的账号、密码
db.url:数据库连接串,这里的H2配置不是很好,可以参考我的另一篇关于H2Database的连接串的文档。

其他的配置先采用默认的。

猜你喜欢

转载自blog.csdn.net/qq_19335345/article/details/84556201