|
@@ -18,15 +18,26 @@ dbsyncer.web.task.executor.core-size=10
|
|
# 同步任务线程池队列
|
|
# 同步任务线程池队列
|
|
dbsyncer.web.task.executor.queue-capacity=1000
|
|
dbsyncer.web.task.executor.queue-capacity=1000
|
|
|
|
|
|
|
|
+#storage
|
|
|
|
+# 是否使用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
|
|
|
|
+dbsyncer.storage.support.mysql.config.password=123
|
|
|
|
+# binlog指持久化增量数据到磁盘的任务
|
|
|
|
+# 从磁盘批量读取的任务数
|
|
|
|
+dbsyncer.storage.binlog.recorder.batch-count=10000
|
|
|
|
+# 最长处理时间(秒),在限定的时间内提交的任务没有被成功消费,将会重复执行
|
|
|
|
+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
|
|
|
|
+
|
|
#parser
|
|
#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-开启)
|
|
# 是否缓存同步任务。(false-关闭; true-开启)
|
|
# true: 不优先持久化磁盘,同步效率高,缓存队列溢出也会将持久化磁盘,可能丢失任务;
|
|
# true: 不优先持久化磁盘,同步效率高,缓存队列溢出也会将持久化磁盘,可能丢失任务;
|
|
# false: 先持久化到磁盘,同步效率低,定时从磁盘读取任务到缓存队列,不会丢失任务。
|
|
# false: 先持久化到磁盘,同步效率低,定时从磁盘读取任务到缓存队列,不会丢失任务。
|
|
@@ -39,6 +50,14 @@ dbsyncer.parser.flush.buffer.actuator.batch-count=1000
|
|
dbsyncer.parser.flush.buffer.actuator.queue-capacity=100000
|
|
dbsyncer.parser.flush.buffer.actuator.queue-capacity=100000
|
|
# 定时消费缓存队列间隔(毫秒)
|
|
# 定时消费缓存队列间隔(毫秒)
|
|
dbsyncer.parser.flush.buffer.actuator.period-millisecond=300
|
|
dbsyncer.parser.flush.buffer.actuator.period-millisecond=300
|
|
|
|
+# 是否记录全量数据(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
|
|
|
|
|
|
#plugin
|
|
#plugin
|
|
# 是否开启邮箱通知功能(false-关闭; true-开启)
|
|
# 是否开启邮箱通知功能(false-关闭; true-开启)
|
|
@@ -50,25 +69,6 @@ dbsyncer.plugin.notify.mail.username=your mail username
|
|
# 发邮件的Code(注:不是邮箱密码),示例:wqoxxxxxxdflbbig
|
|
# 发邮件的Code(注:不是邮箱密码),示例:wqoxxxxxxdflbbig
|
|
dbsyncer.plugin.notify.mail.password=your mail authorization code
|
|
dbsyncer.plugin.notify.mail.password=your mail authorization code
|
|
|
|
|
|
-#storage
|
|
|
|
-# binlog:指将增量任务持久化写到磁盘的任务
|
|
|
|
-# 从磁盘批量读取的任务数
|
|
|
|
-dbsyncer.storage.binlog.recorder.batch-count=10000
|
|
|
|
-# 最长处理时间(秒),在限定的时间内提交的任务没有被成功消费,将会重复执行
|
|
|
|
-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
|
|
|
|
-dbsyncer.storage.support.mysql.config.password=123
|
|
|
|
-
|
|
|
|
#monitor
|
|
#monitor
|
|
management.endpoints.web.base-path=/app
|
|
management.endpoints.web.base-path=/app
|
|
management.endpoints.web.exposure.include=*
|
|
management.endpoints.web.exposure.include=*
|