app-channel-test.toml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. # This is a TOML document. Boom.
  2. version = "1.0.1"
  3. user = "nobody"
  4. pid = "/tmp/app-channel.pid"
  5. dir = "./"
  6. checkFile = "/data/www/app-channel.html"
  7. family = "app-channel"
  8. debug = false
  9. tick = "1m"
  10. squareCount = 2
  11. [feedInfoc2]
  12. taskID = "001131"
  13. proto = "tcp"
  14. addr = ""
  15. chanSize = 10240
  16. [channelInfoc2]
  17. taskID = "001140"
  18. proto = "tcp"
  19. addr = ""
  20. chanSize = 10240
  21. [host]
  22. liveApi = "http://api.live.bilibili.co"
  23. bangumi = "http://bangumi.bilibili.co"
  24. data = "http://data.bilibili.co"
  25. apiCo = "http://api.bilibili.co"
  26. activity = "http://matsuri.bilibili.co"
  27. live = "http://live.bilibili.co"
  28. shopping = "http://show.bilibili.com"
  29. [log]
  30. dir = "/data/log/app-channel/"
  31. # [log.elk]
  32. # project = "app-channel"
  33. # addr = "172.18.20.17:8520"
  34. # chanSize = 10240
  35. [app]
  36. key = "e7482d29be4a95b8"
  37. secret = "9e803791cdef756e75faee68e12b7442"
  38. [httpClient]
  39. key = "e7482d29be4a95b8"
  40. secret = "9e803791cdef756e75faee68e12b7442"
  41. dial = "500ms"
  42. timeout = "2s"
  43. keepAlive = "60s"
  44. timer = 10
  45. [httpClient.breaker]
  46. window = "10s"
  47. sleep = "100ms"
  48. bucket = 10
  49. ratio = 0.5
  50. request = 100
  51. [httpClientAsyn]
  52. key = "e7482d29be4a95b8"
  53. secret = "9e803791cdef756e75faee68e12b7442"
  54. dial = "1s"
  55. timeout = "2s"
  56. keepAlive = "60s"
  57. timer = 10
  58. [httpClientAsyn.breaker]
  59. window = "10s"
  60. sleep = "100ms"
  61. bucket = 10
  62. ratio = 0.5
  63. request = 100
  64. [httpShopping]
  65. key = "e7482d29be4a95b8"
  66. secret = "9e803791cdef756e75faee68e12b7442"
  67. dial = "50ms"
  68. timeout = "150ms"
  69. keepAlive = "60s"
  70. timer = 128
  71. [httpShopping.breaker]
  72. window = "10s"
  73. sleep = "100ms"
  74. bucket = 10
  75. ratio = 0.5
  76. request = 100
  77. [identify]
  78. whiteAccessKey = ""
  79. whiteMid = 0
  80. [identify.memcache]
  81. name = "go-business/identify"
  82. proto = "tcp"
  83. addr = "172.16.33.54:11211"
  84. active = 5
  85. idle = 1
  86. dialTimeout = "30ms"
  87. readTimeout = "70ms"
  88. writeTimeout = "70ms"
  89. idleTimeout = "80s"
  90. [identify.host]
  91. auth = "http://passport.bilibili.com"
  92. secret = "http://open.bilibili.com"
  93. [identify.httpClient]
  94. key = "7c7ac0db1aa05587"
  95. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  96. dial = "30ms"
  97. timeout = "100ms"
  98. keepAlive = "60s"
  99. [identify.httpClient.breaker]
  100. window = "10s"
  101. sleep = "100ms"
  102. bucket = 10
  103. ratio = 0.5
  104. request = 100
  105. [identify.httpClient.url]
  106. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  107. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  108. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  109. [bm]
  110. [bm.outer]
  111. addr = "0.0.0.0:7191"
  112. timeout = "1s"
  113. [mysql]
  114. [mysql.show]
  115. addr = "172.16.33.205:3308"
  116. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_show?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  117. active = 5
  118. idle = 2
  119. idleTimeout ="4h"
  120. queryTimeout = "300ms"
  121. execTimeout = "300ms"
  122. tranTimeout = "300ms"
  123. [mysql.show.breaker]
  124. window = "3s"
  125. sleep = "100ms"
  126. bucket = 10
  127. ratio = 0.5
  128. request = 100
  129. [mysql.manager]
  130. addr = "172.16.33.205:3308"
  131. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_manager?timeout=100ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  132. active = 2
  133. idle = 1
  134. idleTimeout = "4h"
  135. queryTimeout = "1s"
  136. execTimeout = "1s"
  137. tranTimeout = "1s"
  138. [mysql.manager.Breaker]
  139. window = "1s"
  140. sleep = "1s"
  141. bucket = 10
  142. ratio = 0.5
  143. request = 100
  144. [dislikeDatabus]
  145. key = "0QNB0ZgFozbKUCQhbTq8"
  146. secret = "0QNB0ZgFozbKUCQhbTq9"
  147. group= "TagDislike-SkyHorse-P"
  148. topic= "Dislike-T"
  149. action="pub"
  150. name = "app-feed/dislike"
  151. proto = "tcp"
  152. addr = "172.18.33.50:6205"
  153. active = 5
  154. idle = 1
  155. dialTimeout = "30ms"
  156. readTimeout = "80ms"
  157. writeTimeout = "80ms"
  158. idleTimeout = "80s"
  159. expire = "1h"