stat-job-test.toml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. [bm]
  2. addr = "0.0.0.0:6392"
  3. timeout = "1s"
  4. [httpClient]
  5. key = "6a29f8ed87407c11"
  6. secret = "d3c5a85f5b895a03735b5d20a273bc57"
  7. dial = "100ms"
  8. timeout = "1s"
  9. keepAlive = "60s"
  10. timer = 128
  11. [httpClient.breaker]
  12. window ="3s"
  13. sleep ="100ms"
  14. bucket = 10
  15. ratio = 0.5
  16. request = 100
  17. [db]
  18. name = "172.16.33.205:3308"
  19. dsn = "test:test@tcp(172.22.33.205:3308)/archive_stat?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  20. active = 5
  21. idle = 1
  22. queryTimeout = "100ms"
  23. execTimeout = "100ms"
  24. tranTimeout = "200ms"
  25. [db.breaker]
  26. window = "3s"
  27. sleep = "100ms"
  28. bucket = 10
  29. ratio = 0.5
  30. request = 100
  31. [ClickDB]
  32. name = "172.16.33.205:3308"
  33. dsn = "test:test@tcp(172.16.33.205:3308)/archive_click?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  34. active = 5
  35. idle = 1
  36. queryTimeout = "100ms"
  37. execTimeout = "100ms"
  38. tranTimeout = "200ms"
  39. [ClickDB.breaker]
  40. window = "3s"
  41. sleep = "100ms"
  42. bucket = 10
  43. ratio = 0.5
  44. request = 100
  45. [SMS]
  46. phone = "18321572353,18565623963"
  47. token = "f5a658b2-5926-4b71-96c3-7d3777b7d256"
  48. [stat]
  49. subInterval = "1m"
  50. wrtDBInterval = "1ms"
  51. idle = "10m"
  52. wrtDBNum = 8
  53. wrtCacheNum = 4
  54. sharding = 100
  55. [ViewSub]
  56. key = "8e27ab7e39270b59"
  57. secret = "4b8c2e03c48f0b21eacd7a11e2a3b003"
  58. group = "StatView-MainAppSvr-StatJob-S"
  59. topic = "StatView-T"
  60. action = "sub"
  61. name = "stat-job/view"
  62. proto = "tcp"
  63. addr = "172.18.21.41:6205"
  64. idle = 1
  65. active = 1
  66. dialTimeout = "1s"
  67. readTimeout = "60s"
  68. writeTimeout = "1s"
  69. idleTimeout = "10s"
  70. [DmSub]
  71. key = "8e27ab7e39270b59"
  72. secret = "4b8c2e03c48f0b21eacd7a11e2a3b003"
  73. group = "StatDM-MainAppSvr-StatJob-S"
  74. topic = "StatDM-T"
  75. action = "sub"
  76. name = "stat-job/dm"
  77. proto = "tcp"
  78. addr = "172.18.21.41:6205"
  79. idle = 1
  80. active = 1
  81. dialTimeout = "1s"
  82. readTimeout = "60s"
  83. writeTimeout = "1s"
  84. idleTimeout = "10s"
  85. [ReplySub]
  86. key = "8e27ab7e39270b59"
  87. secret = "4b8c2e03c48f0b21eacd7a11e2a3b003"
  88. group = "StatReply-MainAppSvr-StatJob-S"
  89. topic = "StatReply-T"
  90. action = "sub"
  91. name = "stat-job/reply"
  92. proto = "tcp"
  93. addr = "172.18.21.41:6205"
  94. idle = 1
  95. active = 1
  96. dialTimeout = "1s"
  97. readTimeout = "60s"
  98. writeTimeout = "1s"
  99. idleTimeout = "10s"
  100. [FavSub]
  101. key = "8e27ab7e39270b59"
  102. secret = "4b8c2e03c48f0b21eacd7a11e2a3b003"
  103. group = "StatFav-MainAppSvr-StatJob-S"
  104. topic = "StatFav-T"
  105. action = "sub"
  106. name = "stat-job/fav"
  107. proto = "tcp"
  108. addr = "172.18.21.41:6205"
  109. idle = 1
  110. active = 1
  111. dialTimeout = "1s"
  112. readTimeout = "60s"
  113. writeTimeout = "1s"
  114. idleTimeout = "10s"
  115. [CoinSub]
  116. key = "8e27ab7e39270b59"
  117. secret = "4b8c2e03c48f0b21eacd7a11e2a3b003"
  118. group = "StatCoin-MainAppSvr-StatJob-S"
  119. topic = "StatCoin-T"
  120. action = "sub"
  121. name = "stat-job/coin"
  122. proto = "tcp"
  123. addr = "172.18.21.41:6205"
  124. idle = 1
  125. active = 1
  126. dialTimeout = "1s"
  127. readTimeout = "60s"
  128. writeTimeout = "1s"
  129. idleTimeout = "10s"
  130. [ShareSub]
  131. key = "8e27ab7e39270b59"
  132. secret = "4b8c2e03c48f0b21eacd7a11e2a3b003"
  133. group = "StatShare-MainAppSvr-StatJob-S"
  134. topic = "StatShare-T"
  135. action = "sub"
  136. name = "stat-job/share"
  137. proto = "tcp"
  138. addr = "172.18.21.41:6205"
  139. idle = 1
  140. active = 1
  141. dialTimeout = "1s"
  142. readTimeout = "60s"
  143. writeTimeout = "1s"
  144. idleTimeout = "10s"
  145. [RankSub]
  146. key = "8e27ab7e39270b59"
  147. secret = "4b8c2e03c48f0b21eacd7a11e2a3b003"
  148. group = "StatRank-MainAppSvr-StatJob-S"
  149. topic = "StatRank-T"
  150. action = "sub"
  151. name = "stat-job/rank"
  152. proto = "tcp"
  153. addr = "172.18.21.41:6205"
  154. idle = 1
  155. active = 1
  156. dialTimeout = "1s"
  157. readTimeout = "60s"
  158. writeTimeout = "1s"
  159. idleTimeout = "10s"
  160. [likeSub]
  161. key = "8e27ab7e39270b59"
  162. secret = "477df6a068d7332a163f95abbad2079c"
  163. group = "LikesBinlog-MainAppSvr-S"
  164. topic = "LikesBinlog-T"
  165. action = "sub"
  166. name = "stat-job/like"
  167. proto = "tcp"
  168. addr = "172.18.33.50:6205"
  169. idle = 1
  170. active = 1
  171. dialTimeout = "1s"
  172. readTimeout = "60s"
  173. writeTimeout = "1s"
  174. idleTimeout = "10s"
  175. [[memcaches]]
  176. name = "archive-service"
  177. proto = "tcp"
  178. addr = "172.18.33.61:11211"
  179. active = 50
  180. idle = 10
  181. dialTimeout = "30ms"
  182. readTimeout = "200ms"
  183. writeTimeout = "200ms"
  184. idleTimeout = "80s"
  185. archiveExpire = "10h"
  186. videoExpire = "10h"
  187. [[memcaches]]
  188. name = "archive-service"
  189. proto = "tcp"
  190. addr = "172.18.33.61:11211"
  191. active = 50
  192. idle = 10
  193. dialTimeout = "30ms"
  194. readTimeout = "200ms"
  195. writeTimeout = "200ms"
  196. idleTimeout = "80s"
  197. archiveExpire = "10h"
  198. videoExpire = "10h"