config.ini 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. [canal]
  2. # MySQL host
  3. host = 127.0.0.1
  4. # MySQL port
  5. port = 3326
  6. # MySQL user, must have replication privilege
  7. user = root
  8. # MySQL password
  9. password = root
  10. # Flavor: mysql or mariadb
  11. flavor = mariadb
  12. # Unique Server ID
  13. serverID = 101
  14. # mysqldump execution path
  15. mysqldump = mysqldump
  16. # dump databases, seperated by comma
  17. dbs = tmrwatch1
  18. # dump tables, seperated by comma, will overwrite dbs
  19. tables = barfeedremain,barmilk,templetdry,downloadedplan,downloadplandtl1,downloadplandtl1_exec,downloadplandtl2,recweight
  20. # barfeedremain,barmilk,templetdry,downloadedplan,downloadplandtl1,downloadplandtl1_exec,downloadplandtl2,recweight
  21. # database for dump tables, seperated by comma, will overwrite dbs
  22. tableDB = tmrwatch1
  23. # ignore tables, must be database.table format, separated by comma
  24. ignoreTables =
  25. # start sync from binlog name
  26. startName =
  27. # start sync from binlog position of
  28. startPos =
  29. # master heartbeat period(*time.Second)
  30. heartbeatPeriod = 60
  31. # connection read timeout(*time.Second)
  32. readTimeout = 90
  33. # nodename key name intpastureid
  34. nodename = pasturecode
  35. # nodevalue value
  36. nodevalue = test
  37. # showlog
  38. showlog = 0
  39. onetimerows = 500
  40. [kafka]
  41. # enable kafka
  42. kafkaEnable = false
  43. Offset =
  44. kafka_host = www.kptyun.com
  45. kafka_port = 9092
  46. kafka_topic = tmrwatch_uploaddata_
  47. saslEnable = false
  48. username = root
  49. saslpassword = root
  50. tlsEnable = false
  51. clientcert =
  52. clientkey =
  53. cacert =
  54. [mqtt]
  55. # enable kafka
  56. mqttEnable = true
  57. topic = MyIotThing_
  58. qos = 1
  59. CleanSession = true
  60. host = 218.241.17.66
  61. port = 1983
  62. path =
  63. #host = auuhfh5e8d294-ats.iot.us-east-2.amazonaws.com
  64. #port = 8883
  65. #path = /MyIotThing
  66. saslEnable = true
  67. username = kptmqtt
  68. saslpassword = kepaiteng
  69. tlsEnable = false
  70. clientcert = pem/bbbc7ee0f6-certificate.pem.crt
  71. clientkey = pem/bbbc7ee0f6-private.pem.key
  72. cacert =
  73. [Service]
  74. ServiceName = KPTCanalService
  75. ServiceDisplayName = KPTCanalService
  76. ServiceDescription = 科湃腾数据同步服务