up-service.toml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. # This is a TOML document. Boom.
  2. consume = false
  3. istest = true
  4. [app]
  5. key = "b8f239ca38a53308"
  6. secret = "5460ef72fe13c10dfb53442b9111427e"
  7. [host]
  8. api = "http://uat-api.bilibili.co"
  9. live = "http://uat-api.vc.bilibili.co"
  10. search = "http://uat-bili-search.bilibili.co"
  11. manager = "http://uat-manager.bilibili.co"
  12. [xlog]
  13. stdout = true
  14. [statsd]
  15. project = "up-service"
  16. addr = "172.18.20.15:8200"
  17. chanSize = 10240
  18. [httpClient]
  19. [httpClient.normal]
  20. key = "b8f239ca38a53308"
  21. secret = "5460ef72fe13c10dfb53442b9111427e"
  22. dial = "500ms"
  23. timeout = "1s"
  24. keepAlive = "60s"
  25. timer = 10
  26. [httpClient.normal.breaker]
  27. window = "10s"
  28. sleep = "100ms"
  29. bucket = 10
  30. ratio = 0.5
  31. request = 100
  32. [httpClient.slow]
  33. key = "b8f239ca38a53308"
  34. secret = "5460ef72fe13c10dfb53442b9111427e"
  35. dial = "1s"
  36. timeout = "10s"
  37. keepAlive = "60s"
  38. timer = 10
  39. [httpClient.slow.breaker]
  40. window = "10s"
  41. sleep = "100ms"
  42. bucket = 10
  43. ratio = 0.5
  44. request = 100
  45. [bm]
  46. [bm.inner]
  47. addr = "0.0.0.0:7441"
  48. maxListen = 1000
  49. timeout = "1s"
  50. [bm.local]
  51. addr = "0.0.0.0:7442"
  52. maxListen = 100
  53. timeout = "1s"
  54. [db]
  55. [db.creative]
  56. name = "[creative]tcp@172.16.33.205:3308"
  57. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_creative?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  58. active = 5
  59. idle = 5
  60. idleTimeout ="4h"
  61. queryTimeout = "5s"
  62. execTimeout = "5s"
  63. tranTimeout = "5s"
  64. [db.creative.breaker]
  65. window = "3s"
  66. sleep = "100ms"
  67. bucket = 10
  68. ratio = 0.5
  69. request = 100
  70. [db.archive]
  71. name = "[archive]tcp@172.16.33.205:3308"
  72. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_archive?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  73. active = 5
  74. idle = 5
  75. idleTimeout ="4h"
  76. queryTimeout = "5s"
  77. execTimeout = "5s"
  78. tranTimeout = "5s"
  79. [db.archive.breaker]
  80. window = "3s"
  81. sleep = "100ms"
  82. bucket = 10
  83. ratio = 0.5
  84. request = 100
  85. [db.arcResult]
  86. name = "172.16.33.205:3308"
  87. dsn = "test:test@tcp(172.16.33.205:3308)/archive_result?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8"
  88. active = 5
  89. idle = 1
  90. idleTimeout = "4h"
  91. queryTimeout = "150ms"
  92. execTimeout = "100ms"
  93. tranTimeout = "200ms"
  94. [db.arcResult.breaker]
  95. window = "3s"
  96. sleep = "100ms"
  97. bucket = 10
  98. ratio = 0.5
  99. request = 100
  100. [db.manager]
  101. name = "172.16.33.205:3308"
  102. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_manager?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8"
  103. active = 5
  104. idle = 2
  105. idleTimeout ="4h"
  106. queryTimeout = "5s"
  107. execTimeout = "5s"
  108. tranTimeout = "10s"
  109. [db.manager.breaker]
  110. window = "3s"
  111. sleep = "100ms"
  112. bucket = 10
  113. ratio = 0.5
  114. request = 100
  115. [db.upcrm]
  116. name = "172.16.33.205:3306"
  117. dsn = "upcrm:DdL6c5JaWCYKMAQ10PURbfeImow9HXlx@tcp(172.16.33.205:3306)/bilibili_upcrm?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8"
  118. active = 5
  119. idle = 2
  120. idleTimeout ="4h"
  121. queryTimeout = "5s"
  122. execTimeout = "5s"
  123. tranTimeout = "10s"
  124. [db.upcrm.breaker]
  125. window = "3s"
  126. sleep = "100ms"
  127. bucket = 10
  128. ratio = 0.5
  129. request = 100
  130. [accountRPC]
  131. timeout = "30s"
  132. [articleRPC]
  133. timeout = "30s"
  134. [ArchiveRPC]
  135. timeout = "30s"
  136. [GRPCClient]
  137. [GRPCClient.Archive]
  138. timeout = "30s"
  139. [GRPCClient.Account]
  140. timeout = "30s"
  141. [identify]
  142. whiteAccessKey = ""
  143. whiteMid = 0
  144. csrf = false
  145. [identify.app]
  146. key = "53e2fa226f5ad348"
  147. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  148. [identify.memcache]
  149. name = "go-business/identify"
  150. proto = "tcp"
  151. addr = "172.18.33.60:11214"
  152. active = 10
  153. idle = 5
  154. dialTimeout = "1s"
  155. readTimeout = "1s"
  156. writeTimeout = "1s"
  157. idleTimeout = "80s"
  158. [identify.host]
  159. auth = "http://uat-passport.bilibili.com"
  160. secret = "http://uat-open.bilibili.com"
  161. [identify.httpClient]
  162. key = "53e2fa226f5ad348"
  163. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  164. dial = "500ms"
  165. timeout = "800ms"
  166. keepAlive = "60s"
  167. [identify.httpClient.breaker]
  168. window = "10s"
  169. sleep = "100ms"
  170. bucket = 10
  171. ratio = 0.5
  172. request = 100
  173. [identify.httpClient.url]
  174. "http://uat-passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  175. "http://uat-passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  176. "http://uat-open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  177. [upSub]
  178. key = "4c76cbb7a985ac90"
  179. secret = "43bb22ce34a6b13e7814f09cb8116522"
  180. addr = "172.16.33.158:6205"
  181. group = "Creative-MainArchive-S"
  182. topic = "Creative-T"
  183. action = "sub"
  184. offset = "old"
  185. buffer = 128
  186. name = "up-service/sub"
  187. proto = "tcp"
  188. idle = 10
  189. active = 100
  190. dialTimeout = "5s"
  191. readTimeout = "6s"
  192. writeTimeout = "5s"
  193. idleTimeout = "10s"
  194. upChanSize = 1024
  195. consumeLimit = 10 #消费速率控制
  196. routineLimit = 10 #消费协程控制
  197. SpecialAddDBLimit = 100 # 100每秒
  198. [monitor]
  199. moni="http://moni.bilibili.co/dashboard/db/databus?orgId=1"
  200. host = "http://bap.bilibili.co"
  201. username="fengpengfei"
  202. appToken = "jLgSvndTeranxGMN"
  203. appSecret = "CcCdlEBYqxqrgAieJuFVZUsgPmweLRms"
  204. intervalAlarm = "5m"
  205. [memcache]
  206. upExpire = "1800s"
  207. upSpecialExpire = "300s"
  208. [memcache.up]
  209. name = "up-service"
  210. proto = "tcp"
  211. addr = "172.18.33.60:11216"
  212. active = 10
  213. idle = 5
  214. dialTimeout = "1s"
  215. readTimeout = "1s"
  216. writeTimeout = "1s"
  217. idleTimeout = "80s"
  218. [redis]
  219. [redis.up]
  220. name = "up-service/up"
  221. proto = "tcp"
  222. addr = "172.18.33.60:6893"
  223. idle = 1
  224. active = 5
  225. dialTimeout = "100ms"
  226. readTimeout = "200ms"
  227. writeTimeout = "200ms"
  228. idleTimeout = "80s"
  229. upExpire = "480h"
  230. [rpcServer2]
  231. discoverOff = false
  232. token = "123456"
  233. [[rpcServer2.servers]]
  234. proto = "tcp"
  235. addr = "0.0.0.0:6079"
  236. weight = 10
  237. group = "test"
  238. [rpcServer2.zookeeper]
  239. root = "/microservice/up-service/"
  240. addrs = ["172.18.33.50:2199","172.18.33.51:2199","172.18.33.52:2199"]
  241. timeout = "1s"
  242. [logCli]
  243. family = "up-service"
  244. taskID = "000293"
  245. proto = "unixgram"
  246. addr = "/var/run/lancer/collector.sock"
  247. chan = 10240
  248. [auth]
  249. managerHost = "http://uat-manager.bilibili.co"
  250. dashboardHost = "http://dashboard-mng.bilibili.co"
  251. dashboardCaller = "manager-go"
  252. [auth.DsHTTPClient]
  253. key = "manager-go"
  254. secret = "949bbb2dd3178252638c2407578bc7ad"
  255. dial = "1s"
  256. timeout = "1s"
  257. keepAlive = "60s"
  258. [auth.DsHTTPClient.breaker]
  259. window = "3s"
  260. sleep = "100ms"
  261. bucket = 10
  262. ratio = 0.5
  263. request = 100
  264. [auth.MaHTTPClient]
  265. key = "f6433799dbd88751"
  266. secret = "36f8ddb1806207fe07013ab6a77a3935"
  267. dial = "1s"
  268. timeout = "1s"
  269. keepAlive = "60s"
  270. [auth.MaHTTPClient.breaker]
  271. window = "3s"
  272. sleep = "100ms"
  273. bucket = 10
  274. ratio = 0.5
  275. request = 100
  276. [auth.session]
  277. sessionIDLength = 32
  278. cookieLifeTime = 1800
  279. cookieName = "mng-go"
  280. domain = ".bilibili.co"
  281. [auth.session.Memcache]
  282. name = "go-business/auth"
  283. proto = "unix"
  284. addr = "/tmp/uat-manager-auth-mc.sock"
  285. active = 10
  286. idle = 5
  287. dialTimeout = "1s"
  288. readTimeout = "1s"
  289. writeTimeout = "1s"
  290. idleTimeout = "80s"
  291. [hbase]
  292. master = ""
  293. meta = ""
  294. dialTimeout = "1s"
  295. readTimeout = "150ms"
  296. readsTimeout = "600ms"
  297. writeTimeout = "200ms"
  298. writesTimeout = "600ms"
  299. [hbase.zookeeper]
  300. root = ""
  301. addrs = ["172.18.33.163:2181","172.18.33.164:2181","172.18.33.165:2181"]
  302. timeout = "30s"