article-job-test.toml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. version = "1.0.0"
  2. user = "nobody"
  3. pid = "/tmp/article-job.pid"
  4. env="dev" # dev or pro
  5. dir = "./"
  6. perf = "0.0.0.0:6740"
  7. family = "article-job"
  8. [xlog]
  9. dir = "/data/log/article-job/"
  10. [tracer]
  11. proto = "udp"
  12. addr = "172.18.21.30:5140"
  13. tag = "platform/article-job"
  14. [app]
  15. key = "9cfc54570033cd61"
  16. secret = "9d63835fa38fe58a62d9f49ef5da296f"
  17. [SMS]
  18. phone = "11111111111,11111111111"
  19. token = "token"
  20. [bm]
  21. addr = "0.0.0.0:6741"
  22. timeout = "1s"
  23. [HTTPClient]
  24. key = "9cfc54570033cd61"
  25. secret = "9d63835fa38fe58a62d9f49ef5da296f"
  26. dial = "50ms"
  27. timeout = "1s"
  28. keepAlive = "60s"
  29. [HTTPClient.breaker]
  30. window ="10s"
  31. sleep ="10ms"
  32. bucket = 10
  33. ratio = 0.5
  34. request = 100
  35. [GameHTTPClient]
  36. key = "9cfc54570033cd61"
  37. secret = "9d63835fa38fe58a62d9f49ef5da296f"
  38. dial = "50ms"
  39. timeout = "1s"
  40. keepAlive = "60s"
  41. [GameHTTPClient.breaker]
  42. window ="10s"
  43. sleep ="10ms"
  44. bucket = 10
  45. ratio = 0.5
  46. request = 100
  47. [articleSub]
  48. key = "0QEO9F8JuuIxZzNDvklH"
  49. secret = "0QEO9F8JuuIxZzNDvklI"
  50. group = "Article-Binlog-S"
  51. topic = "Article-T"
  52. action = "sub"
  53. name = "article-job/article-sub"
  54. proto = "tcp"
  55. addr = "172.16.33.158:6205"
  56. idle = 100
  57. active = 100
  58. dialTimeout = "1s"
  59. readTimeout = "60s"
  60. writeTimeout = "1s"
  61. idleTimeout = "10s"
  62. [articleStatSub]
  63. key = "0QEO9F8JuuIxZzNDvklH"
  64. secret = "0QEO9F8JuuIxZzNDvklI"
  65. group = "ArticleStat-Article-S"
  66. topic = "ArticleStat-T"
  67. action = "sub"
  68. name = "article-job/article-stat-sub"
  69. proto = "tcp"
  70. addr = "172.16.33.158:6205"
  71. idle = 100
  72. active = 100
  73. dialTimeout = "1s"
  74. readTimeout = "60s"
  75. writeTimeout = "1s"
  76. idleTimeout = "10s"
  77. [LikeStatSub]
  78. key = "9765cdac5894f2ba"
  79. secret = "1448f5f2cd6029f6af6c5d438cd31edd"
  80. group = "LikesBinlog-MainWebSvr-S"
  81. topic = "LikesBinlog-T"
  82. action = "sub"
  83. name = "article-job/article-sub"
  84. proto = "tcp"
  85. addr = "172.16.33.158:6205"
  86. idle = 100
  87. active = 100
  88. dialTimeout = "1s"
  89. readTimeout = "60s"
  90. writeTimeout = "1s"
  91. idleTimeout = "10s"
  92. [ReplyStatSub]
  93. key = "9765cdac5894f2ba"
  94. secret = "1448f5f2cd6029f6af6c5d438cd31edd"
  95. group = "LikesBinlog-MainWebSvr-S"
  96. topic = "LikesBinlog-T"
  97. action = "sub"
  98. name = "article-job/article-sub"
  99. proto = "tcp"
  100. addr = "172.16.33.158:6205"
  101. idle = 100
  102. active = 100
  103. dialTimeout = "1s"
  104. readTimeout = "60s"
  105. writeTimeout = "1s"
  106. idleTimeout = "10s"
  107. [FavoriteStatSub]
  108. key = "9765cdac5894f2ba"
  109. secret = "1448f5f2cd6029f6af6c5d438cd31edd"
  110. group = "LikesBinlog-MainWebSvr-S"
  111. topic = "LikesBinlog-T"
  112. action = "sub"
  113. name = "article-job/article-sub"
  114. proto = "tcp"
  115. addr = "172.16.33.158:6205"
  116. idle = 100
  117. active = 100
  118. dialTimeout = "1s"
  119. readTimeout = "60s"
  120. writeTimeout = "1s"
  121. idleTimeout = "10s"
  122. [CoinStatSub]
  123. key = "9765cdac5894f2ba"
  124. secret = "1448f5f2cd6029f6af6c5d438cd31edd"
  125. group = "LikesBinlog-MainWebSvr-S"
  126. topic = "LikesBinlog-T"
  127. action = "sub"
  128. name = "article-job/article-sub"
  129. proto = "tcp"
  130. addr = "172.16.33.158:6205"
  131. idle = 100
  132. active = 100
  133. dialTimeout = "1s"
  134. readTimeout = "60s"
  135. writeTimeout = "1s"
  136. idleTimeout = "10s"
  137. [DynamicDbus]
  138. key = "9765cdac5894f2ba"
  139. secret = "1448f5f2cd6029f6af6c5d438cd31edd"
  140. group= "CommTemplate-MainWebSvr-P"
  141. topic= "CommTemplate-T"
  142. action="pub"
  143. name = "article/article-pub"
  144. proto = "tcp"
  145. addr = "172.16.33.158:6205"
  146. idle = 100
  147. active = 100
  148. dialTimeout = "1s"
  149. readTimeout = "60s"
  150. writeTimeout = "1s"
  151. idleTimeout = "10s"
  152. [articleRPC]
  153. pullInterval = "10s"
  154. [articleRPC.client]
  155. token = "123456"
  156. proto = "tcp"
  157. timeout = "1s"
  158. timer = 1000
  159. [articleRPC.client.breaker]
  160. window ="10s"
  161. sleep ="10ms"
  162. bucket = 10
  163. ratio = 0.5
  164. request = 100
  165. [articleRPC.zookeeper]
  166. root = "/microservice/article-service/"
  167. addrs = ["172.16.33.54:2181"]
  168. timeout = "30s"
  169. [tagRPC]
  170. pullInterval = "10s"
  171. [tagRPC.client]
  172. proto = "tcp"
  173. addr = "172.16.33.56:6099"
  174. timeout = "1s"
  175. timer = 1000
  176. [tagRPC.client.breaker]
  177. window ="10s"
  178. sleep ="10ms"
  179. bucket = 10
  180. ratio = 0.5
  181. request = 100
  182. [tagRPC.zookeeper]
  183. root = "/microservice/tag-service/"
  184. addrs = ["172.16.33.54:2181"]
  185. timeout = "30s"
  186. [db]
  187. name = "172.16.0.148:3306"
  188. dsn = "test:test@tcp(172.16.33.54:3306)/bilibili_article?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  189. active = 5
  190. idle = 2
  191. idleTimeout ="4h"
  192. queryTimeout = "100ms"
  193. execTimeout = "100ms"
  194. tranTimeout = "200ms"
  195. [db.breaker]
  196. window = "3s"
  197. sleep = "100ms"
  198. bucket = 10
  199. ratio = 0.5
  200. request = 100
  201. [redis]
  202. name = "article-job/views"
  203. proto = "tcp"
  204. addr = "172.16.33.54:6381"
  205. active = 100
  206. idle = 100
  207. dialTimeout = "1s"
  208. readTimeout = "1s"
  209. writeTimeout = "1s"
  210. idleTimeout = "80s"
  211. [artRedis]
  212. name = "article-job/views"
  213. proto = "tcp"
  214. addr = "172.16.33.54:6381"
  215. active = 100
  216. idle = 100
  217. dialTimeout = "1s"
  218. readTimeout = "1s"
  219. writeTimeout = "1s"
  220. idleTimeout = "80s"
  221. [cheatInfoc]
  222. taskID = "1"
  223. proto = "tcp"
  224. addr = "127.0.0.1:80"
  225. chanSize = 10240
  226. [ReadInfoc]
  227. taskID = "1"
  228. proto = "tcp"
  229. addr = "127.0.0.1:80"
  230. chanSize = 10240
  231. [job]
  232. viewCacheTTL = "30m"
  233. dupViewCacheTTL = "30m"
  234. updateDbInterval = "2m"
  235. UpdateSortInterval = "1s"
  236. GameCacheExpire = "5m"
  237. ListReadCountInterval = "1h"
  238. HotspotInterval = "1m"
  239. HotspotForceInterval = "30m"
  240. actLikeURL = "http://matsuri.bilibili.co/matsuri/api/article/like"
  241. FlowURL = "http://uat-archive.api.bilibili.co/videoup/flow/entry/mid"
  242. maxNewArtsNum = 1000
  243. MaxSortArtsNum = 1000
  244. ExpireSortArts = "24h"
  245. TTLSortArts = "72h"
  246. SortLimitTime = "504h"