test.toml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. refreshTime = 30
  2. [log]
  3. stdout=true
  4. [httpClient]
  5. key = "c1a1cb2d89c33794"
  6. secret = "dda47eeca111e03e6845017505baea13"
  7. dial = "300ms"
  8. timeout = "800ms"
  9. keepAlive = "60s"
  10. timer = 512
  11. [httpClient.url]
  12. "https://api.bilibili.co/x/internal/v2/reply/ishot" = {timeout="200ms"}
  13. [httpClient.breaker]
  14. window = "10s"
  15. sleep = "50ms"
  16. bucket = 10
  17. ratio = 0.5
  18. request = 100
  19. [mysql]
  20. [mysql.db]
  21. addr = "172.22.34.101:3306"
  22. dsn = "test_3306:UJPZaGKjpb2ylFx3HNhmLuwOYft4MCAi@tcp(172.22.34.101:3306)/bilibili_reply?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8mb4,utf8"
  23. active = 10
  24. idle = 2
  25. idleTimeout ="4h"
  26. queryTimeout = "500ms"
  27. execTimeout = "500ms"
  28. tranTimeout = "500ms"
  29. [mysql.db.breaker]
  30. window = "3s"
  31. sleep = "100ms"
  32. bucket = 10
  33. ratio = 0.5
  34. request = 100
  35. [mysql.dbSlave]
  36. addr = "172.22.34.101:3306"
  37. dsn = "test_3306:UJPZaGKjpb2ylFx3HNhmLuwOYft4MCAi@tcp(172.22.34.101:3306)/bilibili_reply?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8mb4,utf8"
  38. active = 10
  39. idle = 2
  40. idleTimeout ="4h"
  41. queryTimeout = "500ms"
  42. execTimeout = "500ms"
  43. tranTimeout = "500ms"
  44. [mysql.dbSlave.breaker]
  45. window = "3s"
  46. sleep = "100ms"
  47. bucket = 10
  48. ratio = 0.5
  49. request = 100
  50. [redis]
  51. name = "reply-feed-job"
  52. proto = "tcp"
  53. addr = "172.18.33.60:6889"
  54. idle = 10
  55. active = 10
  56. dialTimeout = "1s"
  57. readTimeout = "1s"
  58. writeTimeout = "1s"
  59. idleTimeout = "10s"
  60. expire = "1m"
  61. [redisExpire]
  62. redisReplySetExpire = "12h"
  63. redisReplyZSetExpire = "12h"
  64. redisRefreshExpire = "12h"
  65. [memcache]
  66. name = "reply-feed-job"
  67. proto = "tcp"
  68. addr = "172.18.33.61:11213"
  69. active = 50
  70. idle = 10
  71. dialTimeout = "1s"
  72. readTimeout = "1s"
  73. writeTimeout = "1s"
  74. idleTimeout = "10s"
  75. expire = "24h"
  76. [memcacheExpire]
  77. mcStatExpire = "12h"
  78. [databus]
  79. [databus.event]
  80. key = "170e302355453683"
  81. secret = "3d0e8db7bed0503949e545a469789279"
  82. group = "ReplyFeed-MainCommunity-S"
  83. topic = "ReplyFeed-T"
  84. action ="sub"
  85. name = "reply-feed/event"
  86. proto = "tcp"
  87. addr = "172.18.33.50:6205"
  88. idle = 2
  89. active = 5
  90. dialTimeout = "1s"
  91. readTimeout = "1s"
  92. writeTimeout = "1s"
  93. idleTimeout = "10s"
  94. expire = "1h"
  95. [databus.stats]
  96. key = "170e302355453683"
  97. secret = "3d0e8db7bed0503949e545a469789279"
  98. group = "Reply-MainCommunity-S"
  99. topic = "Reply-T"
  100. action ="sub"
  101. name = "reply/stats"
  102. proto = "tcp"
  103. addr = "172.18.33.50:6205"
  104. idle = 2
  105. active = 5
  106. dialTimeout = "1s"
  107. readTimeout = "1s"
  108. writeTimeout = "1s"
  109. idleTimeout = "10s"
  110. expire = "1h"