dm-admin-test.toml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. # This is a TOML config file.
  2. [infoc2]
  3. taskID = "000279"
  4. proto = "tcp"
  5. addr = "172.18.33.125:15140"
  6. chanSize = 10240
  7. [infocBak]
  8. taskID = "000279"
  9. proto = "tcp"
  10. addr = "172.18.33.125:15140"
  11. chanSize = 10240
  12. [httpServer]
  13. addr = "0.0.0.0:6311"
  14. maxListen = 100
  15. timeout = "10s"
  16. [db]
  17. [db.dm]
  18. addr = "172.16.33.205:3308"
  19. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_dm?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8"
  20. active = 10
  21. idle = 5
  22. idleTimeout ="4h"
  23. queryTimeout = "500ms"
  24. execTimeout = "500ms"
  25. tranTimeout = "500ms"
  26. [db.dm.breaker]
  27. window = "3s"
  28. sleep = "100ms"
  29. bucket = 10
  30. ratio = 0.5
  31. request = 100
  32. [db.dmMetaWriter]
  33. addr = "172.16.33.205:3310"
  34. dsn = "test_3308:test_3308@tcp(172.16.33.205:3310)/bilibili_dm_meta?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8mb4"
  35. active = 10
  36. idle = 5
  37. idleTimeout ="4h"
  38. queryTimeout = "500ms"
  39. execTimeout = "500ms"
  40. tranTimeout = "500ms"
  41. [db.dmMetaWriter.breaker]
  42. window = "3s"
  43. sleep = "100ms"
  44. bucket = 10
  45. ratio = 0.5
  46. request = 100
  47. [db.dmMetaReader]
  48. addr = "172.16.33.205:3310"
  49. dsn = "test_3308:test_3308@tcp(172.16.33.205:3310)/bilibili_dm_meta?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8mb4"
  50. active = 10
  51. idle = 5
  52. idleTimeout ="4h"
  53. queryTimeout = "500ms"
  54. execTimeout = "500ms"
  55. tranTimeout = "500ms"
  56. [db.dmMetaReader.breaker]
  57. window = "3s"
  58. sleep = "100ms"
  59. bucket = 10
  60. ratio = 0.5
  61. request = 100
  62. [memcache]
  63. [memcache.filter]
  64. name = "filter"
  65. proto = "tcp"
  66. addr = "172.16.33.54:11211"
  67. idle = 5
  68. active = 10
  69. dialTimeout = "1s"
  70. readTimeout = "1s"
  71. writeTimeout = "1s"
  72. idleTimeout = "80s"
  73. [memcache.subtitle]
  74. name = "dm2"
  75. proto = "tcp"
  76. addr = "172.16.33.54:11211"
  77. idle = 5
  78. active = 10
  79. dialTimeout = "1s"
  80. readTimeout = "1s"
  81. writeTimeout = "1s"
  82. idleTimeout = "80s"
  83. [host]
  84. api = "http://api.bilibili.co"
  85. videoup = "http://archive.api.bilibili.co"
  86. search = "http://uat-manager.bilibili.co"
  87. season = "http://uat-manager.bilibili.co"
  88. message = "http://message.bilibili.co"
  89. account = "http://account.bilibili.co"
  90. mask = "http://172.22.33.111:8200"
  91. berserker = "http://berserker.bilibili.co/avenger/api/148/query"
  92. [httpClient]
  93. key = "f6433799dbd88751"
  94. secret = "36f8ddb1806207fe07013ab6a77a3935"
  95. dial = "1s"
  96. timeout = "2s"
  97. keepAlive = "60s"
  98. timer = 1000
  99. [httpClient.breaker]
  100. window = "3s"
  101. sleep = "100ms"
  102. bucket = 10
  103. ratio = 0.5
  104. request = 100
  105. [httpSearch]
  106. key = "89ffc6e896106fd3"
  107. secret = "1359cdbaf9ff6e2f9b6251579d966101"
  108. dial = "1s"
  109. timeout = "8s"
  110. keepAlive = "60s"
  111. timer = 1000
  112. [httpSearch.breaker]
  113. window = "3s"
  114. sleep = "100ms"
  115. bucket = 10
  116. ratio = 0.5
  117. request = 100
  118. [httpInfoc]
  119. infocQueryURL = "http://172.18.33.160:6010/avenger/api/2/query"
  120. key = "f43ae8af9179884d0f7e3d6e532dd1bd"
  121. secret = "3e4078b4e9448ef12528b68a22c1fa60"
  122. dial = "1s"
  123. timeout = "2s"
  124. keepAlive = "60s"
  125. timer = 1000
  126. [httpInfoc.breaker]
  127. window = "3s"
  128. sleep = "100ms"
  129. bucket = 10
  130. ratio = 0.5
  131. request = 100
  132. [accountRPC]
  133. timeout = "2s"
  134. [archiveRPC]
  135. timeout = "1s"
  136. [actionpub]
  137. key = "0Pub71WwEMKXu63qtztu"
  138. secret= "0Pub71WwEMKXu63qtztv"
  139. group= "DMAction-UGC-P"
  140. topic= "DMAction-T"
  141. action="pub"
  142. name = "dm-job"
  143. proto = "tcp"
  144. addr = "172.16.33.158:6205"
  145. active = 5
  146. idle = 1
  147. dialTimeout = "1s"
  148. readTimeout = "1s"
  149. writeTimeout = "1s"
  150. idleTimeout = "10s"
  151. [managerAuth]
  152. managerHost = "http://uat-manager.bilibili.co"
  153. dashboardHost = "http://dashboard-mng.bilibili.co"
  154. dashboardCaller = "manager-go"
  155. [managerAuth.dsHTTPClient]
  156. key = "manager-go"
  157. secret = "949bbb2dd3178252638c2407578bc7ad"
  158. dial = "1s"
  159. timeout = "3s"
  160. keepAlive = "60s"
  161. timer = 1000
  162. [managerAuth.dsHTTPClient.breaker]
  163. window ="3s"
  164. sleep ="100ms"
  165. bucket = 10
  166. ratio = 0.5
  167. request = 100
  168. [managerAuth.maHTTPClient]
  169. key = "f6433799dbd88751"
  170. secret = "36f8ddb1806207fe07013ab6a77a3935"
  171. dial = "1s"
  172. timeout = "3s"
  173. keepAlive = "60s"
  174. timer = 1000
  175. [managerAuth.maHTTPClient.breaker]
  176. window ="3s"
  177. sleep ="100ms"
  178. bucket = 10
  179. ratio = 0.5
  180. request = 100
  181. [managerAuth.session]
  182. sessionIDLength = 32
  183. cookieLifeTime = 1800
  184. cookieName = "mng-go"
  185. domain = ".bilibili.co"
  186. [managerAuth.session.Memcache]
  187. name = "dmadmin-auth"
  188. proto = "tcp"
  189. addr = "172.16.33.54:11211"
  190. active = 10
  191. idle = 5
  192. dialTimeout = "1s"
  193. readTimeout = "1s"
  194. writeTimeout = "1s"
  195. idleTimeout = "80s"
  196. [elastic]
  197. host = "http://uat-manager.bilibili.co"
  198. [elastic.HTTPClient]
  199. key = "manager-go"
  200. secret = "949bbb2dd3178252638c2407578bc7ad"
  201. dial = "1s"
  202. timeout = "3s"
  203. keepAlive = "60s"
  204. timer = 1000
  205. [elastic.HTTPClient.breaker]
  206. window ="3s"
  207. sleep ="100ms"
  208. bucket = 10
  209. ratio = 0.5
  210. request = 100
  211. [managerLog]
  212. Key = "2511663d546f1413"
  213. Secret = "cde3b480836cc76df3d635470f991caa"
  214. Group = "LogAudit-MainSearch-P"
  215. Topic = "LogAudit-T"
  216. Action = "pub"
  217. Buffer = 10240
  218. Name = "log-audit/log-sub"
  219. Proto = "tcp"
  220. Addr = "172.18.33.50:6205"
  221. Active = 10
  222. Idle = 5
  223. DialTimeout = "200ms"
  224. ReadTimeout = "200ms"
  225. WriteTimeout = "200ms"
  226. IdleTimeout = "80s"