config copy.ini 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. [canal]
  2. # MySQL host
  3. host = 127.0.0.1
  4. # MySQL port
  5. port = 3309
  6. # MySQL user, must have replication privilege
  7. user = root
  8. # MySQL password
  9. password = 123456
  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 = tmrwatch
  18. # dump tables, seperated by comma, will overwrite dbs templetdry
  19. tables = barfeedremain,barmilk,downloadedplan,downloadplandtl1,downloadplandtl1_exec,downloadplandtl2,recweight
  20. ; barfeedremain,barmilk,downloadedplan,downloadplandtl1,downloadplandtl1_exec,downloadplandtl2,recweight
  21. # barfeedremain,barmilk,templetdry,downloadedplan,downloadplandtl1,downloadplandtl1_exec,downloadplandtl2,recweight
  22. # database for dump tables, seperated by comma, will overwrite dbs
  23. tableDB = tmrwatch
  24. # ignore tables, must be database.table format, separated by comma
  25. ignoreTables =
  26. # start sync from binlog name
  27. startName =
  28. # start sync from binlog position of
  29. startPos =
  30. # master heartbeat period(*time.Second)
  31. heartbeatPeriod = 60
  32. # connection read timeout(*time.Second)
  33. readTimeout = 90
  34. # nodename key name intpastureid
  35. nodename = pasturecode
  36. # nodevalue value
  37. nodevalue = 111
  38. # showlog
  39. showlog = 0
  40. onetimerows = 50
  41. [kafka]
  42. # enable kafka
  43. kafkaEnable = false
  44. Offset =
  45. kafka_host = www.kptyun.com
  46. kafka_port = 9092
  47. kafka_topic = tmrwatch_uploaddata_
  48. saslEnable = false
  49. username = root
  50. saslpassword = root
  51. tlsEnable = false
  52. clientcert =
  53. clientkey =
  54. cacert =
  55. [mqtt]
  56. # enable kafka
  57. mqttEnable = true
  58. topic = TMR_TEST_03_20
  59. qos = 1
  60. CleanSession = true
  61. host = 218.241.17.66
  62. port = 1983
  63. path =
  64. #host = auuhfh5e8d294-ats.iot.us-east-2.amazonaws.com
  65. #port = 8883
  66. #path = /MyIotThing
  67. saslEnable = true
  68. username = kptmqtt
  69. saslpassword = kepaiteng
  70. tlsEnable = false
  71. clientcert = pem/bbbc7ee0f6-certificate.pem.crt
  72. clientkey = pem/bbbc7ee0f6-private.pem.key
  73. cacert =
  74. old = false
  75. [Service]
  76. ServiceName = KPTCanalService
  77. ServiceDisplayName = KPTCanalService
  78. ServiceDescription = 科湃腾数据同步服务1
  79. [barfeedremain]
  80. barname = ztFeedpName
  81. deleteField = pastureid,operatetime,emp,pid,times
  82. [barmilk]
  83. barname = feedpbname
  84. deleteField = pastureid,avgmonthage,bw,dayw,fetal,dayspre,pro,lactose,tem,cowsum,cowclass,cowclassid,bigcowclass,emp
  85. [downloadedplan]
  86. deleteField = pastureid,plantime,outitems,ptstempid,ptstempletname,thoweight,fpweight,lweight,iweight,oweight,tversion,ptversion,enable,isUse,completedtime
  87. [downloadplandtl1]
  88. flpid = FPointID
  89. dryfeed = Dry
  90. pricefeed = UPrice
  91. deleteField = pastureid,begintime,optdevice,outweight,type,date
  92. [downloadplandtl1_exec]
  93. deleteField= pastureid,flpid,begintime,optdevice,type,date
  94. [downloadplandtl2]
  95. allowratio = feedpallowratio
  96. deleteField = pastureid,type,lweighthis,remainleftw,allowrw,begintime,begintag,endtag,optdevice,bigcowname,priceweight,fpid,useinbartype,date
  97. [recweight]
  98. deleteField = pastureid