test.toml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. version = "1.0.0"
  2. user = "nobody"
  3. pid = "/tmp/card-job.pid"
  4. dir = "./"
  5. perf = "0.0.0.0:6330"
  6. family = "card-job"
  7. address = "0.0.0.0"
  8. [bm]
  9. addr = "0.0.0.0:7901"
  10. maxListen = 1000
  11. timeout = "1s"
  12. [RPCClient2]
  13. [mysql]
  14. addr = "127.0.0.1:3306"
  15. dsn = "root:123456@tcp(127.0.0.1:3306)/bilibili_card?timeout=3s&readTimeout=3s&writeTimeout=3s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  16. active = 20
  17. idle = 10
  18. idleTimeout ="4h"
  19. queryTimeout = "1s"
  20. execTimeout = "1s"
  21. tranTimeout = "2s"
  22. [mysql.breaker]
  23. window = "3s"
  24. sleep = "100ms"
  25. bucket = 10
  26. ratio = 0.5
  27. request = 100
  28. [memcache]
  29. name = "card-service"
  30. proto = "tcp"
  31. addr = "172.18.33.60:11234"
  32. idle = 5
  33. active = 10
  34. dialTimeout = "1s"
  35. readTimeout = "1s"
  36. writeTimeout = "1s"
  37. idleTimeout = "10s"
  38. expire = "24h"
  39. [dataBus]
  40. [dataBus.vip]
  41. key = "4ba46ba31f9a44ef"
  42. secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
  43. group = "BiliVIPBinlog-MainAccount-Card-S"
  44. topic = "BiliVIPBinlog-T"
  45. action = "sub"
  46. offset = "new"
  47. buffer = 1024
  48. name = "card-job"
  49. proto = "tcp"
  50. addr = "172.16.33.158:6205"
  51. idle = 1
  52. active = 1
  53. dialTimeout = "1s"
  54. readTimeout = "60s"
  55. writeTimeout = "1s"
  56. idleTimeout = "10s"