coin-job-test.toml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. version = "0.1.0"
  2. perf = "127.0.0.1:6078"
  3. name = "127.0.0.1"
  4. [xlog]
  5. dir = "/data/log/coin-job/"
  6. [bm]
  7. addr = "0.0.0.0:6158"
  8. timeout = "1s"
  9. [databus]
  10. key = "0Pub71WwEMKXu63qtztu"
  11. secret = "0Pub71WwEMKXu63qtztv"
  12. group = "CoinJob-UGC-S"
  13. topic = "CoinJob-T"
  14. action = "sub"
  15. name = "coin-job/databus"
  16. proto = "tcp"
  17. addr = "172.16.33.158:6205"
  18. idle = 100
  19. active = 100
  20. dialTimeout = "1s"
  21. readTimeout = "60s"
  22. writeTimeout = "1s"
  23. idleTimeout = "10s"
  24. [logindatabus]
  25. key = "0QHEzXlXE9Ijewj8V4zu"
  26. secret = "0QHEzXlXE9Ijewj8V4zv"
  27. group = "PassportLog-T-Coin-S"
  28. topic = "LogUserAction-T"
  29. action = "sub"
  30. offset = "new"
  31. buffer = 2048
  32. name = "secure-service/databus"
  33. proto = "tcp"
  34. addr = "172.16.33.158:6205"
  35. idle = 100
  36. active = 100
  37. dialTimeout = "1s"
  38. readTimeout = "60s"
  39. writeTimeout = "1s"
  40. idleTimeout = "10s"
  41. [expDatabus]
  42. key = "4ba46ba31f9a44ef"
  43. secret = "99985eb4451cfb1b899ca0fbe3c4bdc8"
  44. group = "AccountExp-MainAccount-Coin-S"
  45. topic = "AccountExp-T"
  46. action = "sub"
  47. buffer = 2048
  48. name = "coin-job/databus"
  49. proto = "tcp"
  50. addr = "172.16.33.158:6205"
  51. idle = 100
  52. active = 100
  53. dialTimeout = "1s"
  54. readTimeout = "60s"
  55. writeTimeout = "1s"
  56. idleTimeout = "10s"
  57. [databusutil]
  58. size = 100
  59. chan = 1024
  60. num = 4
  61. ticker="30s"
  62. [archiveRPC]
  63. pullInterval = "10s"
  64. group = "group2"
  65. [archiveRPC.client]
  66. timeout = "1s"
  67. timer = 1000
  68. [archiveRPC.client.breaker]
  69. window ="3s"
  70. sleep ="100ms"
  71. bucket = 10
  72. ratio = 0.5
  73. request = 100
  74. [archiveRPC.zookeeper]
  75. root = "/microservice/archive-service/"
  76. addrs = ["172.16.33.54:2181"]
  77. timeout = "1s"
  78. [coinRPC]
  79. pullInterval = "10s"
  80. group = "group2"
  81. [coinRPC.client]
  82. timeout = "1s"
  83. timer = 1000
  84. [coinRPC.client.breaker]
  85. window ="3s"
  86. sleep ="100ms"
  87. bucket = 10
  88. ratio = 0.5
  89. request = 100
  90. [coinRPC.zookeeper]
  91. root = "/microservice/coin-service/"
  92. addrs = ["172.16.33.54:2181"]
  93. timeout = "1s"
  94. [accountRPC]
  95. timeout = "1s"
  96. [memRPC]
  97. timeout = "300ms"
  98. [redis]
  99. name = "coin-service/coin"
  100. proto = "tcp"
  101. addr = "172.16.0.204:6379"
  102. idle = 100
  103. active = 100
  104. dialTimeout = "1s"
  105. readTimeout = "1s"
  106. writeTimeout = "1s"
  107. idleTimeout = "10s"
  108. expire = "1h"
  109. [db]
  110. [db.coin]
  111. addr = "172.16.33.205:3308"
  112. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_coin?timeout=5s&readTimeout=30s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  113. #addr = "127.0.0.1:3306"
  114. #dsn = "root@tcp(127.0.0.1:3306)/bilibili_coins?timeout=5s&readTimeout=30s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  115. active = 5
  116. idle = 5
  117. queryTimeout = "1s"
  118. execTimeout = "1s"
  119. tranTimeout = "2s"
  120. [db.coin.breaker]
  121. window = "3s"
  122. sleep = "100ms"
  123. bucket = 10
  124. ratio = 0.5
  125. request = 100
  126. [db.dede]
  127. addr = "172.16.33.101:3306"
  128. dsn = "account:wx2U1MwXRyWEuURw@tcp(172.16.33.101:3306)/account?timeout=5s&readTimeout=30s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  129. active = 5
  130. idle = 5
  131. queryTimeout = "2s"
  132. execTimeout = "1s"
  133. tranTimeout = "2s"
  134. [db.dede.breaker]
  135. window = "3s"
  136. sleep = "100ms"
  137. bucket = 10
  138. ratio = 0.5
  139. request = 100
  140. [memcache]
  141. name = "member-service"
  142. proto = "tcp"
  143. addr = "172.16.33.22:21211"
  144. idle = 5
  145. active = 10
  146. dialTimeout = "1s"
  147. readTimeout = "1s"
  148. writeTimeout = "1s"
  149. idleTimeout = "10s"
  150. expire = "24h"
  151. [coinJob]
  152. start=false
  153. loginExpire = "72h"