archive-job-test.toml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. env = "uat"
  2. chanSize = 50
  3. PGCAsync = 0
  4. UGCAsync = 0
  5. MonitorSize = 30
  6. WeChatToken = "uYsRqXPjnbyXDCba"
  7. WeChatSecret = "tUILeGIXJHFSUdwfLjBHDZJXmLgYpgEy"
  8. WeChantUsers = "peiyifei,haoguanwei"
  9. tick = "50ms"
  10. [bm]
  11. addr = "0.0.0.0:6161"
  12. timeout = "1s"
  13. [app]
  14. key = "53e2fa226f5ad348"
  15. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  16. [host]
  17. apiCo = "http://api.bilibili.co"
  18. [httpClient]
  19. key = "53e2fa226f5ad348"
  20. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  21. dial = "100ms"
  22. timeout = "1s"
  23. keepAlive = "60s"
  24. [httpClient.breaker]
  25. window = "10s"
  26. sleep = "100ms"
  27. bucket = 10
  28. ratio = 0.5
  29. request = 100
  30. [db]
  31. [db.archive]
  32. name = "172.18.33.49:3306"
  33. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_archive?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  34. active = 20
  35. idle = 10
  36. idleTimeout = "4h"
  37. queryTimeout = "5s"
  38. execTimeout = "5s"
  39. tranTimeout = "5s"
  40. [db.archive.breaker]
  41. window = "3s"
  42. sleep = "100ms"
  43. bucket = 10
  44. ratio = 0.5
  45. request = 100
  46. [db.result]
  47. name = "172.18.33.49:3306"
  48. dsn = "test:test@tcp(172.16.33.205:3308)/archive_result?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8"
  49. active = 20
  50. idle = 10
  51. idleTimeout = "4h"
  52. queryTimeout = "5s"
  53. execTimeout = "5s"
  54. tranTimeout = "5s"
  55. [db.result.breaker]
  56. window = "3s"
  57. sleep = "100ms"
  58. bucket = 10
  59. ratio = 0.5
  60. request = 100
  61. [db.dede]
  62. name = "172.18.33.49:3307"
  63. dsn = "dede:jh3GWwFgzsLHvkWsDPiSxy5Ge2vNt4Ys@tcp(172.18.33.49:3307)/bilibili?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8"
  64. active = 20
  65. idle = 10
  66. idleTimeout ="4h"
  67. queryTimeout = "5s"
  68. execTimeout = "5s"
  69. tranTimeout = "5s"
  70. [db.dede.breaker]
  71. window = "3s"
  72. sleep = "100ms"
  73. bucket = 10
  74. ratio = 0.5
  75. request = 100
  76. [redis]
  77. name = "archive-job/trackreport"
  78. proto = "tcp"
  79. addr = "172.18.33.61:6807"
  80. active = 10
  81. idle = 1
  82. dialTimeout = "1s"
  83. readTimeout = "1s"
  84. writeTimeout = "1s"
  85. idleTimeout = "80s"
  86. [archiveResultPub]
  87. key = "0QNB0ZgFozbKUCQhbTq8"
  88. secret = "0QNB0ZgFozbKUCQhbTq9"
  89. group = "ArchiveNotify-ArchiveJob-P"
  90. topic = "ArchiveNotify-T"
  91. action = "pub"
  92. name = "archive-job/archivepub"
  93. proto = "tcp"
  94. addr = "172.18.33.50:6205"
  95. idle = 1
  96. active = 10
  97. dialTimeout = "1s"
  98. readTimeout = "60s"
  99. writeTimeout = "1s"
  100. idleTimeout = "10s"
  101. [statSub]
  102. key = "0Q2UxI6hM1i6k6LRzDmx"
  103. secret= "0Q2UxI6hM1i6k6LRzDmy"
  104. group= "Stat-UGC-S"
  105. topic= "Stat-T"
  106. action="sub"
  107. name = "archive-job/stat"
  108. proto = "tcp"
  109. addr = "172.18.33.50:6205"
  110. active = 1
  111. idle = 1
  112. dialTimeout = "1s"
  113. readTimeout = "60s"
  114. writeTimeout = "1s"
  115. idleTimeout = "10s"
  116. expire = "1h"
  117. [DmSub]
  118. key = "8e27ab7e39270b59"
  119. secret = "4b8c2e03c48f0b21eacd7a11e2a3b003"
  120. group = "DMSubject-MainAppSvr-S"
  121. topic = "DMSubject-T"
  122. action = "sub"
  123. name = "archive-job/DMSubject"
  124. proto = "tcp"
  125. addr = "172.18.33.50:6205"
  126. idle = 1
  127. active = 1
  128. dialTimeout = "1s"
  129. readTimeout = "60s"
  130. writeTimeout = "1s"
  131. idleTimeout = "10s"
  132. [DmPub]
  133. key = "8e27ab7e39270b59"
  134. secret = "4b8c2e03c48f0b21eacd7a11e2a3b003"
  135. group = "StatDM-MainAppSvr-P"
  136. topic = "StatDM-T"
  137. action = "pub"
  138. name = "archive-job/dmpub"
  139. proto = "tcp"
  140. addr = "172.16.33.158:6205"
  141. idle = 100
  142. active = 100
  143. dialTimeout = "1s"
  144. readTimeout = "60s"
  145. writeTimeout = "1s"
  146. idleTimeout = "10s"
  147. [VideoupSub]
  148. key = "0QNB0ZgFozbKUCQhbTq8"
  149. secret = "0QNB0ZgFozbKUCQhbTq9"
  150. group = "ArchiveJob-Videoup2Bvc-S"
  151. topic = "Videoup2Bvc"
  152. action = "sub"
  153. name = "archive-job/videoupsub"
  154. proto = "tcp"
  155. addr = "172.18.33.50:6205"
  156. idle = 1
  157. active = 1
  158. dialTimeout = "1s"
  159. readTimeout = "60s"
  160. writeTimeout = "1s"
  161. idleTimeout = "10s"
  162. [CacheSub]
  163. key = "8e27ab7e39270b59"
  164. secret = "477df6a068d7332a163f95abbad2079c"
  165. group = "ArchiveUserCache-MainAppSvr-S"
  166. topic = "ArchiveUserCache-T"
  167. action = "sub"
  168. name = "archive-job/userCache"
  169. proto = "tcp"
  170. addr = "172.18.33.50:6205"
  171. idle = 1
  172. active = 1
  173. dialTimeout = "1s"
  174. readTimeout = "60s"
  175. writeTimeout = "1s"
  176. idleTimeout = "80s"
  177. [AccountNotifySub]
  178. key = "8e27ab7e39270b59"
  179. secret = "477df6a068d7332a163f95abbad2079c"
  180. group = "AccountNotify-MainAppSvr-S"
  181. topic = "AccountNotify-T"
  182. action = "sub"
  183. name = "archive-job/userCache"
  184. proto = "tcp"
  185. addr = "172.18.33.50:6205"
  186. idle = 1
  187. active = 1
  188. dialTimeout = "1s"
  189. readTimeout = "60s"
  190. writeTimeout = "1s"
  191. idleTimeout = "80s"
  192. [AccountNotifySub.discovery]
  193. domain = "api.bilibili.co"
  194. key = "53e2fa226f5ad348"
  195. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  196. region = "sh"
  197. zone = "sh001"
  198. env = "prod"
  199. [mail]
  200. host = "smtp.exmail.qq.com"
  201. port = 465
  202. username = "2333@bilibili.com"
  203. password = "2333"
  204. bangumi = ["233@bilibili.com"]
  205. movie = ["233@bilibili.com"]
  206. [[ArchiveServices]]
  207. cluster="group1"
  208. [[ArchiveServices]]
  209. cluster="group2"