reply-job-test.toml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. [job]
  2. proc = 8
  3. searchNum = 20
  4. searchFlush = "100ms"
  5. batchNumber = 20
  6. [Xlog]
  7. stdout=true
  8. [bm]
  9. addr = "0.0.0.0:10000"
  10. timeout = "1s"
  11. readTimeout = "1s"
  12. writeTimeout = "1s"
  13. [weight]
  14. like = 2
  15. hate = 4
  16. [statTypes]
  17. "archive" = 1
  18. "article" = 12
  19. "playlist" = 18
  20. [host]
  21. activity = "http://uat-www.bilibili.com"
  22. message = "http://uat-message.bilibili.com"
  23. drawYoo = "http://uat-h.bilibili.com"
  24. search = "http://bili-search.bilibili.co"
  25. blackroom = "http://uat-blocked.bilibili.co"
  26. api = "http://uat-api.bilibili.co"
  27. liveVC = "http://api.vc.bilibili.co"
  28. liveAct = "http://api.live.bilibili.co"
  29. bangumi = "http://bangumi.bilibili.co"
  30. [httpClient]
  31. key = "c1a1cb2d89c33794"
  32. secret = "dda47eeca111e03e6845017505baea13"
  33. dial = "1s"
  34. timeout = "3s"
  35. keepAlive = "60s"
  36. timer = 1000
  37. [httpClient.breaker]
  38. window ="3s"
  39. sleep ="100ms"
  40. bucket = 10
  41. ratio = 0.5
  42. request = 100
  43. [drawyooHTTPClient]
  44. key = "49df034922d68827"
  45. secret = "92ce984f5c8b8415366838c6ee3e039f"
  46. dial = "1s"
  47. timeout = "3s"
  48. keepAlive = "60s"
  49. timer = 1000
  50. [drawyooHTTPClient.breaker]
  51. window ="3s"
  52. sleep ="100ms"
  53. bucket = 10
  54. ratio = 0.1
  55. request = 100
  56. [app]
  57. key = "c1a1cb2d89c33794"
  58. secret = "dda47eeca111e03e6845017505baea13"
  59. [rpcClient2]
  60. [rpcClient2.account]
  61. timeout = "30s"
  62. [rpcClient2.archive]
  63. timeout = "30s"
  64. [rpcClient2.assist]
  65. timeout = "30s"
  66. [rpcClient2.article]
  67. timeout = "30s"
  68. [mysql]
  69. [mysql.reply]
  70. addr= "172.22.34.101:3306"
  71. dsn = "test_3306:UJPZaGKjpb2ylFx3HNhmLuwOYft4MCAi@tcp(172.22.34.101:3306)/bilibili_reply?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  72. active = 5
  73. idle = 2
  74. idleTimeout ="4h"
  75. queryTimeout = "200ms"
  76. execTimeout = "200ms"
  77. tranTimeout = "200ms"
  78. [mysql.reply.breaker]
  79. window = "3s"
  80. sleep = "100ms"
  81. bucket = 10
  82. ratio = 0.5
  83. request = 100
  84. [redis]
  85. proto = "tcp"
  86. addr = "172.18.33.60:6889"
  87. idle = 10
  88. active = 10
  89. dialTimeout = "500ms"
  90. readTimeout = "1s"
  91. writeTimeout = "1s"
  92. idleTimeout = "80s"
  93. indexExpire = "8h"
  94. userActExpire="1h"
  95. reportExpire = "24h"
  96. userCntExpire = "30s"
  97. notifyExpire = "24h"
  98. [memcache]
  99. proto = "tcp"
  100. addr = "172.18.33.61:11213"
  101. idle = 10
  102. active = 10
  103. dialTimeout = "2s"
  104. readTimeout = "2s"
  105. writeTimeout = "2s"
  106. idleTimeout = "80s"
  107. expire = "1h"
  108. [databus]
  109. [databus.event]
  110. key = "170e302355453683"
  111. secret = "3d0e8db7bed0503949e545a469789279"
  112. group = "Reply-MainCommunity-P"
  113. topic = "Reply-T"
  114. action ="pub"
  115. name = "reply/event"
  116. proto = "tcp"
  117. addr = "172.18.33.50:6205"
  118. idle = 2
  119. active = 5
  120. dialTimeout = "1s"
  121. readTimeout = "1s"
  122. writeTimeout = "1s"
  123. idleTimeout = "10s"
  124. expire = "1h"
  125. [databus.stats]
  126. key = "170e302355453683"
  127. secret = "3d0e8db7bed0503949e545a469789279"
  128. group = "StatReply-MainCommunity-P"
  129. topic = "StatReply-T"
  130. action ="pub"
  131. name = "reply/stats"
  132. proto = "tcp"
  133. addr = "172.18.33.50:6205"
  134. idle = 2
  135. active = 5
  136. dialTimeout = "1s"
  137. readTimeout = "1s"
  138. writeTimeout = "1s"
  139. idleTimeout = "10s"
  140. expire = "1h"
  141. [databus.consumer]
  142. key = "170e302355453683"
  143. secret = "3d0e8db7bed0503949e545a469789279"
  144. group = "ReplyAdd-MainCommunity-S"
  145. topic = "ReplyAdd-T"
  146. action ="sub"
  147. name = "reply/job"
  148. proto = "tcp"
  149. addr = "172.18.33.50:6205"
  150. idle = 2
  151. active = 5
  152. dialTimeout = "1s"
  153. readTimeout = "40s"
  154. writeTimeout = "1s"
  155. idleTimeout = "10s"
  156. expire = "1h"
  157. [databus.consumer.discovery]
  158. domain = "api.bilibili.co"
  159. key = "0c4b8fe3ff35a4b6"
  160. secret = "b370880d1aca7d3a289b9b9a7f4d6812"
  161. [databus.like]
  162. key = "170e302355453683"
  163. secret = "3d0e8db7bed0503949e545a469789279"
  164. group = "StatLike-MainCommunity-S"
  165. topic = "StatLike-T"
  166. action ="sub"
  167. name = "reply/job"
  168. proto = "tcp"
  169. addr = "172.18.33.50:6205"
  170. idle = 2
  171. active = 5
  172. dialTimeout = "1s"
  173. readTimeout = "40s"
  174. writeTimeout = "1s"
  175. idleTimeout = "10s"
  176. expire = "1h"
  177. [databus.like.discovery]
  178. domain = "api.bilibili.co"
  179. key = "0c4b8fe3ff35a4b6"
  180. secret = "b370880d1aca7d3a289b9b9a7f4d6812"
  181. [[stats]]
  182. key = "0Pub71WwEMKXu63qtztu"
  183. secret = "0Pub71WwEMKXu63qtztv"
  184. group = "Stat-UGC-P"
  185. topic = "Stat-T"
  186. action ="pub"
  187. name = "archive-service/stat"
  188. proto = "tcp"
  189. addr = "172.16.33.158:6205"
  190. idle = 100
  191. active = 100
  192. dialTimeout = "1s"
  193. readTimeout = "1s"
  194. writeTimeout = "1s"
  195. idleTimeout = "10s"
  196. type = 1
  197. field = "aid"
  198. [[stats]]
  199. key = "0QEO9F8JuuIxZzNDvklH"
  200. secret = "0QEO9F8JuuIxZzNDvklI"
  201. group = "ArticleStat-Article-P"
  202. topic = "ArticleStat-T"
  203. action ="pub"
  204. name = "archive-service/stat"
  205. proto = "tcp"
  206. addr = "172.16.33.158:6205"
  207. idle = 100
  208. active = 100
  209. dialTimeout = "1s"
  210. readTimeout = "1s"
  211. writeTimeout = "1s"
  212. idleTimeout = "10s"
  213. type = 12
  214. field = "aid"
  215. [[stats]]
  216. key = "0QEO9F8JuuIxZzNDvklH"
  217. secret= "0QEO9F8JuuIxZzNDvklI"
  218. group= "PlaylistStat-Playlist-P"
  219. topic= "PlaylistStat-T"
  220. action="pub"
  221. name = "playlist-service/stat"
  222. proto = "tcp"
  223. addr = "172.16.33.158:6205"
  224. idle = 100
  225. active = 100
  226. dialTimeout = "1s"
  227. readTimeout = "1s"
  228. writeTimeout = "1s"
  229. idleTimeout = "10s"
  230. expire = "1h"
  231. type = 18
  232. field = "pid"