feed-job-example.toml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. version = "1.0.0"
  2. user = "nobody"
  3. pid = "/tmp/feed-job.pid"
  4. dir = "./"
  5. perf = "0.0.0.0:6411"
  6. trace = false
  7. debug = false
  8. env = "test"
  9. [xlog]
  10. dir = "/data/log/feed-job/"
  11. [bm]
  12. addr = "0.0.0.0:6410"
  13. timeout = "1s"
  14. [feedRPC]
  15. pullInterval = "10s"
  16. [feedRPC.client]
  17. proto = "tcp"
  18. timeout = "1s"
  19. timer = 1000
  20. [[feedRPC.backup]]
  21. proto = "tcp"
  22. addr = "172.16.33.56:6089"
  23. timeout = "1s"
  24. timer = 1000
  25. [feedRPC.zookeeper]
  26. root = "/microservice/feed-service/"
  27. addrs = ["172.16.33.54:2181"]
  28. timeout = "30s"
  29. [archiveSub]
  30. key = ""
  31. secret = ""
  32. group = ""
  33. topic = "Archive-T"
  34. action = "sub"
  35. [archiveSub.redis]
  36. name = "go-common/app/job/main/feed/archivesub"
  37. proto = "tcp"
  38. addr = "172.16.33.56:6205"
  39. idle = 100
  40. active = 100
  41. dialTimeout = "1s"
  42. readTimeout = "60s"
  43. writeTimeout = "1s"
  44. idleTimeout = "10s"
  45. [SMS]
  46. phone = "11111111111,11111111111"
  47. token = "token"
  48. [httpClient]
  49. dial = "100ms"
  50. timeout = "1s"
  51. keepAlive = "60s"
  52. timer = 128