history-interface-test.toml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. # This is a TOML document. Boom.
  2. version = "2.3.0"
  3. user = "nobody"
  4. pid = "/tmp/history.pid"
  5. dir = "./"
  6. perf = "0.0.0.0:6000"
  7. checkFile = "/data/www/history.html"
  8. family = "history"
  9. address = ""
  10. # history
  11. [history]
  12. max = 10
  13. total = 20
  14. cache = 10
  15. page = 20
  16. size = 100
  17. ticker = "30s"
  18. pgc = true
  19. tid = [33,120,148,149,32,94,150,151]
  20. Exp = true
  21. mids = [14771787]
  22. ConsumeSize = 100
  23. [xlog]
  24. dir = "/data/log/history/"
  25. [collector]
  26. taskID = "000078"
  27. proto = "tcp"
  28. addr = "172.19.100.20:5401"
  29. chanSize = 1024
  30. [thirdBusines]
  31. favoriteURL = "http://api.bilibili.co/x/v2/fav/video/favoureds"
  32. bangumiV2URL = "http://bangumi.bilibili.co/internal_api/get_eps_v2"
  33. seasonURL = "http://bangumi.bilibili.co/api/inner/archive/aid2seasonid"
  34. [thirdBusines.httpClient]
  35. dial = "1s"
  36. timeout = "1s"
  37. keepAlive = "60s"
  38. timer = 1000
  39. key = "f6433799dbd88751"
  40. secret = "36f8ddb1806207fe07013ab6a77a3935"
  41. [thirdBusines.httpClient.breaker]
  42. window ="10s"
  43. sleep ="10ms"
  44. bucket = 10
  45. ratio = 0.1
  46. request = 100
  47. [app]
  48. key = "f6433799dbd88751"
  49. secret = "36f8ddb1806207fe07013ab6a77a3935"
  50. [multiHTTP]
  51. [multiHTTP.outer]
  52. addrs = ["0.0.0.0:6001"]
  53. maxListen = 10
  54. [multiHTTP.inner]
  55. addrs = ["0.0.0.0:6002"]
  56. maxListen = 10
  57. [multiHTTP.local]
  58. addrs = ["0.0.0.0:6003"]
  59. maxListen = 10
  60. [bm]
  61. addr = "0.0.0.0:6001"
  62. maxListen = 1000
  63. timeout = "800ms"
  64. [identify]
  65. whiteAccessKey = ""
  66. whiteMid = 0
  67. csrfOn = false
  68. [identify.app]
  69. key = "0dc647722719f2ea"
  70. secret = "a3769b553680da10b40994265fb48d20"
  71. [identify.memcache]
  72. name = "go-business/identify"
  73. proto = "tcp"
  74. addr = "172.16.0.148:11211"
  75. active = 5
  76. idle = 10
  77. dialTimeout = "1s"
  78. readTimeout = "1s"
  79. writeTimeout = "1s"
  80. idleTimeout = "80s"
  81. [identify.host]
  82. auth = "http://passport.bilibili.co"
  83. secret = "http://open.bilibili.co"
  84. [identify.httpClient]
  85. dial = "30ms"
  86. timeout = "100ms"
  87. keepAlive = "60s"
  88. key = "f6433799dbd88751"
  89. secret = "36f8ddb1806207fe07013ab6a77a3935"
  90. [identify.httpClient.breaker]
  91. window = "10s"
  92. sleep = "100ms"
  93. bucket = 10
  94. ratio = 0.5
  95. request = 100
  96. [identify.httpClient.url]
  97. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  98. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  99. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  100. [rpcClient2]
  101. [rpcClient2.account]
  102. pullInterval = "10s"
  103. [rpcClient2.account.client]
  104. timeout = "1s"
  105. timer = 1000
  106. [rpcClient2.account.client.breaker]
  107. window ="3s"
  108. sleep ="100ms"
  109. bucket = 10
  110. ratio = 0.5
  111. request = 100
  112. [[rpcClient2.account.backup]]
  113. proto = "tcp"
  114. addr = "172.16.33.56:6079"
  115. timeout = "1s"
  116. timer = 1000
  117. [rpcClient2.account.zookeeper]
  118. root = "/microservice/account-service/"
  119. addrs = ["172.18.33.172:2181"]
  120. timeout = "30s"
  121. [rpcClient2.archive]
  122. group = "test"
  123. pullInterval = "10s"
  124. [rpcClient2.archive.client]
  125. token = "123456"
  126. timeout = "1s"
  127. timer = 1000
  128. [rpcClient2.archive.client.breaker]
  129. window ="3s"
  130. sleep ="100ms"
  131. bucket = 10
  132. ratio = 0.5
  133. request = 100
  134. [[rpcClient2.archive.backup]]
  135. proto = "tcp"
  136. addr = "172.16.33.56:6089"
  137. timeout = "1s"
  138. timer = 1000
  139. [rpcClient2.archive.zookeeper]
  140. root = "/microservice/archive-service/"
  141. addrs = ["172.18.33.172:2181"]
  142. timeout = "30s"
  143. [rpcClient2.archive.breaker]
  144. window ="3s"
  145. sleep ="100ms"
  146. bucket = 10
  147. ratio = 0.5
  148. request = 100
  149. [toview]
  150. name = "history"
  151. proto = "tcp"
  152. addr = "172.16.33.54:6381"
  153. idle = 100
  154. active = 100
  155. dialTimeout = "1s"
  156. readTimeout = "1s"
  157. writeTimeout = "1s"
  158. idleTimeout = "10s"
  159. expire = "6h"
  160. [redis]
  161. name = "history"
  162. proto = "tcp"
  163. addr = "172.16.33.54:6380"
  164. idle = 100
  165. active = 100
  166. dialTimeout = "1s"
  167. readTimeout = "1s"
  168. writeTimeout = "1s"
  169. idleTimeout = "10s"
  170. expire = "6h"
  171. [databus]
  172. [databus.merge]
  173. key = "0Pub71WwEMKXu63qtztu"
  174. secret= "0Pub71WwEMKXu63qtztv"
  175. group= "HistoryMerge-History-P"
  176. topic= "HistoryMerge-T"
  177. action="pub"
  178. name = "history"
  179. proto = "tcp"
  180. addr = "172.16.33.158:6205"
  181. idle = 100
  182. active = 100
  183. dialTimeout = "1s"
  184. readTimeout = "1s"
  185. writeTimeout = "1s"
  186. idleTimeout = "10s"
  187. [databus.Experience]
  188. key = "0Pub71WwEMKXu63qtztu"
  189. secret= "0Pub71WwEMKXu63qtztv"
  190. group= "AccountExp-MainCommunity-P"
  191. topic= "AccountExp-T"
  192. action="pub"
  193. name = "history"
  194. proto = "tcp"
  195. addr = "172.16.33.158:6205"
  196. idle = 100
  197. active = 100
  198. dialTimeout = "1s"
  199. readTimeout = "1s"
  200. writeTimeout = "1s"
  201. idleTimeout = "10s"
  202. [ecode]
  203. domain = "172.16.33.248:6401"
  204. all = "1h"
  205. diff = "10m"
  206. [ecode.clientconfig]
  207. dial = "2000ms"
  208. timeout = "2s"
  209. keepAlive = "10s"
  210. timer = 128
  211. key = "test"
  212. secret = "e6c4c252dc7e3d8a90805eecd7c73396"
  213. [ecode.clientconfig.breaker]
  214. window ="3s"
  215. sleep ="100ms"
  216. bucket = 10
  217. ratio = 0.5
  218. request = 100
  219. [tracer]
  220. proto = "udp"
  221. addr = "172.16.33.46:5140"
  222. tag = "platform/history"
  223. [info]
  224. master = ""
  225. meta = ""
  226. dialTimeout = "1s"
  227. readTimeout = "10s"
  228. readsTimeout = "10s"
  229. writeTimeout = "10s"
  230. writesTimeout = "10s"
  231. [info.zookeeper]
  232. root = ""
  233. addrs = ["172.18.33.131:2181","172.18.33.168:2181","172.18.33.169:2181"]
  234. timeout = "30s"
  235. [grpc]
  236. timeout = "1s"
  237. addr = "0.0.0.0:6008"