app-view-test.toml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/app-view.pid"
  5. dir = "./"
  6. checkFile = "/data/www/app-view.html"
  7. family = "app-view"
  8. address = ""
  9. trace = false
  10. debug = false
  11. env = "test"
  12. tick = "1m"
  13. roundTick = "30m"
  14. vipTick = "2s"
  15. autoLimit = 100000
  16. relateCnt = 3
  17. [bnj2019]
  18. tick = "10s"
  19. mainAid = 10111165
  20. adAv = 10111164
  21. aidList = [10111164,10111163,10111162,10111161,10111160,10111159,10111158,10111157,10111156,10111155,10111154,10111153,10111152,10111151,10111150,10111149,10111148,10111147,10111146,10111145,10111144,10111143,10111142,10111141]
  22. elecBigText = "给参与拜年祭的UP主"
  23. elecSmallText = "本次充电所有的收入,将会在扣除成本之后,按照一定规则,"
  24. [playURL]
  25. secret = "62Mt3F1kpbvp3LKC"
  26. dmRegion = [36]
  27. [xlog]
  28. dir = "/data/log/app-view/"
  29. [infocCoin]
  30. taskID = "000078"
  31. proto = "tcp"
  32. addr = "172.19.100.20:5401"
  33. chanSize = 1024
  34. [infocView]
  35. taskID = "000025"
  36. project = "app-view"
  37. name = "view"
  38. path = "/data/infoc/app-view/info.log"
  39. [infocRelate]
  40. project = "app-view"
  41. name = "relate"
  42. path = "/data/infoc/app-view/relate.log"
  43. [useractPub]
  44. key = "0PtMsLLxWyyvoTgAyLCD"
  45. secret = "0PtMsLLxWyyvoTgAyLCE"
  46. group = "RecUseract-App-P"
  47. topic = "RecUseract-T"
  48. action = "pub"
  49. name = "app-view/useract"
  50. proto = "tcp"
  51. addr = "172.16.33.158:6205"
  52. active = 1
  53. idle = 1
  54. dialTimeout = "1s"
  55. readTimeout = "1s"
  56. writeTimeout = "1s"
  57. idleTimeout = "10s"
  58. [dislikePub]
  59. key = "0PtMsVFzWyyvoTgAyLCG"
  60. secret= "0PtMsVFzWyyvoTgAyLCH"
  61. group= "TagDislike-SkyHorse-P"
  62. topic= "Dislike-T"
  63. action="pub"
  64. name = "app-feed/dislike"
  65. proto = "tcp"
  66. addr = "172.16.33.158:6205"
  67. active = 100
  68. idle = 50
  69. dialTimeout = "50ms"
  70. readTimeout = "200ms"
  71. writeTimeout = "200ms"
  72. idleTimeout = "80s"
  73. [tracer]
  74. proto = "udp"
  75. addr = "172.16.33.46:5140"
  76. tag = "platform/app-view"
  77. [app]
  78. key = "e7482d29be4a95b8"
  79. secret = "9e803791cdef756e75faee68e12b7442"
  80. [httpClient]
  81. key = "7c7ac0db1aa05587"
  82. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  83. dial = "30ms"
  84. timeout = "800ms"
  85. keepAlive = "60s"
  86. timer = 1024
  87. [httpClient.breaker]
  88. window = "3s"
  89. sleep = "100ms"
  90. bucket = 10
  91. ratio = 0.5
  92. request = 100
  93. [httpAsync]
  94. key = "7c7ac0db1aa05587"
  95. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  96. dial = "30ms"
  97. timeout = "2s"
  98. keepAlive = "60s"
  99. timer = 1024
  100. [httpAsync.breaker]
  101. window = "3s"
  102. sleep = "100ms"
  103. bucket = 10
  104. ratio = 0.5
  105. request = 100
  106. [httpWrite]
  107. key = "7c7ac0db1aa05587"
  108. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  109. dial = "30ms"
  110. timeout = "700ms"
  111. keepAlive = "60s"
  112. timer = 1024
  113. [httpWrite.breaker]
  114. window = "3s"
  115. sleep = "100ms"
  116. bucket = 10
  117. ratio = 0.5
  118. request = 100
  119. [httpBangumi]
  120. key = "7c7ac0db1aa05587"
  121. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  122. dial = "30ms"
  123. timeout = "300ms"
  124. keepAlive = "60s"
  125. timer = 1024
  126. [httpBangumi.breaker]
  127. window = "3s"
  128. sleep = "100ms"
  129. bucket = 10
  130. ratio = 0.5
  131. request = 100
  132. [httpAD]
  133. key = "7c7ac0db1aa05587"
  134. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  135. dial = "30ms"
  136. timeout = "300ms"
  137. keepAlive = "60s"
  138. timer = 1024
  139. [httpAD.breaker]
  140. window = "3s"
  141. sleep = "100ms"
  142. bucket = 10
  143. ratio = 0.5
  144. request = 100
  145. [httpAudio]
  146. key = "7c7ac0db1aa05587"
  147. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  148. dial = "30ms"
  149. timeout = "300ms"
  150. keepAlive = "60s"
  151. timer = 1024
  152. [httpAudio.breaker]
  153. window = "3s"
  154. sleep = "100ms"
  155. bucket = 10
  156. ratio = 0.5
  157. request = 100
  158. [httpGame]
  159. key = "EeOpM531WqQnBvu4"
  160. secret = "gHtKtXTHZJDqGP1tg9ORFs0YWV3kW12V"
  161. dial = "30ms"
  162. timeout = "300ms"
  163. keepAlive = "60s"
  164. timer = 1024
  165. [httpGame.breaker]
  166. window = "3s"
  167. sleep = "100ms"
  168. bucket = 10
  169. ratio = 0.5
  170. request = 100
  171. [httpGameAsync]
  172. key = "EeOpM531WqQnBvu4"
  173. secret = "gHtKtXTHZJDqGP1tg9ORFs0YWV3kW12V"
  174. dial = "1s"
  175. timeout = "2s"
  176. keepAlive = "60s"
  177. timer = 1024
  178. [httpGameAsync.breaker]
  179. window = "3s"
  180. sleep = "100ms"
  181. bucket = 10
  182. ratio = 0.5
  183. request = 100
  184. [httpSearch]
  185. key = "e7482d29be4a95b8"
  186. secret = "9e803791cdef756e75faee68e12b7442"
  187. dial = "50ms"
  188. timeout = "150ms"
  189. keepAlive = "60s"
  190. timer = 128
  191. [httpSearch.breaker]
  192. window = "10s"
  193. sleep = "100ms"
  194. bucket = 10
  195. ratio = 0.5
  196. request = 100
  197. [bm]
  198. [bm.outer]
  199. addr = "0.0.0.0:6961"
  200. timeout = "1s"
  201. [buildLimit]
  202. CooperationIOS = 8290
  203. CooperationAndroid = 5365000
  204. [host]
  205. account = "http://account.bilibili.co"
  206. bangumi = "http://bangumi.bilibili.co"
  207. apiCo = "http://api.bilibili.co"
  208. elec = "http://elec.bilibili.co"
  209. apiLiveCo = "http://api.live.bilibili.co"
  210. ad = "http://cm.bilibili.co"
  211. data = "http://data.bilibili.co"
  212. archive = "http://archive.api.bilibili.co"
  213. game = "http://api.bilibili.co"
  214. vip = "http://vip.bilibili.co"
  215. activity = "http://matsuri.bilibili.co"
  216. ai = "http://172.22.33.111:8101"
  217. bvcvod = "http://bvc-vod.bilibili.co"
  218. [mysql]
  219. [mysql.show]
  220. addr = "172.16.33.205:3306"
  221. dsn = "test:test@tcp(172.16.33.205:3306)/bilibili_show?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  222. active = 5
  223. idle = 2
  224. queryTimeout = "100ms"
  225. execTimeout = "100ms"
  226. tranTimeout = "200ms"
  227. [mysql.show.breaker]
  228. window = "3s"
  229. sleep = "100ms"
  230. bucket = 10
  231. ratio = 0.5
  232. request = 100
  233. [mysql.manager]
  234. addr = "172.16.33.54:3306"
  235. dsn = "test:test@tcp(172.16.33.54:3306)/bilibili_manager?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  236. active = 5
  237. idle = 2
  238. idleTimeout = "4h"
  239. queryTimeout = "200ms"
  240. execTimeout = "200ms"
  241. tranTimeout = "200ms"
  242. [mysql.manager.breaker]
  243. window = "3s"
  244. sleep = "100ms"
  245. bucket = 10
  246. ratio = 0.5
  247. request = 100
  248. [memcache]
  249. [memcache.archive]
  250. name = "app-view/archive"
  251. proto = "tcp"
  252. addr = "172.16.33.54:11213"
  253. active = 50
  254. idle = 10
  255. dialTimeout = "50ms"
  256. readTimeout = "50ms"
  257. writeTimeout = "50ms"
  258. idleTimeout = "80s"
  259. archiveExpire = "20m"
  260. viewExpire = "20m"
  261. relateExpire = "20m"
  262. addonExpire = "5m"
  263. recommedExpire= "10m"