live-userexp-job-example.toml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "root"
  4. pid = "/tmp/live-userexp-job.pid"
  5. dir = "./"
  6. perf = "0.0.0.0:20102"
  7. family = "live-userexp-job"
  8. env = dev
  9. [log]
  10. dir = "/data/log/live-userexp-job"
  11. [db]
  12. [db.exp]
  13. addr = "172.16.33.69:3306"
  14. dsn = "live:oWni@ElNs0P0C(dphdj*F1y4@tcp(172.16.33.69:3306)/live_user_exp?timeout=5s&readTimeout=30s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  15. active = 5
  16. idle = 5
  17. queryTimeout = "1s"
  18. execTimeout = "1s"
  19. tranTimeout = "2s"
  20. [db.exp.breaker]
  21. window = "3s"
  22. sleep = "100ms"
  23. bucket = 10
  24. ratio = 0.5
  25. request = 100
  26. [memcache]
  27. levelExpire = 86400
  28. [memcache.exp]
  29. name = "live-userexp-service/exp"
  30. proto = "tcp"
  31. addr = "172.16.33.251:11211"
  32. idle = 5
  33. active = 10
  34. dialTimeout = "1s"
  35. readTimeout = "1s"
  36. writeTimeout = "1s"
  37. idleTimeout = "80s"
  38. [expSub]
  39. key = "ec4c0820d525d67b"
  40. secret = "2bdf3bd4ecab041b5d5640a1da4f7f81"
  41. group = "LiveUserExpBinlog-LiveLive-S"
  42. topic = "LiveUserExpBinlog-T"
  43. action = "sub"
  44. offset = "new"
  45. name = "liveuser-job/exp-sub"
  46. proto = "tcp"
  47. addr = "172.16.33.158:6205"
  48. idle = 100
  49. active = 100
  50. dialTimeout = "1s"
  51. readTimeout = "60s"
  52. writeTimeout = "1s"
  53. idleTimeout = "10s"