videoup-admin.toml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. # This is a TOML document. Boom.
  2. [host]
  3. api = "http://uat-api.bilibili.com"
  4. mission = "http://172.16.33.104"
  5. account = "http://account.bilibili.co"
  6. manager = "http://manager.bilibili.co"
  7. mngsearch = "http://bili-search.bilibili.co"
  8. task = "http://archive.api.bilibili.co"
  9. archive = "http://archive.api.bilibili.co"
  10. data = "http://data.bilibili.co"
  11. [xlog]
  12. dir = "/data/log/videoup-admin/"
  13. [xlog.elk]
  14. project = "videoup-admin"
  15. addr = "172.18.20.17:8520"
  16. chanSize = 10240
  17. [statsd]
  18. project = "videoup-admin"
  19. addr = "172.18.20.15:8200"
  20. chanSize = 10240
  21. [app]
  22. key = "c05dd4e1638a8af0"
  23. secret = "7daa7f8c06cd33c5c3067063c746fdcb"
  24. [httpClient]
  25. [httpClient.read]
  26. key = "f265dcfa28272742"
  27. secret = "437facc22dc8698b5544669bcc12348d"
  28. dial = "1s"
  29. timeout = "1s"
  30. keepAlive = "60s"
  31. timer = 1000
  32. [httpClient.read.breaker]
  33. window = "10s"
  34. sleep = "100ms"
  35. bucket = 10
  36. ratio = 0.5
  37. request = 100
  38. [httpClient.write]
  39. key = "6aa4286456d16b97"
  40. secret = "351cf022e1ae8296109c3c524faafcc8"
  41. dial = "1s"
  42. timeout = "3s"
  43. keepAlive = "60s"
  44. timer = 1000
  45. [httpClient.write.breaker]
  46. window = "10s"
  47. sleep = "100ms"
  48. bucket = 10
  49. ratio = 0.5
  50. request = 100
  51. [httpClient.search]
  52. key = "6aa4286456d16b97"
  53. secret = "351cf022e1ae8296109c3c524faafcc8"
  54. dial = "1s"
  55. timeout = "3s"
  56. keepAlive = "60s"
  57. timer = 1000
  58. [httpClient.search.breaker]
  59. window = "10s"
  60. sleep = "100ms"
  61. bucket = 10
  62. ratio = 0.5
  63. request = 100
  64. [bm]
  65. addr = "0.0.0.0:6324"
  66. maxListen = 1000
  67. timeout = "1s"
  68. #db for fat 172.16.33.205:3308
  69. #db for uat 172.22.34.101:3306
  70. [ormArchive]
  71. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_archive?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  72. active = 5
  73. idle = 2
  74. idleTimeout = "4h"
  75. [db]
  76. [db.archive]
  77. name = "172.16.33.205:3308"
  78. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_archive?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  79. active = 5
  80. idle = 2
  81. idleTimeout ="4h"
  82. queryTimeout = "5s"
  83. execTimeout = "5s"
  84. tranTimeout = "10s"
  85. [db.archive.breaker]
  86. window = "3s"
  87. sleep = "100ms"
  88. bucket = 10
  89. ratio = 0.5
  90. request = 100
  91. [db.archiveRead]
  92. name = "172.16.33.205:3308"
  93. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_archive?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  94. active = 5
  95. idle = 2
  96. idleTimeout ="4h"
  97. queryTimeout = "5s"
  98. execTimeout = "5s"
  99. tranTimeout = "10s"
  100. [db.archiveRead.breaker]
  101. window = "3s"
  102. sleep = "100ms"
  103. bucket = 10
  104. ratio = 0.5
  105. request = 100
  106. [db.dede]
  107. name = "172.16.33.54:3307"
  108. dsn = "dede_test:dede_test@tcp(172.16.33.54:3307)/bilibili?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8"
  109. active = 5
  110. idle = 2
  111. idleTimeout ="4h"
  112. queryTimeout = "5s"
  113. execTimeout = "5s"
  114. tranTimeout = "10s"
  115. [db.dede.breaker]
  116. window = "3s"
  117. sleep = "100ms"
  118. bucket = 10
  119. ratio = 0.5
  120. request = 100
  121. [db.manager]
  122. name = "172.16.33.205:3308"
  123. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_manager?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8"
  124. active = 5
  125. idle = 2
  126. idleTimeout ="4h"
  127. queryTimeout = "5s"
  128. execTimeout = "5s"
  129. tranTimeout = "10s"
  130. [db.manager.breaker]
  131. window = "3s"
  132. sleep = "100ms"
  133. bucket = 10
  134. ratio = 0.5
  135. request = 100
  136. [db.oversea]
  137. name = "172.16.33.205:3308"
  138. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_oversea?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8"
  139. active = 5
  140. idle = 2
  141. idleTimeout ="4h"
  142. queryTimeout = "5s"
  143. execTimeout = "5s"
  144. tranTimeout = "10s"
  145. [db.oversea.breaker]
  146. window = "3s"
  147. sleep = "100ms"
  148. bucket = 10
  149. ratio = 0.5
  150. request = 100
  151. [db.creative]
  152. name = "172.16.33.205:3308"
  153. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_creative?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8"
  154. active = 5
  155. idle = 2
  156. idleTimeout ="4h"
  157. queryTimeout = "5s"
  158. execTimeout = "5s"
  159. tranTimeout = "10s"
  160. [db.creative.breaker]
  161. window = "3s"
  162. sleep = "100ms"
  163. bucket = 10
  164. ratio = 0.5
  165. request = 100
  166. [identify]
  167. whiteAccessKey = ""
  168. whiteMid = 0
  169. csrf = true
  170. [identify.app]
  171. key = "53e2fa226f5ad348"
  172. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  173. [identify.memcache]
  174. name = "go-business/identify"
  175. proto = "tcp"
  176. addr = "172.16.33.54:11211"
  177. active = 5
  178. idle = 2
  179. dialTimeout = "1s"
  180. readTimeout = "1s"
  181. writeTimeout = "1s"
  182. idleTimeout = "80s"
  183. [identify.host]
  184. auth = "http://passport.bilibili.com"
  185. secret = "http://open.bilibili.com"
  186. [identify.httpClient]
  187. key = "53e2fa226f5ad348"
  188. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  189. dial = "1s"
  190. timeout = "1s"
  191. keepAlive = "60s"
  192. [identify.httpClient.breaker]
  193. window = "10s"
  194. sleep = "100ms"
  195. bucket = 10
  196. ratio = 0.5
  197. request = 100
  198. [identify.httpClient.url]
  199. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  200. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  201. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  202. [auth]
  203. managerHost = "http://uat-manager.bilibili.co"
  204. dashboardHost = "http://dashboard-mng.bilibili.co"
  205. dashboardCaller = "manager-go"
  206. [auth.DsHTTPClient]
  207. key = "manager-go"
  208. secret = "949bbb2dd3178252638c2407578bc7ad"
  209. dial = "1s"
  210. timeout = "1s"
  211. keepAlive = "60s"
  212. [auth.DsHTTPClient.breaker]
  213. window = "3s"
  214. sleep = "100ms"
  215. bucket = 10
  216. ratio = 0.5
  217. request = 100
  218. [auth.MaHTTPClient]
  219. key = "f6433799dbd88751"
  220. secret = "36f8ddb1806207fe07013ab6a77a3935"
  221. dial = "1s"
  222. timeout = "1s"
  223. keepAlive = "60s"
  224. [auth.MaHTTPClient.breaker]
  225. window = "3s"
  226. sleep = "100ms"
  227. bucket = 10
  228. ratio = 0.5
  229. request = 100
  230. [auth.session]
  231. sessionIDLength = 32
  232. cookieLifeTime = 1800
  233. cookieName = "mng-go"
  234. domain = ".bilibili.co"
  235. [auth.session.Memcache]
  236. name = "go-business/auth"
  237. proto = "unix"
  238. addr = "/tmp/uat-manager-auth-mc.sock"
  239. active = 5
  240. idle = 2
  241. dialTimeout = "1s"
  242. readTimeout = "1s"
  243. writeTimeout = "1s"
  244. idleTimeout = "80s"
  245. [accountRPC]
  246. timeout = "10s"
  247. [videoupPub]
  248. key = "0PtMsLLxWyyvoTgAyLCD"
  249. secret = "0PtMsLLxWyyvoTgAyLCE"
  250. group = "Videoup-Videoup2Bvc-P"
  251. topic = "Videoup2Bvc"
  252. action = "pub"
  253. name = "videoup-admin/databus"
  254. proto = "tcp"
  255. addr = "172.16.33.158:6205"
  256. active = 1
  257. idle = 1
  258. dialTimeout = "1s"
  259. readTimeout = "1s"
  260. writeTimeout = "1s"
  261. idleTimeout = "10s"
  262. [upCreditPub]
  263. key = "4c76cbb7a985ac90"
  264. secret = "43bb22ce34a6b13e7814f09cb8116522"
  265. group = "UpCreditLog-MainArchive-P"
  266. topic = "UpCreditLog-T"
  267. action = "pub"
  268. name = "videoup-admin/databus"
  269. proto = "tcp"
  270. addr = "172.16.33.158:6205"
  271. active = 1
  272. idle = 1
  273. dialTimeout = "1s"
  274. readTimeout="1s"
  275. writeTimeout="1s"
  276. idleTimeout="10s"
  277. [redis]
  278. [redis.track]
  279. name = "video-admin/track"
  280. proto = "tcp"
  281. addr = "172.18.33.61:6807"
  282. idle = 10
  283. active = 10
  284. dialTimeout = "1s"
  285. readTimeout = "1s"
  286. writeTimeout = "1s"
  287. idleTimeout = "10s"
  288. expire = "10s"
  289. [redis.secondary]
  290. name = "videoup-admin/secondary"
  291. proto = "tcp"
  292. addr = "172.22.33.137:6835"
  293. active = 10
  294. idle = 2
  295. dialTimeout = "1s"
  296. readTimeout = "1s"
  297. writeTimeout = "1s"
  298. idleTimeout = "80s"
  299. [redis.task]
  300. name = "video-admin/task"
  301. proto = "tcp"
  302. addr = "172.18.33.61:6807"
  303. idle = 10
  304. active = 10
  305. dialTimeout = "1s"
  306. readTimeout = "1s"
  307. writeTimeout = "1s"
  308. idleTimeout = "10s"
  309. [hbase]
  310. master = ""
  311. meta = ""
  312. dialTimeout = "1s"
  313. readTimeout = "10s"
  314. readsTimeout = "10s"
  315. writeTimeout = "10s"
  316. writesTimeout = "10s"
  317. [hbase.zookeeper]
  318. root = ""
  319. addrs = ["172.18.33.131:2181","172.18.33.168:2181","172.18.33.169:2181"]
  320. timeout = "30s"
  321. [tagDisRPC]
  322. timeout="1s"