web-show-test.toml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/web-show.pid"
  5. dir = "./"
  6. perf = "0.0.0.0:6120"
  7. checkFile = "/data/www/web-show.html"
  8. family = "web-show"
  9. address = "172.16.0.148"
  10. static = "/data/conf/web-show/static"
  11. [Host]
  12. bangumi = "http://bangumi.bilibili.com"
  13. ad = "http://ad.bilibili.co"
  14. [routerconfig]
  15. [routerconfig.degrade]
  16. on = false
  17. args = ["ids"]
  18. [reload]
  19. jobs ="300s"
  20. notice = "300s"
  21. ad="10s"
  22. [app]
  23. key = "f022126a8a365e20"
  24. secret = "b7b86838145d634b487e67b811b8fab2"
  25. [xlog]
  26. dir = "/data/log/web-show/"
  27. [xlog.elk]
  28. project = "web-show"
  29. addr = "172.18.20.17:8520"
  30. chanSize = 10240
  31. [statsd]
  32. project = "web-show"
  33. addr = "172.18.20.15:8200"
  34. chanSize = 10240
  35. [httpClient]
  36. dial = "500ms"
  37. timeout = "100ms"
  38. keepAlive = "60s"
  39. key = "f022126a8a365e20"
  40. secret = "b7b86838145d634b487e67b811b8fab2"
  41. timer = 1000
  42. [httpClient.breaker]
  43. window ="10s"
  44. sleep ="10ms"
  45. bucket = 10
  46. ratio = 0.1
  47. request = 10
  48. [multiHTTP]
  49. [multiHTTP.outer]
  50. addrs = ["0.0.0.0:6121"]
  51. maxListen = 100
  52. [multiHTTP.inner]
  53. addrs = ["0.0.0.0:6122"]
  54. maxListen = 10
  55. [multiHTTP.local]
  56. addrs = ["0.0.0.0:6123"]
  57. maxListen = 10
  58. [bm]
  59. [bm.outer]
  60. addr = "0.0.0.0:6121"
  61. maxListen = 100
  62. timeout = "1s"
  63. [bm.inner]
  64. addr = "0.0.0.0:6122"
  65. maxListen = 10
  66. timeout = "1s"
  67. [bm.local]
  68. addr = "0.0.0.0:6123"
  69. maxListen = 10
  70. timeout = "1s"
  71. [identify]
  72. whiteAccessKey = ""
  73. whiteMid = 0
  74. [identify.app]
  75. key = "f022126a8a365e20"
  76. secret = "b7b86838145d634b487e67b811b8fab2"
  77. [identify.memcache]
  78. name = "go-business/identify"
  79. proto = "tcp"
  80. addr = "172.16.33.54:11211"
  81. active = 5
  82. idle = 10
  83. dialTimeout = "1s"
  84. readTimeout = "1s"
  85. writeTimeout = "1s"
  86. idleTimeout = "80s"
  87. [identify.host]
  88. auth = "http://passport.bilibili.com"
  89. secret = "http://open.bilibili.com"
  90. [identify.httpClient]
  91. key = "f022126a8a365e20"
  92. secret = "b7b86838145d634b487e67b811b8fab2"
  93. dial = "30ms"
  94. timeout = "100ms"
  95. keepAlive = "60s"
  96. [identify.httpClient.breaker]
  97. window = "10s"
  98. sleep = "100ms"
  99. bucket = 10
  100. ratio = 0.5
  101. request = 100
  102. [identify.httpClient.url]
  103. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  104. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  105. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  106. [rpcClient2]
  107. [rpcClient2.archive]
  108. timeout = "30s"
  109. [rpcClient2.account]
  110. timeout = "30s"
  111. [rpcClient2.resource]
  112. timeout = "30s"
  113. [mysql]
  114. [mysql.operation]
  115. addr = "172.16.33.54:3306"
  116. dsn = "test:test@tcp(172.16.33.54:3306)/bilibili_operation?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  117. active = 5
  118. idle = 2
  119. idleTimeout ="4h"
  120. queryTimeout = "100ms"
  121. execTimeout = "100ms"
  122. tranTimeout = "200ms"
  123. [mysql.operation.breaker]
  124. window ="3s"
  125. sleep ="100ms"
  126. bucket = 10
  127. ratio = 0.5
  128. request = 100
  129. [mysql.ads]
  130. addr = "172.16.33.54:3306"
  131. dsn = "test:test@tcp(172.16.33.54:3306)/bilibili_ads?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  132. active = 5
  133. idle = 2
  134. idleTimeout ="4h"
  135. queryTimeout = "500ms"
  136. execTimeout = "500ms"
  137. tranTimeout = "800ms"
  138. [mysql.ads.breaker]
  139. window ="3s"
  140. sleep ="100ms"
  141. bucket = 10
  142. ratio = 0.5
  143. request = 100
  144. [mysql.res]
  145. addr = "172.16.33.54:3306"
  146. dsn = "test:test@tcp(172.16.33.54:3306)/bilibili_resource?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  147. active = 5
  148. idle = 2
  149. idleTimeout ="4h"
  150. queryTimeout = "100ms"
  151. execTimeout = "100ms"
  152. tranTimeout = "200ms"
  153. [mysql.res.breaker]
  154. window ="3s"
  155. sleep ="100ms"
  156. bucket = 10
  157. ratio = 0.5
  158. request = 100
  159. [mysql.cpt]
  160. addr = "172.16.0.116:3306"
  161. dsn = "test:test@tcp(172.16.0.116:3306)/bilibili_solar?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  162. active = 5
  163. idle = 2
  164. idleTimeout ="4h"
  165. queryTimeout = "100ms"
  166. execTimeout = "100ms"
  167. tranTimeout = "200ms"
  168. [mysql.cpt.breaker]
  169. window ="3s"
  170. sleep ="100ms"
  171. bucket = 10
  172. ratio = 0.5
  173. request = 100
  174. [degradeConfig]
  175. expire = 86400
  176. [degradeConfig.memcache]
  177. name = "go-common/app/interface/activity/web-show"
  178. proto = "tcp"
  179. addr = "172.16.13.140:11211"
  180. idle = 5
  181. active = 10
  182. dialTimeout = "1s"
  183. readTimeout = "1s"
  184. writeTimeout = "1s"
  185. idleTimeout = "80s"
  186. [tracer]
  187. proto = "udp"
  188. addr = "172.16.33.46:5140"
  189. tag = "platform/web-show"