push-strategy-test.toml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. version = "1.0.0"
  2. user = "nobody"
  3. pid = "/tmp/push-strategy.pid"
  4. dir = "./"
  5. family = "push-strategy"
  6. [log]
  7. dir = "/data/log/push-strategy/"
  8. [httpClient]
  9. key = "f265dcfa28272742"
  10. secret = "437facc22dc8698b5544669bcc12348d"
  11. dial = "500ms"
  12. timeout = "1s"
  13. keepAlive = "60s"
  14. timer = 10
  15. [httpClient.breaker]
  16. window = "10s"
  17. sleep = "100ms"
  18. bucket = 10
  19. ratio = 0.5
  20. request = 100
  21. [HTTPServer]
  22. addr = "0.0.0.0:7561"
  23. maxListen = 1000
  24. timeout = "1s"
  25. readTimeout = "1s"
  26. writeTimeout = "1s"
  27. [mysql]
  28. addr = "172.16.33.205"
  29. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_push?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  30. active = 10
  31. idle = 5
  32. queryTimeout = "1s"
  33. execTimeout = "1s"
  34. tranTimeout = "1s"
  35. [mysql.breaker]
  36. window = "3s"
  37. sleep = "100ms"
  38. bucket = 10
  39. ratio = 0.5
  40. request = 100
  41. [redis]
  42. name = "push-strategy"
  43. proto = "tcp"
  44. addr = "172.18.33.60:6968"
  45. idle = 1000
  46. active = 10000
  47. dialTimeout = "1s"
  48. readTimeout = "1s"
  49. writeTimeout = "1s"
  50. idleTimeout = "30s"
  51. limitDayExpire = "24h"
  52. [memcache]
  53. name = "push-strategy"
  54. proto = "tcp"
  55. addr = "172.18.33.60:11228"
  56. idle = 1000
  57. active = 1000
  58. dialTimeout = "10s"
  59. readTimeout = "10s"
  60. writeTimeout = "10s"
  61. idleTimeout = "30s"
  62. uuidExpire = "30m"
  63. cdExpire = "1h"
  64. [wechat]
  65. token = "GYQeuDWBbAsCNeGz"
  66. secret = "ZKpmgINTkianyMbMixyxcPQjMCSHCDrk"
  67. username = "xxxxxxxxyyyyyyyyyy"
  68. [bizID]
  69. live = 1
  70. archive = 2
  71. [cfg]
  72. loadTaskInteval = "1s"
  73. loadBusinessInteval = "5m"
  74. loadSettingsInteval = "1m"
  75. nasPath = "/data/storage"
  76. limitUserPerDay = 8
  77. handleTaskGoroutines = 100
  78. handleMidGoroutines = 5
  79. cacheSize = 1024000