archive-service-example.toml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. # This is a TOML document. Boom.
  2. version = "3.0.0"
  3. user = "nobody"
  4. pid = "/tmp/archive-service.pid"
  5. dir = "./"
  6. perf = "127.0.0.1:6080"
  7. checkFile = "/data/www/archive.html"
  8. family = "archive-service"
  9. videoshotURI = "http://i3.hdslb.com/bfs/videoshot/"
  10. videoshotKey = "f555a0f529152dc8c6b1ae60c2af4164"
  11. tick = "5m"
  12. [xlog]
  13. dir = "/data/log/archive-service/"
  14. [xlog.elk]
  15. project = "archive-service"
  16. addr = "172.18.20.17:8520"
  17. chanSize = 1024
  18. [ecode]
  19. service = "archive-service"
  20. [ecode.mysql]
  21. name = "[archive]tcp@172.16.0.148:3306"
  22. dsn = "test:test@tcp(172.16.0.148:3306)/bilibili_apm?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  23. active = 5
  24. idle = 5
  25. [statsd]
  26. project = "archive-service"
  27. addr = "172.18.20.15:8200"
  28. chanSize = 10240
  29. [app]
  30. key = "53e2fa226f5ad348"
  31. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  32. [multiHTTP]
  33. [multiHTTP.inner]
  34. addrs = ["0.0.0.0:6081"]
  35. maxListen = 1000
  36. [multiHTTP.local]
  37. addrs = ["0.0.0.0:6082"]
  38. maxListen = 100
  39. [rpcServer2]
  40. [[rpcServer2.servers]]
  41. proto = "tcp"
  42. addr = "127.0.0.1:6089"
  43. weight = 10
  44. [rpcServer2.zookeeper]
  45. root = "/microservice/archive-service/"
  46. addrs = ["127.0.0.1:2181"]
  47. timeout = "1s"
  48. [db]
  49. [db.arc]
  50. name = "[archive]tcp@172.16.0.148:3306"
  51. dsn = "test:test@tcp(172.16.0.148:3306)/bilibili_archive?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  52. active = 5
  53. idle = 5
  54. [db.dede]
  55. name = "[dede]tcp@172.16.0.5:3306"
  56. dsn = "bilibili:5Fq2M4FbPZK4fhtE@tcp(172.16.0.5:3306)/bilibili?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8"
  57. active = 5
  58. idle = 5
  59. [identify]
  60. whiteAccessKey = ""
  61. whiteMid = 0
  62. [identify.app]
  63. key = "6a29f8ed87407c11"
  64. secret = "d3c5a85f5b895a03735b5d20a273bc57"
  65. [identify.memcache]
  66. name = "go-business/identify"
  67. proto = "tcp"
  68. addr = "172.16.33.54:11211"
  69. active = 5
  70. idle = 10
  71. dialTimeout = "1s"
  72. readTimeout = "1s"
  73. writeTimeout = "1s"
  74. idleTimeout = "80s"
  75. [identify.host]
  76. auth = "http://passport.bilibili.com"
  77. secret = "http://open.bilibili.com"
  78. [identify.authHTTPClient]
  79. dial = "1s"
  80. timeout = "1s"
  81. keepAlive = "60s"
  82. timer = 1000
  83. [identify.secretHTTPClient]
  84. dial = "1s"
  85. timeout = "1s"
  86. keepAlive = "60s"
  87. timer = 1000
  88. [memcache]
  89. [memcache.archive]
  90. name = "archive-service"
  91. proto = "tcp"
  92. addr = "172.16.0.148:11211"
  93. active = 100
  94. idle = 100
  95. dialTimeout = "1s"
  96. readTimeout = "1s"
  97. writeTimeout = "1s"
  98. idleTimeout = "80s"
  99. expire = "10s"
  100. [memcache.video]
  101. name = "archive-service"
  102. proto = "tcp"
  103. addr = "172.16.0.148:11211"
  104. active = 100
  105. idle = 100
  106. dialTimeout = "1s"
  107. readTimeout = "1s"
  108. writeTimeout = "1s"
  109. idleTimeout = "80s"
  110. expire = "10s"
  111. [redis]
  112. [redis.videoshot]
  113. name = "archive-service/videoshot"
  114. proto = "tcp"
  115. addr = "172.16.0.148:6379"
  116. idle = 100
  117. active = 100
  118. dialTimeout = "1s"
  119. readTimeout = "1s"
  120. writeTimeout = "1s"
  121. idleTimeout = "10s"
  122. expire = "10s"
  123. [redis.archive]
  124. name = "archive-service/archive"
  125. proto = "tcp"
  126. addr = "172.16.0.148:6379"
  127. idle = 100
  128. active = 100
  129. dialTimeout = "1s"
  130. readTimeout = "1s"
  131. writeTimeout = "1s"
  132. idleTimeout = "10s"
  133. expire = "8h"
  134. [redis.region]
  135. name = "archive-service/region"
  136. proto = "tcp"
  137. addr = "172.16.0.148:6379"
  138. idle = 100
  139. active = 100
  140. dialTimeout = "1s"
  141. readTimeout = "1s"
  142. writeTimeout = "1s"
  143. idleTimeout = "10s"
  144. [redis.moment]
  145. name = "archive-service/moment"
  146. proto = "tcp"
  147. addr = "172.16.0.148:6379"
  148. idle = 100
  149. active = 100
  150. dialTimeout = "1s"
  151. readTimeout = "1s"
  152. writeTimeout = "1s"
  153. idleTimeout = "10s"
  154. expire = "10s"
  155. [redis.relation]
  156. name = "archive-service/relation"
  157. proto = "tcp"
  158. addr = "172.16.0.148:6379"
  159. idle = 1
  160. active = 1
  161. dialTimeout = "1s"
  162. readTimeout = "1s"
  163. writeTimeout = "1s"
  164. idleTimeout = "10s"
  165. [redis.share]
  166. name = "archive-service/share"
  167. proto = "tcp"
  168. addr = "172.16.0.148:6379"
  169. idle = 1
  170. active = 1
  171. dialTimeout = "1s"
  172. readTimeout = "1s"
  173. writeTimeout = "1s"
  174. idleTimeout = "10s"
  175. expire = "10s"
  176. [redis.stat]
  177. name = "archive-service/stat"
  178. proto = "tcp"
  179. addr = "172.16.0.148:6379"
  180. idle = 1
  181. active = 1
  182. dialTimeout = "1s"
  183. readTimeout = "1s"
  184. writeTimeout = "1s"
  185. idleTimeout = "10s"
  186. expire = "10s"
  187. [hbase]
  188. master = ""
  189. meta = ""
  190. dialTimeout = "1s"
  191. readTimeout = "200ms"
  192. readsTimeout = "1s"
  193. writeTimeout = "200ms"
  194. writesTimeout = "200ms"
  195. [hbase.zookeeper]
  196. root = ""
  197. addrs = ["172.16.33.45:2181"]
  198. timeout = "30s"
  199. [accountRPC]
  200. pullInterval = "10s"
  201. [accountRPC.client]
  202. proto = "tcp"
  203. addr = "127.0.0.1:6079"
  204. timeout = "1s"
  205. timer = 1000
  206. [[accountRPC.backup]]
  207. proto = "tcp"
  208. addr = "127.0.0.1:6079"
  209. timeout = "1s"
  210. timer = 1000
  211. [accountRPC.zookeeper]
  212. root = "/microservice/account-service/"
  213. addrs = ["127.0.0.1:2181"]
  214. timeout = "1s"
  215. [tracer]
  216. proto = "udp"
  217. addr = "172.16.33.46:5140"
  218. tag = "platform/archive-service"
  219. [kafkaProducer]
  220. statTopic = "stat"
  221. firstShareTopic = "share_first"
  222. brokers = ["172.16.0.148:9092"]
  223. sync = false
  224. [kafkaProducer.zookeeper]
  225. root = "/kafka"
  226. addrs = ["172.16.0.148:2181"]
  227. timeout = "200ms"
  228. [databus]
  229. key = "0PtNTguCX35XCtPpjUGC"
  230. secret= "0PtNTguCX35XCtPpjUGD"
  231. group= "Stat-UGC-P"
  232. topic= "Stat-T"
  233. action="pub"
  234. [databus.redis]
  235. name = "archive-service/stat"
  236. proto = "tcp"
  237. addr = "172.16.33.56:6201"
  238. idle = 100
  239. active = 100
  240. dialTimeout = "1s"
  241. readTimeout = "1s"
  242. writeTimeout = "1s"
  243. idleTimeout = "10s"
  244. expire = "1h"