12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #源端配置
- ses:
- addr: "http://127.0.0.1:9902"
- #当源和目标不在一个集群中时要使用,确保双方通信正常
- sync: "http://192.168.0.229:45008"
- index: "bidding_v1"
- stype: "bidding"
- #可以增加sql,限定数据范围
- #boolsql: '{"bool":{"must_not":[{"terms":{"toptype":["采购意向","拟建"]}}]}}'
- user: "es_all"
- pwd: "TopJkO2E_d1x"
- size: 3
- #目标端配置
- des:
- addr: "http://127.0.0.1:19902"
- index: "bidding_year"
- stype: "bidding"
- #当需要指定同步字段时要使用,比如同步到未登录用户只需要个别字段,同步全部字段请注释此行
- #fields: ["area","autoid","bidamount","bidstatus","budget","buyer","buyerclass","city","comeintime","createtime","dataweight","detail","district","entidlist","href","id","multipackage","pici","projectcode","publishtime","s_subscopeclass","s_topscopeclass","site","subtype","title","topscopeclass","toptype"]
- user: "jybid"
- pwd: "Top2023_JEB01i@31"
- size: 3
- # id支持时间19位格式和id24位格式---------id支持两种模式,不能混合使用
- #gtid: "650ea35ce17a7c80fbe231ed"
- gtid: "2023-09-25 00:00:00"
- lteid: "2023-09-25 20:00:00"
- #lteid: "650eb13de2d7d34fa0415373"
- #同步模式mode 1是初始模式源到目标 2双向同步 3是定时源到目标模式 4双向定时
- mode: 3
- # 数据连续模式 0默认 1最大id 2比较
- lastmode: 0
- # 空跑输出差异结果,不同步数据,false时表示不空跑且同步数据
- synctest: true
- # 当为定时模式时,使用sync下的配置,支持多套定时方案,且lastmode使用下面的子配置
- sync:
- -
- # 定时频率,每60秒执行一次
- freq: 600
- # 执行时,选定数据截止到10分钟之前
- before: 3600
- # 数据同步模式,1为最目标端最大id
- lastmode: 0
- # 数据范围为数据截止时间的前300秒
- scope: 86400
|