config_on.yaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #源端配置
  2. ses:
  3. addr: "http://127.0.0.1:9902"
  4. #当源和目标不在一个集群中时要使用,确保双方通信正常
  5. sync: "http://192.168.0.229:45008"
  6. index: "bidding_v1"
  7. stype: "bidding"
  8. #可以增加sql,限定数据范围
  9. #boolsql: '{"bool":{"must_not":[{"terms":{"toptype":["采购意向","拟建"]}}]}}'
  10. user: "es_all"
  11. pwd: "TopJkO2E_d1x"
  12. size: 3
  13. #目标端配置
  14. des:
  15. addr: "http://127.0.0.1:19902"
  16. index: "bidding_year"
  17. stype: "bidding"
  18. #当需要指定同步字段时要使用,比如同步到未登录用户只需要个别字段,同步全部字段请注释此行
  19. #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"]
  20. user: "jybid"
  21. pwd: "Top2023_JEB01i@31"
  22. size: 3
  23. # id支持时间19位格式和id24位格式---------id支持两种模式,不能混合使用
  24. #gtid: "650ea35ce17a7c80fbe231ed"
  25. gtid: "2023-09-25 00:00:00"
  26. lteid: "2023-09-25 20:00:00"
  27. #lteid: "650eb13de2d7d34fa0415373"
  28. #同步模式mode 1是初始模式源到目标 2双向同步 3是定时源到目标模式 4双向定时
  29. mode: 3
  30. # 数据连续模式 0默认 1最大id 2比较
  31. lastmode: 0
  32. # 空跑输出差异结果,不同步数据,false时表示不空跑且同步数据
  33. synctest: true
  34. # 当为定时模式时,使用sync下的配置,支持多套定时方案,且lastmode使用下面的子配置
  35. sync:
  36. -
  37. # 定时频率,每60秒执行一次
  38. freq: 600
  39. # 执行时,选定数据截止到10分钟之前
  40. before: 3600
  41. # 数据同步模式,1为最目标端最大id
  42. lastmode: 0
  43. # 数据范围为数据截止时间的前300秒
  44. scope: 86400