coin-service-test.toml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/coin-service.pid"
  5. dir = "./"
  6. perf = "127.0.0.1:6150"
  7. checkFile = "/data/www/coin-service.html"
  8. family = "coin-service"
  9. address = "172.16.0.148"
  10. dingURL = "http://api.bilibili.com/ding/dingcoin"
  11. tagURL = "http://api.bilibili.com/x/tag/archive/tags"
  12. accountURL = "http://account.bilibili.co"
  13. [httpClient]
  14. dial = "500ms"
  15. timeout = "1s"
  16. keepAlive = "60s"
  17. timer = 10
  18. key = "d6f625dd1867c36b"
  19. secret = "eafdf317b90019bdef34917fd509390b"
  20. [httpClient.breaker]
  21. window = "3s"
  22. sleep = "100ms"
  23. bucket = 10
  24. ratio = 0.5
  25. request = 100
  26. [log]
  27. dir = "/data/log/coin-service/"
  28. [log.agent]
  29. taskID= "000003"
  30. addr= "172.16.0.204:514"
  31. proto= "tcp"
  32. chan= 1024
  33. [report]
  34. family = "coin-service"
  35. taskID = "000293"
  36. proto = "unixgram"
  37. addr = "/var/run/lancer/collector.sock"
  38. chan = 10240
  39. [dbCoinJob]
  40. key = "0Pub71WwEMKXu63qtztu"
  41. secret = "0Pub71WwEMKXu63qtztv"
  42. group = "CoinJob-UGC-P"
  43. topic = "CoinJob-T"
  44. action = "pub"
  45. name = "coin-job/databus"
  46. proto = "tcp"
  47. addr = "172.16.33.158:6205"
  48. idle = 100
  49. active = 100
  50. dialTimeout = "1s"
  51. readTimeout = "60s"
  52. writeTimeout = "1s"
  53. idleTimeout = "10s"
  54. [dbBigData]
  55. key = "0PtNTguCX35XCtPpjUGC"
  56. secret= "0PtNTguCX35XCtPpjUGD"
  57. group= "Coin-UGC-P"
  58. topic= "Coin-T"
  59. action="pub"
  60. name = "coin-service/coin"
  61. proto = "tcp"
  62. addr = "172.16.33.158:6205"
  63. idle = 100
  64. active = 100
  65. dialTimeout = "1s"
  66. readTimeout = "1s"
  67. writeTimeout = "1s"
  68. idleTimeout = "10s"
  69. expire = "1h"
  70. [grpc]
  71. timeout = "1s"
  72. addr = "0.0.0.0:6158"
  73. [bm]
  74. addr = "0.0.0.0:6152"
  75. timeout = "1s"
  76. [db]
  77. [db.coin]
  78. addr = "172.16.33.205:3306"
  79. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_coin?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  80. active = 5
  81. idle = 5
  82. queryTimeout = "1s"
  83. execTimeout = "1s"
  84. tranTimeout = "2s"
  85. [db.coin.breaker]
  86. window = "3s"
  87. sleep = "100ms"
  88. bucket = 10
  89. ratio = 0.5
  90. request = 100
  91. [redis]
  92. name = "coin-service/coin"
  93. proto = "tcp"
  94. addr = "172.16.0.204:6379"
  95. idle = 100
  96. active = 100
  97. dialTimeout = "1s"
  98. readTimeout = "1s"
  99. writeTimeout = "1s"
  100. idleTimeout = "10s"
  101. expire = "1h"
  102. [antispam]
  103. on=true
  104. second=15
  105. n=30
  106. hour=24
  107. m=1000
  108. [antispam.redis]
  109. name = "coin-service/coin"
  110. proto = "tcp"
  111. addr = "172.16.0.204:6379"
  112. idle = 100
  113. active = 100
  114. dialTimeout = "1s"
  115. readTimeout = "1s"
  116. writeTimeout = "1s"
  117. idleTimeout = "10s"
  118. expire = "1h"
  119. [stat]
  120. [stat.databus]
  121. key = "0QEO9F8JuuIxZzNDvklH"
  122. secret= "0QEO9F8JuuIxZzNDvklI"
  123. group= "ArticleStat-Article-P"
  124. topic= "ArticleStat-T"
  125. action="pub"
  126. name = "article/article-pub"
  127. proto = "tcp"
  128. addr = "172.16.33.158:6205"
  129. idle = 100
  130. active = 100
  131. dialTimeout = "1s"
  132. readTimeout = "60s"
  133. writeTimeout = "1s"
  134. idleTimeout = "10s"
  135. [tracer]
  136. proto = "udp"
  137. addr = "172.16.33.46:5140"
  138. family = "coin-service"
  139. [memcache]
  140. name = "member-service"
  141. proto = "tcp"
  142. addr = "172.16.33.22:21211"
  143. idle = 5
  144. active = 10
  145. dialTimeout = "1s"
  146. readTimeout = "1s"
  147. writeTimeout = "1s"
  148. idleTimeout = "10s"
  149. expire = "24h"
  150. ExpExpire = "72h"
  151. [[Businesses]]
  152. ID = 1
  153. Name = "archive"
  154. AddCoinReason = "Rating for %d : %d"
  155. AddCoinUpperReason = "Rating for %d : {%d} from %d"
  156. AddExpReason = "视频投币奖励"
  157. [[Businesses]]
  158. ID = 2
  159. Name = "article"
  160. AddCoinReason = "cv Rating for %d : %d"
  161. AddCoinUpperReason = "cv Rating for %d : {%d} from %d"
  162. AddExpReason = "文章投币奖励"
  163. [[Businesses]]
  164. ID = 3
  165. Name = "audio"
  166. AddCoinReason = "mv Rating for %d : %d"
  167. AddCoinUpperReason = "mv Rating for %d : {%d} from %d"
  168. AddExpReason = "音乐投币奖励"
  169. [StatMerge]
  170. Business = "archive"
  171. Target = 8
  172. Sources = [1,2,3]
  173. [Coin]
  174. ESLogURL= "http://bili-search.bilibili.co/x/admin/search/log"