archive-service-test.toml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. tick = "5m"
  2. playerQn = [15, 16, 32, 48, 64, 80]
  3. playerVipQn = [74,112,116]
  4. PlayerAPI = "http://172.18.33.143:13500/playurl/batch"
  5. PGCPlayerAPI = "http://api.bilibili.co/pgc/internal/dynamic/aid/list"
  6. PlayerSwitch = true
  7. [videoshot]
  8. uri = "http://i3.hdslb.com/bfs/videoshot/"
  9. key = "f555a0f529152dc8c6b1ae60c2af4164"
  10. [xlog]
  11. dir = "/data/log/archive-service/"
  12. [statsd]
  13. project = "archive-service"
  14. addr = "172.18.20.15:8200"
  15. chanSize = 10240
  16. [app]
  17. key = "53e2fa226f5ad348"
  18. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  19. [bm]
  20. [bm.inner]
  21. addr = "0.0.0.0:6081"
  22. timeout = "1s"
  23. [bm.local]
  24. addr = "0.0.0.0:6082"
  25. timeout = "1s"
  26. [rpcServer2]
  27. discoverOff = false
  28. token = "123456"
  29. [[rpcServer2.servers]]
  30. proto = "tcp"
  31. addr = "0.0.0.0:6089"
  32. weight = 10
  33. group = "test"
  34. [rpcServer2.zookeeper]
  35. root = "/microservice/archive-service/"
  36. addrs = ["172.18.33.172:2181"]
  37. timeout = "30s"
  38. [db]
  39. [db.arc]
  40. name = "172.16.33.205:3308"
  41. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_archive?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  42. active = 5
  43. idle = 1
  44. idleTimeout ="4h"
  45. queryTimeout = "150ms"
  46. execTimeout = "100ms"
  47. tranTimeout = "200ms"
  48. [db.arc.breaker]
  49. window = "3s"
  50. sleep = "100ms"
  51. bucket = 10
  52. ratio = 0.5
  53. request = 100
  54. [db.arcRead]
  55. addr = "172.16.33.205:3308"
  56. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_archive?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  57. active = 5
  58. idle = 5
  59. idleTimeout = "4h"
  60. queryTimeout = "150ms"
  61. execTimeout = "100ms"
  62. tranTimeout = "200ms"
  63. [db.arcRead.breaker]
  64. window = "3s"
  65. sleep = "100ms"
  66. bucket = 10
  67. ratio = 0.5
  68. request = 100
  69. [db.arcResult]
  70. name = "172.16.33.205:3308"
  71. dsn = "test:test@tcp(172.16.33.205:3308)/archive_result?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8"
  72. active = 5
  73. idle = 1
  74. idleTimeout = "4h"
  75. queryTimeout = "150ms"
  76. execTimeout = "100ms"
  77. tranTimeout = "200ms"
  78. [db.arcResult.breaker]
  79. window = "3s"
  80. sleep = "100ms"
  81. bucket = 10
  82. ratio = 0.5
  83. request = 100
  84. [db.stat]
  85. name = "172.16.33.205:3308"
  86. dsn = "test:test@tcp(172.16.33.205:3308)/archive_stat?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8"
  87. active = 5
  88. idle = 1
  89. idleTimeout = "4h"
  90. queryTimeout = "150ms"
  91. execTimeout = "100ms"
  92. tranTimeout = "200ms"
  93. [db.stat.breaker]
  94. window = "3s"
  95. sleep = "100ms"
  96. bucket = 10
  97. ratio = 0.5
  98. request = 100
  99. [db.click]
  100. name = "172.16.33.205:3308"
  101. dsn = "test:test@tcp(172.16.33.205:3308)/archive_click?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8"
  102. active = 5
  103. idle = 1
  104. idleTimeout = "4h"
  105. queryTimeout = "150ms"
  106. execTimeout = "100ms"
  107. tranTimeout = "200ms"
  108. [db.click.breaker]
  109. window = "3s"
  110. sleep = "100ms"
  111. bucket = 10
  112. ratio = 0.5
  113. request = 100
  114. [db.like]
  115. name = "172.16.33.205:3308"
  116. dsn = "test:test@tcp(172.16.33.205:3308)/archive_like?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8"
  117. active = 10
  118. idle = 5
  119. idleTimeout = "4h"
  120. queryTimeout = "150ms"
  121. execTimeout = "100ms"
  122. tranTimeout = "200ms"
  123. [db.like.breaker]
  124. window = "3s"
  125. sleep = "100ms"
  126. bucket = 10
  127. ratio = 0.5
  128. request = 100
  129. [ecode]
  130. domain = "172.16.33.248:6401"
  131. all = "1h"
  132. diff = "5m"
  133. [ecode.clientconfig]
  134. key = "test"
  135. secret = "e6c4c252dc7e3d8a90805eecd7c73396"
  136. dial = "2000ms"
  137. timeout = "2s"
  138. keepAlive = "10s"
  139. timer = 128
  140. [ecode.clientconfig.breaker]
  141. window ="3s"
  142. sleep ="100ms"
  143. bucket = 10
  144. ratio = 0.5
  145. request = 100
  146. [ecode.app]
  147. key = "test"
  148. secret = "e6c4c252dc7e3d8a90805eecd7c73396"
  149. [identify]
  150. whiteAccessKey = ""
  151. whiteMid = 0
  152. [identify.app]
  153. key = "6a29f8ed87407c11"
  154. secret = "d3c5a85f5b895a03735b5d20a273bc57"
  155. [identify.host]
  156. auth = "http://passport.bilibili.com"
  157. secret = "http://open.bilibili.com"
  158. [identify.httpClient]
  159. key = "6a29f8ed87407c11"
  160. secret = "d3c5a85f5b895a03735b5d20a273bc57"
  161. dial = "30ms"
  162. timeout = "100ms"
  163. keepAlive = "60s"
  164. [identify.httpClient.breaker]
  165. window = "10s"
  166. sleep = "100ms"
  167. bucket = 10
  168. ratio = 0.5
  169. request = 100
  170. [identify.httpClient.url]
  171. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  172. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  173. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  174. [memcache]
  175. [memcache.archive]
  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. [redis]
  188. [redis.archive]
  189. name = "archive-service/archive"
  190. proto = "tcp"
  191. addr = "172.16.33.54:6379"
  192. idle = 50
  193. active = 100
  194. dialTimeout = "100ms"
  195. readTimeout = "200ms"
  196. writeTimeout = "200ms"
  197. idleTimeout = "80s"
  198. expire = "8h"
  199. [redis.relation]
  200. name = "archive-service/relation"
  201. proto = "tcp"
  202. addr = "172.16.33.54:6379"
  203. idle = 10
  204. active = 10
  205. dialTimeout = "5s"
  206. readTimeout = "200ms"
  207. writeTimeout = "200ms"
  208. idleTimeout = "80s"
  209. [redis.like]
  210. name = "archive-service/like"
  211. proto = "tcp"
  212. addr = "172.16.33.54:6379"
  213. idle = 10
  214. active = 10
  215. dialTimeout = "30ms"
  216. readTimeout = "200ms"
  217. writeTimeout = "200ms"
  218. idleTimeout = "80s"
  219. [kafkaProducer]
  220. firstShareTopic = "share_first"
  221. brokers = ["172.16.33.54:9092"]
  222. sync = false
  223. [kafkaProducer.zookeeper]
  224. root = "/kafka"
  225. addrs = ["172.18.33.172:2181"]
  226. timeout = "30s"
  227. [databus]
  228. key = "0PtNTguCX35XCtPpjUGC"
  229. secret= "0PtNTguCX35XCtPpjUGD"
  230. group= "Stat-UGC-P"
  231. topic= "Stat-T"
  232. action="pub"
  233. name = "archive-service/stat"
  234. proto = "tcp"
  235. addr = "172.16.33.56:6201"
  236. idle = 100
  237. active = 100
  238. dialTimeout = "1s"
  239. readTimeout = "1s"
  240. writeTimeout = "1s"
  241. idleTimeout = "10s"
  242. expire = "1h"
  243. [CacheDatabus]
  244. key = "8e27ab7e39270b59"
  245. secret= "477df6a068d7332a163f95abbad2079c"
  246. group= "ArchiveUserCache-MainAppSvr-P"
  247. topic= "ArchiveUserCache-T"
  248. action="pub"
  249. name = "archive-service/stat"
  250. proto = "tcp"
  251. addr = "172.18.33.50:6205"
  252. idle = 5
  253. active = 50
  254. dialTimeout = "1s"
  255. readTimeout = "1s"
  256. writeTimeout = "1s"
  257. idleTimeout = "10s"
  258. expire = "1h"
  259. [StatDatabus]
  260. key = "4c76cbb7a985ac90"
  261. secret= "8c22a196bf00d623b69cba4e61b1f7dc"
  262. group= "StatShare-MainArchive-P"
  263. topic= "StatShare-T"
  264. action="pub"
  265. offset="old"
  266. buffer=1024
  267. name = "archive-service/StatShare"
  268. proto = "tcp"
  269. addr = "172.16.33.56:6201"
  270. idle = 5
  271. active = 50
  272. dialTimeout = "80ms"
  273. readTimeout = "80ms"
  274. writeTimeout = "80ms"
  275. idleTimeout = "80s"
  276. [shareDatabus]
  277. key = "8e27ab7e39270b59"
  278. secret= "e5d94158a1118c14e1449481023edacf"
  279. group= "AccountExp-MainAppSvr-P"
  280. topic= "AccountExp-T"
  281. action="pub"
  282. name = "archive-service/share"
  283. proto = "tcp"
  284. addr = "172.16.33.56:6201"
  285. idle = 100
  286. active = 100
  287. dialTimeout = "1s"
  288. readTimeout = "1s"
  289. writeTimeout = "1s"
  290. idleTimeout = "10s"
  291. expire = "1h"
  292. [limiter]
  293. domain = "api.bilibili.co"
  294. family = "archive-service"
  295. all = "2h"
  296. diff = "2s"
  297. [limiter.clientconfig]
  298. key = "53e2fa226f5ad348"
  299. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  300. dial = "1s"
  301. timeout = "2s"
  302. keepAlive = "10s"
  303. timer = 128
  304. [limiter.clientconfig.breaker]
  305. window ="3s"
  306. sleep ="100ms"
  307. bucket = 10
  308. ratio = 0.5
  309. request = 100
  310. [limiter.app]
  311. key = "53e2fa226f5ad348"
  312. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  313. [playerClient]
  314. key = "53e2fa226f5ad348"
  315. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  316. dial = "50ms"
  317. timeout = "500ms"
  318. keepAlive = "60s"
  319. [playerClient.breaker]
  320. window = "3s"
  321. sleep = "100ms"
  322. bucket = 10
  323. ratio = 0.5
  324. request = 100