app-intl-test.toml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. # This is a TOML document. Boom.
  2. tick = "1m"
  3. [xlog]
  4. dir = "/data/log/app-intl"
  5. [xlog.agent]
  6. family = "app-intl"
  7. taskID = "000053"
  8. proto = "unixgram"
  9. addr = "/var/run/lancer/collector.sock"
  10. chan = 10240
  11. [bm]
  12. [bm.outer]
  13. addr = "0.0.0.0:8000"
  14. timeout = "1s"
  15. [feed]
  16. [feed.index]
  17. count = 10
  18. iPadCount = 20
  19. moePosition = 6
  20. followPosition = 7
  21. [feed.cmResource]
  22. "iphone" = 1890
  23. "android" = 1897
  24. "ipad" = 1975
  25. [search]
  26. seasonNum = 3
  27. movieNum = 3
  28. seasonMore = 1
  29. movieMore = 1
  30. upUserNum = 1
  31. uvLimit = 1
  32. userNum = 1
  33. userVideoLimit = 1
  34. biliUserNum = 1
  35. biliUserVideoLimit = 1
  36. operationNum = 1
  37. [view]
  38. vipTick = "300s"
  39. relateCnt = 3
  40. [showInfoc]
  41. taskID = "000027"
  42. proto = "tcp"
  43. addr = "172.19.100.20:5401"
  44. chanSize = 10240
  45. [tagInfoc]
  46. taskID = "000028"
  47. proto = "tcp"
  48. addr = "172.19.100.20:5401"
  49. chanSize = 10240
  50. [redirectInfoc]
  51. taskID = "000029"
  52. proto = "tcp"
  53. addr = "172.19.100.20:5401"
  54. chanSize = 10240
  55. [coinInfoc]
  56. taskID = "000078"
  57. proto = "tcp"
  58. addr = "172.19.100.20:5401"
  59. chanSize = 1024
  60. [viewInfoc]
  61. taskID = "000025"
  62. proto = "tcp"
  63. addr = "172.19.100.20:5401"
  64. chanSize = 1024
  65. [relateInfoc]
  66. taskID = "000025"
  67. proto = "tcp"
  68. addr = "172.19.100.20:5401"
  69. chanSize = 1024
  70. [host]
  71. live = "http://live.bilibili.co"
  72. liveApi = "http://api.live.bilibili.co"
  73. bangumi = "http://bangumi.bilibili.co"
  74. data = "http://data.bilibili.co"
  75. hetongzi = "http://hetongzi.bilibili.co"
  76. www = "http://www.bilibili.com"
  77. apiCo = "http://api.bilibili.co"
  78. api = "http://api.bilibili.com"
  79. ad = "http://cm.bilibili.co"
  80. activity = "http://matsuri.bilibili.co"
  81. rank = ""
  82. show = "http://show.bilibili.com"
  83. dynamic = "http://api.vc.bilibili.com"
  84. bigData = "http://bigdata.bilibili.co"
  85. search = "http://s.search.bilibili.co"
  86. [app]
  87. key = "e7482d29be4a95b8"
  88. secret = "9e803791cdef756e75faee68e12b7442"
  89. [httpWrite]
  90. key = "e7482d29be4a95b8"
  91. secret = "9e803791cdef756e75faee68e12b7442"
  92. dial = "30ms"
  93. timeout = "100ms"
  94. keepAlive = "60s"
  95. timer = 128
  96. [httpWrite.breaker]
  97. window = "10s"
  98. sleep = "100ms"
  99. bucket = 10
  100. ratio = 0.5
  101. request = 100
  102. [httpClient]
  103. key = "e7482d29be4a95b8"
  104. secret = "9e803791cdef756e75faee68e12b7442"
  105. dial = "30ms"
  106. timeout = "100ms"
  107. keepAlive = "60s"
  108. timer = 128
  109. [httpClient.breaker]
  110. window = "10s"
  111. sleep = "100ms"
  112. bucket = 10
  113. ratio = 0.5
  114. request = 100
  115. [httpClientAsyn]
  116. key = "e7482d29be4a95b8"
  117. secret = "9e803791cdef756e75faee68e12b7442"
  118. dial = "1s"
  119. timeout = "2s"
  120. keepAlive = "60s"
  121. timer = 10
  122. [httpClientAsyn.breaker]
  123. window = "10s"
  124. sleep = "100ms"
  125. bucket = 10
  126. ratio = 0.5
  127. request = 100
  128. [httpData]
  129. key = "e7482d29be4a95b8"
  130. secret = "9e803791cdef756e75faee68e12b7442"
  131. dial = "30ms"
  132. timeout = "200ms"
  133. keepAlive = "60s"
  134. timer = 1024
  135. [httpData.breaker]
  136. window = "10s"
  137. sleep = "100ms"
  138. bucket = 10
  139. ratio = 0.5
  140. request = 100
  141. [httpTag]
  142. key = "e7482d29be4a95b8"
  143. secret = "9e803791cdef756e75faee68e12b7442"
  144. dial = "50ms"
  145. timeout = "200ms"
  146. keepAlive = "60s"
  147. timer = 10
  148. [httpTag.breaker]
  149. window = "10s"
  150. sleep = "100ms"
  151. bucket = 10
  152. ratio = 0.5
  153. request = 100
  154. [httpAd]
  155. key = "e7482d29be4a95b8"
  156. secret = "9e803791cdef756e75faee68e12b7442"
  157. dial = "50ms"
  158. timeout = "100ms"
  159. keepAlive = "60s"
  160. timer = 128
  161. [httpAd.breaker]
  162. window = "10s"
  163. sleep = "100ms"
  164. bucket = 10
  165. ratio = 0.5
  166. request = 100
  167. [httpActivity]
  168. key = "e7482d29be4a95b8"
  169. secret = "9e803791cdef756e75faee68e12b7442"
  170. dial = "50ms"
  171. timeout = "150ms"
  172. keepAlive = "60s"
  173. timer = 128
  174. [httpActivity.breaker]
  175. window = "10s"
  176. sleep = "100ms"
  177. bucket = 10
  178. ratio = 0.5
  179. request = 100
  180. [httpBangumi]
  181. key = "e7482d29be4a95b8"
  182. secret = "9e803791cdef756e75faee68e12b7442"
  183. dial = "50ms"
  184. timeout = "150ms"
  185. keepAlive = "60s"
  186. timer = 128
  187. [httpBangumi.breaker]
  188. window = "10s"
  189. sleep = "100ms"
  190. bucket = 10
  191. ratio = 0.5
  192. request = 100
  193. [httpDynamic]
  194. key = "e7482d29be4a95b8"
  195. secret = "9e803791cdef756e75faee68e12b7442"
  196. dial = "200ms"
  197. timeout = "800ms"
  198. keepAlive = "60s"
  199. timer = 128
  200. [httpDynamic.breaker]
  201. window = "10s"
  202. sleep = "100ms"
  203. bucket = 10
  204. ratio = 0.5
  205. request = 100
  206. [httpAudio]
  207. key = "e7482d29be4a95b8"
  208. secret = "9e803791cdef756e75faee68e12b7442"
  209. dial = "50ms"
  210. timeout = "150ms"
  211. keepAlive = "60s"
  212. timer = 128
  213. [httpAudio.breaker]
  214. window = "10s"
  215. sleep = "100ms"
  216. bucket = 10
  217. ratio = 0.5
  218. request = 100
  219. [httpShow]
  220. key = "e7482d29be4a95b8"
  221. secret = "9e803791cdef756e75faee68e12b7442"
  222. dial = "50ms"
  223. timeout = "150ms"
  224. keepAlive = "60s"
  225. timer = 128
  226. [httpShow.breaker]
  227. window = "10s"
  228. sleep = "100ms"
  229. bucket = 10
  230. ratio = 0.5
  231. request = 100
  232. [httpSearch]
  233. key = "e7482d29be4a95b8"
  234. secret = "9e803791cdef756e75faee68e12b7442"
  235. dial = "50ms"
  236. timeout = "150ms"
  237. keepAlive = "60s"
  238. timer = 128
  239. [httpSearch.breaker]
  240. window = "10s"
  241. sleep = "100ms"
  242. bucket = 10
  243. ratio = 0.5
  244. request = 100
  245. [mysql]
  246. [mysql.show]
  247. addr = "172.18.33.49:3306"
  248. dsn = "show:UJYgc9UkHIaGovEDUXpTU4U0rjBpZtwb@tcp(172.18.33.49:3306)/bilibili_show?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  249. active = 2
  250. idle = 1
  251. queryTimeout = "1s"
  252. execTimeout = "1s"
  253. tranTimeout = "1s"
  254. [mysql.show.Breaker]
  255. window = "1s"
  256. sleep = "1s"
  257. bucket = 10
  258. ratio = 0.5
  259. request = 100
  260. [mysql.resource]
  261. addr = "172.18.33.49:3306"
  262. dsn = "resource:nMgVkY0JPgQr60nUVif5tEUbOTXlilXN@tcp(172.18.33.49:3306)/bilibili_resource?timeout=100ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  263. active = 2
  264. idle = 1
  265. queryTimeout = "1s"
  266. execTimeout = "1s"
  267. tranTimeout = "1s"
  268. [mysql.resource.Breaker]
  269. window = "1s"
  270. sleep = "1s"
  271. bucket = 10
  272. ratio = 0.5
  273. request = 100
  274. [mysql.manager]
  275. addr = "172.16.33.205:3308"
  276. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_manager?timeout=100ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  277. active = 2
  278. idle = 1
  279. queryTimeout = "1s"
  280. execTimeout = "1s"
  281. tranTimeout = "1s"
  282. [mysql.manager.Breaker]
  283. window = "1s"
  284. sleep = "1s"
  285. bucket = 10
  286. ratio = 0.5
  287. request = 100
  288. [redis]
  289. [redis.feed]
  290. name = "app-intl/feed"
  291. proto = "unix"
  292. addr = "/tmp/uat-app-redis.sock"
  293. active = 5
  294. idle = 1
  295. dialTimeout = "30ms"
  296. readTimeout = "80ms"
  297. writeTimeout = "80ms"
  298. idleTimeout = "80s"
  299. expireRecommend = "1h"
  300. expireBlack = "16h"
  301. [redis.upper]
  302. name = "app-intl/upper"
  303. proto = "unix"
  304. addr = "/tmp/uat-app-redis.sock"
  305. active = 5
  306. idle = 1
  307. dialTimeout = "30ms"
  308. readTimeout = "50ms"
  309. writeTimeout = "50ms"
  310. idleTimeout = "80s"
  311. expireUpper = "96h"
  312. [memcache]
  313. [memcache.feed]
  314. name = "app-intl/feed"
  315. proto = "unix"
  316. addr = "/tmp/uat-app-mc.sock"
  317. active = 5
  318. idle = 1
  319. dialTimeout = "30ms"
  320. readTimeout = "150ms"
  321. writeTimeout = "150ms"
  322. idleTimeout = "80s"
  323. expire = "24h"
  324. [memcache.cache]
  325. name = "app-intl/cache"
  326. proto = "unix"
  327. addr = "/tmp/uat-app-mc.sock"
  328. active = 5
  329. idle = 1
  330. dialTimeout = "30ms"
  331. readTimeout = "150ms"
  332. writeTimeout = "150ms"
  333. idleTimeout = "80s"
  334. expire = "24h"
  335. [memcache.archive]
  336. name = "app-view/archive"
  337. proto = "unix"
  338. addr = "172.18.33.61:11221"
  339. active = 5
  340. idle = 1
  341. dialTimeout = "30ms"
  342. readTimeout = "200ms"
  343. writeTimeout = "200ms"
  344. idleTimeout = "80s"
  345. relateExpire = "5m"