app-show-example.toml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. # This is a TOML document. Boom.
  2. version = "1.6.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 = false
  11. debug = false
  12. env = "dev"
  13. showLog = "/data/infoc/app-show/info.log"
  14. tick = "30s"
  15. [duration]
  16. splash = "2h"
  17. search = "-504h"
  18. [infoc]
  19. path = "/data/infoc/app-show/info.log"
  20. project = "app-show"
  21. name = "app-show"
  22. [json]
  23. staticDir = "/app-show-static/"
  24. [host]
  25. live = "http://live.bilibili.com"
  26. bangumi = "http://bangumi.bilibili.com"
  27. hetongzi = "http://data-test.bilibili.co"
  28. data = "http://data-test.bilibili.co"
  29. mipush = "https://api.xmpush.xiaomi.com"
  30. apiCo = "http://api.bilibili.co"
  31. apiCoX = "http://api.bilibili.co"
  32. www = "http://www.bilibili.com"
  33. ad = "http://ad.bilibili.co"
  34. [tracer]
  35. proto = "udp"
  36. addr = "172.16.33.46:5140"
  37. tag = "platform/app-show"
  38. [xlog]
  39. dir = "/data/log/app-show/"
  40. [xlog.elk]
  41. project = "app-show"
  42. addr = "172.18.20.17:8520"
  43. chanSize = 10240
  44. [app]
  45. key = "e7482d29be4a95b8"
  46. secret = "9e803791cdef756e75faee68e12b7442"
  47. [httpClient]
  48. dial = "500ms"
  49. timeout = "2s"
  50. keepAlive = "60s"
  51. timer = 10
  52. [httpClientAsyn]
  53. dial = "1s"
  54. timeout = "2s"
  55. keepAlive = "60s"
  56. timer = 10
  57. [httpData]
  58. dial = "500ms"
  59. timeout = "2s"
  60. keepAlive = "60s"
  61. timer = 10
  62. [identify]
  63. whiteAccessKey = ""
  64. whiteMid = 0
  65. [identify.app]
  66. key = "6a29f8ed87407c11"
  67. secret = "d3c5a85f5b895a03735b5d20a273bc57"
  68. [identify.memcache]
  69. name = "go-business/identify"
  70. proto = "tcp"
  71. addr = "172.16.33.54:11211"
  72. active = 5
  73. idle = 10
  74. dialTimeout = "1s"
  75. readTimeout = "1s"
  76. writeTimeout = "1s"
  77. idleTimeout = "80s"
  78. [identify.host]
  79. auth = "http://passport.bilibili.com"
  80. secret = "http://open.bilibili.com"
  81. [identify.authHTTPClient]
  82. dial = "1s"
  83. timeout = "1s"
  84. keepAlive = "60s"
  85. timer = 1000
  86. [identify.secretHTTPClient]
  87. dial = "1s"
  88. timeout = "1s"
  89. keepAlive = "60s"
  90. timer = 1000
  91. [multiHttp]
  92. [multiHttp.outer]
  93. addrs = ["0.0.0.0:6101"]
  94. maxListen = 100
  95. [multiHttp.inner]
  96. addrs = ["0.0.0.0:6102"]
  97. maxListen = 100
  98. [multiHttp.local]
  99. addrs = ["0.0.0.0:6103"]
  100. maxListen = 100
  101. [archiveRPC]
  102. pullInterval = "10s"
  103. [archiveRPC.client]
  104. proto = "tcp"
  105. addr = "172.16.0.26:6089"
  106. timeout = "1s"
  107. timer = 1000
  108. [[archiveRPC.backup]]
  109. proto = "tcp"
  110. addr = "172.16.0.26:6089"
  111. timeout = "1s"
  112. timer = 1000
  113. [archiveRPC.zookeeper]
  114. root = "/microservice/archive-service/"
  115. addrs = ["172.16.0.148:2181"]
  116. timeout = "1s"
  117. [accountRPC]
  118. pullInterval = "10s"
  119. [accountRPC.client]
  120. proto = "tcp"
  121. addr = "172.16.33.56:6079"
  122. timeout = "1s"
  123. timer = 1000
  124. [[accountRPC.backup]]
  125. proto = "tcp"
  126. addr = "172.16.33.56:6079"
  127. timeout = "1s"
  128. timer = 1000
  129. [accountRPC.zookeeper]
  130. root = "/microservice/account-service/"
  131. addrs = ["172.16.33.54:2181"]
  132. timeout = "30s"
  133. [mysql]
  134. [mysql.show]
  135. addr = "172.16.0.148:3306"
  136. dsn = "test:test@tcp(172.16.0.148:3306)/bilibili_show?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  137. active = 5
  138. idle = 2
  139. [mysql.resource]
  140. addr = "172.16.0.148:3306"
  141. dsn = "test:test@tcp(172.16.0.148:3306)/bilibili_resource?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  142. active = 5
  143. idle = 2
  144. [mysql.cpt]
  145. addr = "172.16.0.116:3306"
  146. dsn = "test:test@tcp(172.16.0.116:3306)/bilibili_cpt?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  147. active = 5
  148. idle = 2
  149. [redis]
  150. [redis.recommend]
  151. name = "app-show/recommend"
  152. proto = "tcp"
  153. addr = "172.16.0.148:6379"
  154. active = 20
  155. idle = 10
  156. dialTimeout = "50ms"
  157. readTimeout = "100ms"
  158. writeTimeout = "100ms"
  159. idleTimeout = "80s"
  160. expire = "2h"
  161. [redis.stat]
  162. name = "app-interface/stat"
  163. proto = "tcp"
  164. addr = "172.16.0.148:6379"
  165. active = 20
  166. idle = 10
  167. dialTimeout = "50ms"
  168. readTimeout = "100ms"
  169. writeTimeout = "100ms"
  170. idleTimeout = "80s"
  171. expire = "10s"
  172. [memcache]
  173. [memcache.archive]
  174. name = "app-show/archive"
  175. proto = "tcp"
  176. addr = "172.16.0.148:11211"
  177. active = 50
  178. idle = 10
  179. dialTimeout = "50ms"
  180. readTimeout = "100ms"
  181. writeTimeout = "100ms"
  182. idleTimeout = "80s"
  183. expire = "2h"
  184. [DislikeDatabus]
  185. key = ""
  186. secret= ""
  187. group= "bigdata-sky-horse-group"
  188. topic= "Dislike-T"
  189. action="pub"
  190. [databus.redis]
  191. name = "app-feed/dislike"
  192. proto = "tcp"
  193. addr = ""
  194. active = 100
  195. idle = 50
  196. dialTimeout = "50ms"
  197. readTimeout = "200ms"
  198. writeTimeout = "200ms"
  199. idleTimeout = "80s"
  200. [recommend]
  201. [recommend.host]
  202. 1 = ["172.16.33.62"]
  203. [recommend.group]
  204. 0 = 1
  205. 1 = 1
  206. 2 = 1
  207. 3 = 1
  208. 4 = 1
  209. 5 = 1
  210. 6 = 1
  211. 7 = 1
  212. 8 = 1
  213. 9 = 1
  214. 10 = 1
  215. 11 = 1
  216. 12 = 1
  217. 13 = 1
  218. 14 = 1
  219. 15 = 1
  220. 16 = 1
  221. 17 = 1
  222. 18 = 1
  223. 19 = 1