|
@@ -1,37 +1,69 @@
|
|
|
# see more: https://my.oschina.net/dbsyncer/blog/8652905
|
|
|
+# 服务IP
|
|
|
server.ip=127.0.0.1
|
|
|
+# 访问端口
|
|
|
server.port=18686
|
|
|
+# 会话过期时间(秒)
|
|
|
server.servlet.session.timeout=1800
|
|
|
+# 访问服务的路径,‘/’ -> http://${server.ip}:${server.port}/
|
|
|
server.servlet.context-path=/
|
|
|
|
|
|
#web
|
|
|
+# 机器的唯一编号(单机部署则填默认值; 部署集群时, 要保证编号在集群中唯一)
|
|
|
dbsyncer.web.worker.id=1
|
|
|
+# 定时任务线程数
|
|
|
dbsyncer.web.task.scheduler.pool-size=8
|
|
|
+# 同步任务线程数
|
|
|
dbsyncer.web.task.executor.core-size=10
|
|
|
+# 同步任务线程池队列
|
|
|
dbsyncer.web.task.executor.queue-capacity=1000
|
|
|
|
|
|
#parser
|
|
|
+# 是否记录全量数据(false-关闭; true-开启)
|
|
|
dbsyncer.parser.flush.data.full.enabled=false
|
|
|
+# 是否记录同步成功数据(false-关闭; true-开启)
|
|
|
dbsyncer.parser.flush.data.writer-success=true
|
|
|
+# 是否记录同步失败数据(false-关闭; true-开启)
|
|
|
dbsyncer.parser.flush.data.writer-fail=true
|
|
|
+# 记录同步失败日志最大长度
|
|
|
dbsyncer.parser.flush.data.max-error-length=2048
|
|
|
+# 是否缓存同步任务。(false-关闭; true-开启)
|
|
|
+# true: 不优先持久化磁盘,同步效率高,缓存队列溢出也会将持久化磁盘,可能丢失任务;
|
|
|
+# false: 先持久化到磁盘,同步效率低,定时从磁盘读取任务到缓存队列,不会丢失任务。
|
|
|
dbsyncer.parser.flush.buffer.actuator.speed.enabled=true
|
|
|
+# 单次执行批量同步任务数
|
|
|
dbsyncer.parser.flush.buffer.actuator.writer-batch-count=100
|
|
|
+# 每次从同步任务缓存队列消费的任务数
|
|
|
dbsyncer.parser.flush.buffer.actuator.batch-count=1000
|
|
|
+# 同步任务缓存队列容量
|
|
|
dbsyncer.parser.flush.buffer.actuator.queue-capacity=100000
|
|
|
+# 定时消费缓存队列间隔(毫秒)
|
|
|
dbsyncer.parser.flush.buffer.actuator.period-millisecond=300
|
|
|
|
|
|
#plugin
|
|
|
+# 是否开启邮箱通知功能(false-关闭; true-开启)
|
|
|
+# 进入Web管理页面:配置 >> 用户管理,给用户配置邮箱即可接受通知消息
|
|
|
+# 默认间隔10分钟触发一次通知消息,满足发通知条件:1、驱动有失败数据 2、手动停止驱动
|
|
|
dbsyncer.plugin.notify.mail.enabled=false
|
|
|
+# 发邮箱的账号,示例:836391306@qq.com
|
|
|
dbsyncer.plugin.notify.mail.username=your mail username
|
|
|
+# 发邮件的Code(注:不是邮箱密码),示例:wqoxxxxxxdflbbig
|
|
|
dbsyncer.plugin.notify.mail.password=your mail authorization code
|
|
|
|
|
|
#storage
|
|
|
+# binlog:指将增量任务持久化写到磁盘的任务
|
|
|
+# 从磁盘批量读取的任务数
|
|
|
dbsyncer.storage.binlog.recorder.batch-count=3000
|
|
|
+# 最长处理时间(秒),在限定的时间内提交的任务没有被成功消费,将会重复执行
|
|
|
dbsyncer.storage.binlog.recorder.max-processing-seconds=120
|
|
|
+# 任务队列容量
|
|
|
dbsyncer.storage.binlog.recorder.queue-capacity=10000
|
|
|
+# 写磁盘间隔(毫秒)
|
|
|
dbsyncer.storage.binlog.recorder.writer-period-millisecond=500
|
|
|
+# 读磁盘间隔(毫秒)
|
|
|
dbsyncer.storage.binlog.recorder.reader-period-millisecond=2000
|
|
|
+# 是否使用MySQL存储配置(false-关闭; true-开启)
|
|
|
+# false: 保存磁盘/data/{binlog(同步任务)|config(驱动配置)|data(按驱动分别存储增量数据)|log(系统日志)}
|
|
|
dbsyncer.storage.support.mysql.enabled=false
|
|
|
dbsyncer.storage.support.mysql.config.url=jdbc:mysql://127.0.0.1:3306/dbsyncer?rewriteBatchedStatements=true&seUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai&useSSL=false&verifyServerCertificate=false&autoReconnect=true
|
|
|
dbsyncer.storage.support.mysql.config.username=root
|