goconvey.toml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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:6413"
  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. dial = "1s"
  25. timeout = "3s"
  26. keepAlive = "60s"
  27. key = "9cfc54570033cd61"
  28. secret = "9d63835fa38fe58a62d9f49ef5da296f"
  29. [HTTPClient.breaker]
  30. window ="10s"
  31. sleep ="10ms"
  32. bucket = 10
  33. ratio = 0.5
  34. request = 100
  35. [GameHTTPClient]
  36. key = "b336ebf10107c212"
  37. secret = "ZadQSt7mCo9nwVu03SwKDEpgSlRBVtFc"
  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. [DynamicDbus]
  93. key = "9765cdac5894f2ba"
  94. secret = "1448f5f2cd6029f6af6c5d438cd31edd"
  95. group= "CommTemplate-MainWebSvr-P"
  96. topic= "CommTemplate-T"
  97. action="pub"
  98. name = "article/article-pub"
  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. [articleRPC]
  108. pullInterval = "10s"
  109. [articleRPC.client]
  110. token = "123456"
  111. proto = "tcp"
  112. timeout = "1s"
  113. timer = 1000
  114. [articleRPC.client.breaker]
  115. window ="10s"
  116. sleep ="10ms"
  117. bucket = 10
  118. ratio = 0.5
  119. request = 100
  120. [articleRPC.zookeeper]
  121. root = "/microservice/article-service/"
  122. addrs = ["172.16.33.54:2181"]
  123. timeout = "30s"
  124. [tagRPC]
  125. pullInterval = "10s"
  126. [tagRPC.client]
  127. proto = "tcp"
  128. addr = "172.16.33.56:6099"
  129. timeout = "1s"
  130. timer = 1000
  131. [tagRPC.client.breaker]
  132. window ="10s"
  133. sleep ="10ms"
  134. bucket = 10
  135. ratio = 0.5
  136. request = 100
  137. [tagRPC.zookeeper]
  138. root = "/microservice/tag-service/"
  139. addrs = ["172.16.33.54:2181"]
  140. timeout = "30s"
  141. [db]
  142. name = "172.16.0.148:3306"
  143. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_article?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  144. active = 5
  145. idle = 2
  146. idleTimeout ="4h"
  147. queryTimeout = "100ms"
  148. execTimeout = "100ms"
  149. tranTimeout = "200ms"
  150. [db.breaker]
  151. window = "3s"
  152. sleep = "100ms"
  153. bucket = 10
  154. ratio = 0.5
  155. request = 100
  156. [redis]
  157. name = "article-job/views"
  158. proto = "tcp"
  159. addr = "127.0.0.1:6379"
  160. active = 10
  161. idle = 2
  162. dialTimeout = "1s"
  163. readTimeout = "1s"
  164. writeTimeout = "1s"
  165. idleTimeout = "80s"
  166. [cheatInfoc]
  167. taskID = "1"
  168. proto = "tcp"
  169. addr = "127.0.0.1:80"
  170. chanSize = 10240
  171. [job]
  172. viewCacheTTL = "30m"
  173. dupViewCacheTTL = "30m"
  174. updateDbInterval = "2m"
  175. GameCacheExpire = "5m"
  176. UpdateSortInterval = "1s"
  177. HotspotInterval = "1m"
  178. HotspotForceInterval = "30m"
  179. actLikeURL = "http://matsuri.bilibili.co/matsuri/api/article/like"
  180. FlowURL = "http://uat-archive.api.bilibili.co/videoup/flow/entry/mid"