config.toml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. [mongob] ## bidding 链接
  2. host = "127.0.0.1:27083"
  3. db = "qfw"
  4. coll = "bidding" ## 标讯数据标
  5. size =10
  6. username = "SJZY_RWbid_ES"
  7. password = "SJZY@B4i4D5e6S"
  8. direct = true
  9. ## 测试环境
  10. # host = "192.168.3.206:27002"
  11. # db = "qfw_data"
  12. # coll = "bidding" ## 标讯数据标
  13. # username = "root"
  14. # password = "root"
  15. [env]
  16. # filestart = "652c0c83296f2847a1c87241" ## bidding_file 起始ID
  17. # nomalstart = "652c0c85ff68a4004101fe97" ## bidding_nomal 起始ID
  18. nextaddr = "127.0.0.1" ## 调用抽取地址
  19. nextport = "1177" ## 调用抽取端口
  20. localport = ":1176" ## 本地监听端口
  21. send = false ## 是否给抽取发送数据;正式环境应为 true
  22. spec = "59 59 * * * *" ## 每天23点执行;已日更新的方式创建索引
  23. ## spec = "0 00 01 * * *" ## 每天01点执行;适合 按照月份创建索引
  24. alias = ["bidding_pre","bidding"] ## 预处理索引别名,支持多个别名
  25. spectype = "month" ## 定时任务类型;正式环境应该是 month 。day 表示每天创建一个索引;month 表示每个月创建一个;hour 每个小时创建一次
  26. [[es]] ## es集群,支持多个集群创建 预处理索引
  27. [es.19805] ## 测试环境 es集群
  28. url = "http://192.168.3.149:9201" ## 测试环境
  29. username = ""
  30. password = ""
  31. shares = "2" ## 分片数量,测试环境 是2,正式环境应该是12
  32. # url = "http://127.0.0.1:19805" ## 测试环境
  33. # username = "es_all"
  34. # password = "TopJkO2E_d1x"
  35. # shares = "12" ## 分片数量,测试环境 是2,正式环境应该是12
  36. # [es.19905]
  37. # url = "http://127.0.0.1:19905" ## 测试环境
  38. # username = "jybid"
  39. # password = "Top2023_JEB01i@31"
  40. # shares = "7" ## 分片数量,测试环境 是2,正式环境应该是 7
  41. [email]
  42. api = "http://172.17.162.36:19281/_send/_mail"
  43. to = "wangchengcheng@topnet.net.cn"
  44. [log]
  45. # 日志路径,为空将输出控制台
  46. logpath = ""
  47. # logpath = "logs/log.out"
  48. # log size (M)
  49. maxsize = 10
  50. # compress log
  51. compress = true
  52. # log save time (day)
  53. maxage = 7
  54. # save total log file total
  55. maxbackups = 10
  56. # log level
  57. loglevel = "debug"
  58. # text or json output
  59. format = "json"