app-show-test.toml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. # This is a TOML document. Boom.
  2. version = "1.1.0"
  3. user = "nobody"
  4. pid = "/tmp/app-show.pid"
  5. dir = "./"
  6. perf = "127.0.0.1:6100"
  7. checkFile = "/data/www/app-show.html"
  8. family = "app-show"
  9. address = ""
  10. trace = true
  11. debug = false
  12. env = "test"
  13. tick = "10m"
  14. [duration]
  15. splash = "2h"
  16. search = "-504h"
  17. [infoc]
  18. path = ""
  19. project = "app-show"
  20. name = "app-show"
  21. [infoc2]
  22. taskID = "000026"
  23. proto = "tcp"
  24. addr = ""
  25. chanSize = 10240
  26. [feedinfoc2]
  27. taskID = "0000236"
  28. proto = "tcp"
  29. addr = ""
  30. chanSize = 10240
  31. [json]
  32. staticDir = "/app-show-static/"
  33. [host]
  34. live = "http://live.bilibili.com"
  35. bangumi = "http://bangumi.bilibili.com"
  36. hetongzi = "http://data-test.bilibili.co"
  37. data = "http://data-test.bilibili.co"
  38. mipush = "https://api.xmpush.xiaomi.com"
  39. apiCo = "http://api.bilibili.co"
  40. apiCoX = "http://api.bilibili.co"
  41. www = "http://www.bilibili.com"
  42. ad = "http://ad.bilibili.co"
  43. search = "http://s.search.bilibili.co"
  44. activity = "http://matsuri.bilibili.co"
  45. apiLiveCo = "http://api.live.bilibili.co"
  46. # ad = "http://172.16.33.180:8082"
  47. [tracer]
  48. family = "app-show"
  49. proto = "unixgram"
  50. addr = "/var/run/dapper-collect/dapper-collect.sock"
  51. [xlog]
  52. dir = "/data/log/app-show/"
  53. [xlog.elk]
  54. project = "app-show"
  55. addr = "172.18.20.17:8520"
  56. chanSize = 10240
  57. [app]
  58. key = "e7482d29be4a95b8"
  59. secret = "9e803791cdef756e75faee68e12b7442"
  60. [httpClient]
  61. key = "e7482d29be4a95b8"
  62. secret = "9e803791cdef756e75faee68e12b7442"
  63. dial = "500ms"
  64. timeout = "2s"
  65. keepAlive = "60s"
  66. timer = 10
  67. [httpClient.breaker]
  68. window = "10s"
  69. sleep = "100ms"
  70. bucket = 10
  71. ratio = 0.5
  72. request = 100
  73. [httpClientAsyn]
  74. key = "e7482d29be4a95b8"
  75. secret = "9e803791cdef756e75faee68e12b7442"
  76. dial = "1s"
  77. timeout = "2s"
  78. keepAlive = "60s"
  79. timer = 10
  80. [httpClientAsyn.breaker]
  81. window = "10s"
  82. sleep = "100ms"
  83. bucket = 10
  84. ratio = 0.5
  85. request = 100
  86. [httpData]
  87. key = "e7482d29be4a95b8"
  88. secret = "9e803791cdef756e75faee68e12b7442"
  89. dial = "500ms"
  90. timeout = "2s"
  91. keepAlive = "60s"
  92. timer = 10
  93. [httpData.breaker]
  94. window = "10s"
  95. sleep = "100ms"
  96. bucket = 10
  97. ratio = 0.5
  98. request = 100
  99. [identify]
  100. whiteAccessKey = ""
  101. whiteMid = 0
  102. [identify.app]
  103. key = "e7482d29be4a95b8"
  104. secret = "9e803791cdef756e75faee68e12b7442"
  105. [identify.memcache]
  106. name = "go-business/identify"
  107. proto = "tcp"
  108. addr = "172.16.33.54:11211"
  109. active = 5
  110. idle = 10
  111. dialTimeout = "1s"
  112. readTimeout = "1s"
  113. writeTimeout = "1s"
  114. idleTimeout = "80s"
  115. [identify.host]
  116. auth = "http://passport.bilibili.com"
  117. secret = "http://open.bilibili.com"
  118. [identify.httpClient]
  119. key = "e7482d29be4a95b8"
  120. secret = "9e803791cdef756e75faee68e12b7442"
  121. dial = "30ms"
  122. timeout = "100ms"
  123. keepAlive = "60s"
  124. [identify.httpClient.breaker]
  125. window = "10s"
  126. sleep = "100ms"
  127. bucket = 10
  128. ratio = 0.5
  129. request = 100
  130. [identify.httpClient.url]
  131. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  132. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  133. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  134. [multiHttp]
  135. [multiHttp.outer]
  136. addrs = ["0.0.0.0:6101"]
  137. maxListen = 100
  138. [multiHttp.inner]
  139. addrs = ["0.0.0.0:6102"]
  140. maxListen = 100
  141. [multiHttp.local]
  142. addrs = ["0.0.0.0:6103"]
  143. maxListen = 100
  144. [archiveRPC]
  145. group = "test"
  146. pullInterval = "10s"
  147. [archiveRPC.client]
  148. proto = "tcp"
  149. timeout = "1s"
  150. timer = 1000
  151. token = "123456"
  152. [archiveRPC.client.breaker]
  153. window ="3s"
  154. sleep ="100ms"
  155. bucket = 10
  156. ratio = 0.5
  157. request = 100
  158. [archiveRPC.zookeeper]
  159. root = "/microservice/archive-service/"
  160. addrs = ["172.16.33.54:2181"]
  161. timeout = "30s"
  162. [dynamicRPC]
  163. pullInterval = "10s"
  164. [dynamicRPC.client]
  165. proto = "tcp"
  166. addr = "172.16.33.56:6239"
  167. timeout = "1s"
  168. timer = 1000
  169. [dynamicRPC.client.breaker]
  170. window ="3s"
  171. sleep ="100ms"
  172. bucket = 10
  173. ratio = 0.5
  174. request = 100
  175. [dynamicRPC.zookeeper]
  176. root = "/microservice/dynamic-service/"
  177. addrs = ["172.16.33.54:2181"]
  178. timeout = "30s"
  179. [accountRPC]
  180. pullInterval = "10s"
  181. [accountRPC.client]
  182. proto = "tcp"
  183. addr = "172.16.33.56:6079"
  184. timeout = "1s"
  185. timer = 1000
  186. [accountRPC.client.breaker]
  187. window ="3s"
  188. sleep ="100ms"
  189. bucket = 10
  190. ratio = 0.5
  191. request = 100
  192. [accountRPC.zookeeper]
  193. root = "/microservice/account-service/"
  194. addrs = ["172.16.33.54:2181"]
  195. timeout = "30s"
  196. [relationRPC]
  197. pullInterval = "10s"
  198. [relationRPC.client]
  199. proto = "tcp"
  200. addr = "172.16.33.56:6079"
  201. timeout = "1s"
  202. timer = 1000
  203. [relationRPC.client.breaker]
  204. window ="3s"
  205. sleep ="100ms"
  206. bucket = 10
  207. ratio = 0.5
  208. request = 100
  209. [relationRPC.zookeeper]
  210. root = "/microservice/relation-service/"
  211. addrs = ["172.16.33.54:2181"]
  212. timeout = "30s"
  213. [resourceRPC]
  214. pullInterval = "10s"
  215. [resourceRPC.client]
  216. proto = "tcp"
  217. addr = "172.16.33.56:6079"
  218. timeout = "1s"
  219. timer = 1000
  220. [resourceRPC.client.breaker]
  221. window ="3s"
  222. sleep ="100ms"
  223. bucket = 10
  224. ratio = 0.5
  225. request = 100
  226. [resourceRPC.zookeeper]
  227. root = "/microservice/article-service/"
  228. addrs = ["172.16.33.54:2181"]
  229. timeout = "30s"
  230. [mysql]
  231. [mysql.show]
  232. addr = "172.16.33.205:3308"
  233. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_show?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  234. active = 5
  235. idle = 2
  236. idleTimeout ="4h"
  237. queryTimeout = "1s"
  238. execTimeout = "1s"
  239. tranTimeout = "1s"
  240. [mysql.show.breaker]
  241. window = "3s"
  242. sleep = "100ms"
  243. bucket = 10
  244. ratio = 0.5
  245. request = 100
  246. [mysql.resource]
  247. addr = "172.16.33.205:3308"
  248. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_resource?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  249. active = 5
  250. idle = 2
  251. idleTimeout ="4h"
  252. queryTimeout = "1s"
  253. execTimeout = "1s"
  254. tranTimeout = "1s"
  255. [mysql.resource.breaker]
  256. window = "3s"
  257. sleep = "100ms"
  258. bucket = 10
  259. ratio = 0.5
  260. request = 100
  261. [redis]
  262. [redis.recommend]
  263. name = "app-show/recommend"
  264. proto = "tcp"
  265. addr = "172.16.33.54:6380"
  266. active = 20
  267. idle = 10
  268. dialTimeout = "50ms"
  269. readTimeout = "100ms"
  270. writeTimeout = "100ms"
  271. idleTimeout = "80s"
  272. expire = "2h"
  273. [redis.stat]
  274. name = "app-interface/stat"
  275. proto = "tcp"
  276. addr = "172.16.33.54:6380"
  277. active = 20
  278. idle = 10
  279. dialTimeout = "50ms"
  280. readTimeout = "50ms"
  281. writeTimeout = "50ms"
  282. idleTimeout = "80s"
  283. expire = "10s"
  284. [memcache]
  285. [memcache.archive]
  286. name = "app-show/archive"
  287. proto = "tcp"
  288. addr = "172.16.33.54:11213"
  289. active = 50
  290. idle = 10
  291. dialTimeout = "50ms"
  292. readTimeout = "100ms"
  293. writeTimeout = "100ms"
  294. idleTimeout = "80s"
  295. expire = "2h"
  296. [dislikeDatabus]
  297. key = "0PtMsVFzWyyvoTgAyLCG"
  298. secret= "0PtMsVFzWyyvoTgAyLCH"
  299. group= "TagDislike-SkyHorse-P"
  300. topic= "Dislike-T"
  301. action="pub"
  302. [dislikeDatabus.redis]
  303. name = "app-feed/dislike"
  304. proto = "tcp"
  305. addr = "172.16.33.56:6205"
  306. active = 100
  307. idle = 50
  308. dialTimeout = "50ms"
  309. readTimeout = "200ms"
  310. writeTimeout = "200ms"
  311. idleTimeout = "80s"
  312. [recommend]
  313. [recommend.host]
  314. 1 = ["172.16.33.62"]
  315. [recommend.group]
  316. 0 = 1
  317. 1 = 1
  318. 2 = 1
  319. 3 = 1
  320. 4 = 1
  321. 5 = 1
  322. 6 = 1
  323. 7 = 1
  324. 8 = 1
  325. 9 = 1
  326. 10 = 1
  327. 11 = 1
  328. 12 = 1
  329. 13 = 1
  330. 14 = 1
  331. 15 = 1
  332. 16 = 1
  333. 17 = 1
  334. 18 = 1
  335. 19 = 1