videoup-task-admin.toml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. # This is a TOML document. Boom.
  2. [host]
  3. api = "http://uat-api.bilibili.com"
  4. search = "http://uat-bili-search.bilibili.co"
  5. [xlog]
  6. dir = "/data/log/videoup-task-admin/"
  7. family = "videoup-task-admin"
  8. #[xlog.agent]
  9. #taskID = "000069"
  10. #proto = "unixgram"
  11. #addr = "/var/run/lancer/collector.sock"
  12. #chanSize = 10240
  13. [managerReport]
  14. key = "2511663d546f1413"
  15. secret="cde3b480836cc76df3d635470f991caa"
  16. group= "LogAudit-MainSearch-P"
  17. topic= "LogAudit-T"
  18. action="pub"
  19. buffer=10240
  20. name = "log-audit/log-sub"
  21. proto = "tcp"
  22. addr = "172.18.33.50:6205"
  23. idle = 10
  24. active = 10
  25. dialTimeout = "200ms"
  26. readTimeout = "200ms"
  27. writeTimeout = "200ms"
  28. idleTimeout = "80s"
  29. [httpClient]
  30. key = "6aa4286456d16b97"
  31. secret = "351cf022e1ae8296109c3c524faafcc8"
  32. dial = "1s"
  33. timeout = "1s"
  34. keepAlive = "60s"
  35. timer = 1000
  36. [httpClient.breaker]
  37. window = "10s"
  38. sleep = "100ms"
  39. bucket = 10
  40. ratio = 0.5
  41. request = 100
  42. [bm]
  43. addr = "0.0.0.0:7701"
  44. maxListen = 1000
  45. timeout = "1s"
  46. [db]
  47. [db.archive]
  48. name = "172.16.33.205:3308"
  49. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_archive?interpolateParams=true&timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  50. active = 5
  51. idle = 2
  52. idleTimeout ="4h"
  53. queryTimeout = "5s"
  54. execTimeout = "5s"
  55. tranTimeout = "10s"
  56. [db.archive.breaker]
  57. window = "3s"
  58. sleep = "100ms"
  59. bucket = 10
  60. ratio = 0.5
  61. request = 100
  62. [db.archiveRead]
  63. name = "172.16.33.205:3308"
  64. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_archive?interpolateParams=true&timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  65. active = 5
  66. idle = 2
  67. idleTimeout ="4h"
  68. queryTimeout = "5s"
  69. execTimeout = "5s"
  70. tranTimeout = "10s"
  71. [db.archiveRead.breaker]
  72. window = "3s"
  73. sleep = "100ms"
  74. bucket = 10
  75. ratio = 0.5
  76. request = 100
  77. [db.manager]
  78. name = "172.16.33.205:3308"
  79. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_manager?interpolateParams=true&timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8"
  80. active = 5
  81. idle = 2
  82. idleTimeout ="4h"
  83. queryTimeout = "5s"
  84. execTimeout = "5s"
  85. tranTimeout = "10s"
  86. [db.manager.breaker]
  87. window = "3s"
  88. sleep = "100ms"
  89. bucket = 10
  90. ratio = 0.5
  91. request = 100
  92. [auth]
  93. managerHost = "http://uat-manager.bilibili.co"
  94. dashboardHost = "http://dashboard-mng.bilibili.co"
  95. dashboardCaller = "manager-go"
  96. [auth.DsHTTPClient]
  97. key = "manager-go"
  98. secret = "949bbb2dd3178252638c2407578bc7ad"
  99. dial = "1s"
  100. timeout = "1s"
  101. keepAlive = "60s"
  102. [auth.DsHTTPClient.breaker]
  103. window = "3s"
  104. sleep = "100ms"
  105. bucket = 10
  106. ratio = 0.5
  107. request = 100
  108. [auth.MaHTTPClient]
  109. key = "f6433799dbd88751"
  110. secret = "36f8ddb1806207fe07013ab6a77a3935"
  111. dial = "1s"
  112. timeout = "1s"
  113. keepAlive = "60s"
  114. [auth.MaHTTPClient.breaker]
  115. window = "3s"
  116. sleep = "100ms"
  117. bucket = 10
  118. ratio = 0.5
  119. request = 100
  120. [auth.session]
  121. sessionIDLength = 32
  122. cookieLifeTime = 604800
  123. cookieName = "mng-go"
  124. domain = ".bilibili.co"
  125. [auth.session.Memcache]
  126. name = "go-business/auth"
  127. proto = "tcp"
  128. addr = "172.18.33.61:11232"
  129. active = 5
  130. idle = 2
  131. dialTimeout = "1s"
  132. readTimeout = "1s"
  133. writeTimeout = "1s"
  134. idleTimeout = "80s"
  135. [identify]
  136. whiteAccessKey = ""
  137. whiteMid = 0
  138. [identify.app]
  139. key = "53e2fa226f5ad348"
  140. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  141. [identify.host]
  142. auth = "http://uat-passport.bilibili.com"
  143. secret = "http://uat-open.bilibili.com"
  144. [identify.httpClient]
  145. key = "6aa4286456d16b97"
  146. secret = "351cf022e1ae8296109c3c524faafcc8"
  147. dial = "500ms"
  148. timeout = "800ms"
  149. keepAlive = "60s"
  150. [identify.httpClient.breaker]
  151. window = "10s"
  152. sleep = "100ms"
  153. bucket = 10
  154. ratio = 0.5
  155. request = 100
  156. [identify.httpClient.url]
  157. "http://uat-passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  158. "http://uat-passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  159. "http://uat-open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  160. [redis]
  161. [redis.weight]
  162. name = "video-admin/weight"
  163. proto = "tcp"
  164. addr = "172.16.33.54:6381"
  165. idle = 10
  166. active = 10
  167. dialTimeout = "1s"
  168. readTimeout = "1s"
  169. writeTimeout = "1s"
  170. idleTimeout = "10s"
  171. expire = "10s"
  172. [hbase]
  173. master = ""
  174. meta = ""
  175. dialTimeout = "1s"
  176. readTimeout = "10s"
  177. readsTimeout = "10s"
  178. writeTimeout = "10s"
  179. writesTimeout = "10s"
  180. [hbase.zookeeper]
  181. root = ""
  182. addrs = ["172.18.33.131:2181","172.18.33.168:2181","172.18.33.169:2181"]
  183. timeout = "30s"
  184. [RPC]
  185. [rpc.upsRPC]
  186. timeout = "1s"
  187. [GRPC]
  188. [grpc.accRPC]
  189. timeout = "30s"