app-feed-test.toml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. # This is a TOML document. Boom.
  2. env = "uat"
  3. tick = "1m"
  4. [feed]
  5. feedCacheCount = 200
  6. liveFeedCount = 7
  7. # index
  8. [feed.index]
  9. count = 10
  10. iPadCount = 20
  11. moePosition = 6
  12. followPosition = 7
  13. abnormal = false
  14. interest = ["生活","游戏","影视","娱乐","二次元","音乐","科技","时尚","鬼畜","舞蹈"]
  15. [feed.cmResource]
  16. "iphone" = 1890
  17. "android" = 1897
  18. "ipad" = 1975
  19. [feed.followMode]
  20. title = "当前为首页推荐 - 关注模式(内测版)"
  21. option = [
  22. {title="通用模式",desc="开启后,推荐你可能感兴趣的内容",value=0},
  23. {title="关注模式(内测版)",desc="开启后,仅显示关注UP主更新的视频",value=1}
  24. ]
  25. [feed.followMode.card]
  26. title = "启用首页推荐 - 关注模式(内测版)"
  27. desc = "我们根据你对bilibili推荐的反馈,为你定制了关注模式。开启后,仅为你显示关注UP主更新的视频哦。尝试体验一下?"
  28. button = ["暂不需要","立即开启"]
  29. [showInfoc]
  30. project = "app-feed"
  31. name = "show"
  32. proto = "tcp"
  33. addr = "172.18.21.101:5403"
  34. chanSize = 10240
  35. [tagInfoc]
  36. project = "app-feed"
  37. name = "tag"
  38. proto = "tcp"
  39. addr = "172.18.21.101:5403"
  40. chanSize = 10240
  41. [redirectInfoc]
  42. project = "app-feed"
  43. name = "redirect"
  44. proto = "tcp"
  45. addr = "172.18.21.101:5403"
  46. chanSize = 10240
  47. [showInfoc2]
  48. taskID = "000027"
  49. proto = "tcp"
  50. addr = "172.19.100.20:5401"
  51. chanSize = 10240
  52. [tagInfoc2]
  53. taskID = "000028"
  54. proto = "tcp"
  55. addr = "172.19.100.20:5401"
  56. chanSize = 10240
  57. [redirectInfoc2]
  58. taskID = "000029"
  59. proto = "tcp"
  60. addr = "172.19.100.20:5401"
  61. chanSize = 10240
  62. [host]
  63. live = "http://live.bilibili.co"
  64. liveApi = "http://api.live.bilibili.co"
  65. bangumi = "http://bangumi.bilibili.co"
  66. data = "http://data.bilibili.co"
  67. hetongzi = "http://hetongzi.bilibili.co"
  68. www = "http://www.bilibili.com"
  69. apiCo = "http://api.bilibili.co"
  70. api = "http://api.bilibili.com"
  71. ad = "http://cm.bilibili.co"
  72. activity = "http://matsuri.bilibili.co"
  73. rank = ""
  74. show = "http://show.bilibili.com"
  75. dynamic = "http://api.vc.bilibili.com"
  76. dynamicCo = "http://api.vc.bilibili.co"
  77. bigData = "http://bigdata.bilibili.co"
  78. search = "http://s.search.bilibili.co"
  79. [xlog]
  80. dir = "/data/log/app-feed"
  81. [app]
  82. key = "e7482d29be4a95b8"
  83. secret = "9e803791cdef756e75faee68e12b7442"
  84. [httpClient]
  85. key = "e7482d29be4a95b8"
  86. secret = "9e803791cdef756e75faee68e12b7442"
  87. dial = "30ms"
  88. timeout = "100ms"
  89. keepAlive = "60s"
  90. timer = 128
  91. [httpClient.breaker]
  92. window = "10s"
  93. sleep = "100ms"
  94. bucket = 10
  95. ratio = 0.5
  96. request = 100
  97. [httpClientAsyn]
  98. key = "e7482d29be4a95b8"
  99. secret = "9e803791cdef756e75faee68e12b7442"
  100. dial = "1s"
  101. timeout = "2s"
  102. keepAlive = "60s"
  103. timer = 10
  104. [httpClientAsyn.breaker]
  105. window = "10s"
  106. sleep = "100ms"
  107. bucket = 10
  108. ratio = 0.5
  109. request = 100
  110. [httpData]
  111. key = "e7482d29be4a95b8"
  112. secret = "9e803791cdef756e75faee68e12b7442"
  113. dial = "30ms"
  114. timeout = "200ms"
  115. keepAlive = "60s"
  116. timer = 1024
  117. [httpData.breaker]
  118. window = "10s"
  119. sleep = "100ms"
  120. bucket = 10
  121. ratio = 0.5
  122. request = 100
  123. [httpTag]
  124. key = "e7482d29be4a95b8"
  125. secret = "9e803791cdef756e75faee68e12b7442"
  126. dial = "50ms"
  127. timeout = "200ms"
  128. keepAlive = "60s"
  129. timer = 10
  130. [httpTag.breaker]
  131. window = "10s"
  132. sleep = "100ms"
  133. bucket = 10
  134. ratio = 0.5
  135. request = 100
  136. [httpAd]
  137. key = "e7482d29be4a95b8"
  138. secret = "9e803791cdef756e75faee68e12b7442"
  139. dial = "50ms"
  140. timeout = "100ms"
  141. keepAlive = "60s"
  142. timer = 128
  143. [httpAd.breaker]
  144. window = "10s"
  145. sleep = "100ms"
  146. bucket = 10
  147. ratio = 0.5
  148. request = 100
  149. [httpActivity]
  150. key = "e7482d29be4a95b8"
  151. secret = "9e803791cdef756e75faee68e12b7442"
  152. dial = "50ms"
  153. timeout = "150ms"
  154. keepAlive = "60s"
  155. timer = 128
  156. [httpActivity.breaker]
  157. window = "10s"
  158. sleep = "100ms"
  159. bucket = 10
  160. ratio = 0.5
  161. request = 100
  162. [httpBangumi]
  163. key = "e7482d29be4a95b8"
  164. secret = "9e803791cdef756e75faee68e12b7442"
  165. dial = "50ms"
  166. timeout = "150ms"
  167. keepAlive = "60s"
  168. timer = 128
  169. [httpBangumi.breaker]
  170. window = "10s"
  171. sleep = "100ms"
  172. bucket = 10
  173. ratio = 0.5
  174. request = 100
  175. [httpDynamic]
  176. key = "e7482d29be4a95b8"
  177. secret = "9e803791cdef756e75faee68e12b7442"
  178. dial = "200ms"
  179. timeout = "800ms"
  180. keepAlive = "60s"
  181. timer = 128
  182. [httpDynamic.breaker]
  183. window = "10s"
  184. sleep = "100ms"
  185. bucket = 10
  186. ratio = 0.5
  187. request = 100
  188. [httpShow]
  189. key = "e7482d29be4a95b8"
  190. secret = "9e803791cdef756e75faee68e12b7442"
  191. dial = "50ms"
  192. timeout = "150ms"
  193. keepAlive = "60s"
  194. timer = 128
  195. [httpShow.breaker]
  196. window = "10s"
  197. sleep = "100ms"
  198. bucket = 10
  199. ratio = 0.5
  200. request = 100
  201. [httpSearch]
  202. key = "e7482d29be4a95b8"
  203. secret = "9e803791cdef756e75faee68e12b7442"
  204. dial = "50ms"
  205. timeout = "150ms"
  206. keepAlive = "60s"
  207. timer = 128
  208. [httpSearch.breaker]
  209. window = "10s"
  210. sleep = "100ms"
  211. bucket = 10
  212. ratio = 0.5
  213. request = 100
  214. [bm]
  215. [bm.outer]
  216. addr = "0.0.0.0:6221"
  217. timeout = "1s"
  218. [mysql]
  219. [mysql.show]
  220. addr = "172.18.33.49:3306"
  221. dsn = "show:UJYgc9UkHIaGovEDUXpTU4U0rjBpZtwb@tcp(172.18.33.49:3306)/bilibili_show?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  222. active = 2
  223. idle = 1
  224. queryTimeout = "1s"
  225. execTimeout = "1s"
  226. tranTimeout = "1s"
  227. [mysql.show.Breaker]
  228. window = "1s"
  229. sleep = "1s"
  230. bucket = 10
  231. ratio = 0.5
  232. request = 100
  233. [mysql.resource]
  234. addr = "172.18.33.49:3306"
  235. dsn = "resource:nMgVkY0JPgQr60nUVif5tEUbOTXlilXN@tcp(172.18.33.49:3306)/bilibili_resource?timeout=100ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  236. active = 2
  237. idle = 1
  238. queryTimeout = "1s"
  239. execTimeout = "1s"
  240. tranTimeout = "1s"
  241. [mysql.resource.Breaker]
  242. window = "1s"
  243. sleep = "1s"
  244. bucket = 10
  245. ratio = 0.5
  246. request = 100
  247. [mysql.manager]
  248. addr = "172.16.33.205:3308"
  249. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_manager?timeout=100ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  250. active = 2
  251. idle = 1
  252. queryTimeout = "1s"
  253. execTimeout = "1s"
  254. tranTimeout = "1s"
  255. [mysql.manager.Breaker]
  256. window = "1s"
  257. sleep = "1s"
  258. bucket = 10
  259. ratio = 0.5
  260. request = 100
  261. [redis]
  262. [redis.feed]
  263. name = "app-feed/feed"
  264. proto = "unix"
  265. addr = "/tmp/uat-app-redis.sock"
  266. active = 5
  267. idle = 1
  268. dialTimeout = "30ms"
  269. readTimeout = "80ms"
  270. writeTimeout = "80ms"
  271. idleTimeout = "80s"
  272. expireRecommend = "1h"
  273. expireBlack = "16h"
  274. [redis.upper]
  275. name = "app-feed/upper"
  276. proto = "unix"
  277. addr = "/tmp/uat-app-redis.sock"
  278. active = 5
  279. idle = 1
  280. dialTimeout = "30ms"
  281. readTimeout = "50ms"
  282. writeTimeout = "50ms"
  283. idleTimeout = "80s"
  284. expireUpper = "96h"
  285. [memcache]
  286. [memcache.feed]
  287. name = "app-feed/feed"
  288. proto = "unix"
  289. addr = "/tmp/uat-app-mc.sock"
  290. active = 5
  291. idle = 1
  292. dialTimeout = "30ms"
  293. readTimeout = "150ms"
  294. writeTimeout = "150ms"
  295. idleTimeout = "80s"
  296. expireArchive = "24h"
  297. expireCache = "480h"
  298. [memcache.cache]
  299. name = "app-feed/cache"
  300. proto = "unix"
  301. addr = "/tmp/uat-app-mc.sock"
  302. active = 5
  303. idle = 1
  304. dialTimeout = "30ms"
  305. readTimeout = "150ms"
  306. writeTimeout = "150ms"
  307. idleTimeout = "80s"
  308. expireCache = "24h"
  309. [dislikeDatabus]
  310. key = "0QNB0ZgFozbKUCQhbTq8"
  311. secret = "0QNB0ZgFozbKUCQhbTq9"
  312. group= "TagDislike-SkyHorse-P"
  313. topic= "Dislike-T"
  314. action="pub"
  315. name = "app-feed/dislike"
  316. proto = "tcp"
  317. addr = "172.18.33.50:6205"
  318. active = 5
  319. idle = 1
  320. dialTimeout = "30ms"
  321. readTimeout = "80ms"
  322. writeTimeout = "80ms"
  323. idleTimeout = "80s"
  324. expire = "1h"
  325. [bnj]
  326. tabImg = "http://i1.hdslb.com/bfs/archive/e51ec36d654559de9d2d197f4d77ee60302fa754.png"
  327. tabID = 10
  328. [hbase]
  329. master = ""
  330. meta = ""
  331. dialTimeout = "100ms"
  332. readTimeout = "100ms"
  333. readsTimeout = "200ms"
  334. writeTimeout = "200ms"
  335. writesTimeout = "200ms"
  336. [hbase.zookeeper]
  337. root = ""
  338. addrs = ["172.18.33.131:2181", "172.18.33.168:2181", "172.18.33.169:2181"]
  339. timeout = "30s"