credit-job-test.toml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. [xlog]
  4. dir = "/data/log/credit-job/"
  5. [bm]
  6. addr = "0.0.0.0:6335"
  7. timeout = "1s"
  8. [host]
  9. apiCoURI = "http://api.bilibili.co"
  10. accountCoURI = "http://account.bilibili.co"
  11. msgCoURI = "http://message.bilibili.co"
  12. [app]
  13. key = "903f486ae7dc87fa"
  14. secret = "6b03fa3e00334166ba3659e2c04201fc"
  15. [databus]
  16. [databus.creditDBSub]
  17. key = "0QHEzXlXE9Ijewj8V4zu"
  18. secret = "0QHEzXlXE9Ijewj8V4zv"
  19. group = "BlockedBinlog-UGC-S"
  20. topic = "Blocked-T"
  21. action = "sub"
  22. offset = "old"
  23. buffer = 2048
  24. name = "credit-job/credit-db-sub"
  25. proto = "tcp"
  26. addr = "172.16.33.158:6205"
  27. idle = 100
  28. active = 100
  29. dialTimeout = "1s"
  30. readTimeout = "60s"
  31. writeTimeout = "1s"
  32. idleTimeout = "10s"
  33. [databus.replyAllSub]
  34. key = "875d05ffa843e297"
  35. secret = "24d052bae2247fc59ee925d46ffd61e2"
  36. group = "Reply-MainAccountLaw-S"
  37. topic = "Reply-T"
  38. action = "sub"
  39. offset = "old"
  40. buffer = 2048
  41. name = "credit-job/reply-all-sub"
  42. proto = "tcp"
  43. addr = "172.16.33.158:6205"
  44. idle = 100
  45. active = 100
  46. dialTimeout = "1s"
  47. readTimeout = "60s"
  48. writeTimeout = "1s"
  49. idleTimeout = "10s"
  50. [databus.labourSub]
  51. key = "875d05ffa843e297"
  52. secret = "24d052bae2247fc59ee925d46ffd61e2"
  53. group = "Credit-MainAccountLaw-P"
  54. topic = "Credit-T"
  55. action = "pub"
  56. offset = "new"
  57. buffer = 2048
  58. name = "credit-job/labour-sub"
  59. proto = "tcp"
  60. addr = "172.16.33.158:6205"
  61. idle = 100
  62. active = 100
  63. dialTimeout = "1s"
  64. readTimeout = "60s"
  65. writeTimeout = "1s"
  66. idleTimeout = "10s"
  67. [rpcClient]
  68. [rpcClient.archive]
  69. timeout = "1s"
  70. [rpcClient.member]
  71. timeout = "1s"
  72. [httpClient]
  73. key = "903f486ae7dc87fa"
  74. secret = "6b03fa3e00334166ba3659e2c04201fc"
  75. dial = "100ms"
  76. timeout = "1s"
  77. keepAlive = "60s"
  78. [httpClient.breaker]
  79. window = "3s"
  80. sleep = "100ms"
  81. bucket = 10
  82. ratio = 0.5
  83. request = 100
  84. [mysql]
  85. addr = "172.16.33.205:3306"
  86. dsn = "blocked:mUdFycLKSbvPgdE28lCveqN77SqsGOmy@tcp(172.16.33.205:3306)/blocked?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  87. active = 5
  88. idle = 2
  89. IdleTimeout ="4h"
  90. queryTimeout = "1s"
  91. execTimeout = "1s"
  92. tranTimeout = "2s"
  93. [mysql.breaker]
  94. window = "3s"
  95. sleep = "100ms"
  96. bucket = 10
  97. ratio = 0.5
  98. request = 100
  99. [memcache]
  100. name = "credit-job"
  101. proto = "tcp"
  102. addr = "172.16.33.54:11211"
  103. idle = 5
  104. active = 10
  105. dialTimeout = "1s"
  106. readTimeout = "1s"
  107. writeTimeout = "1s"
  108. idleTimeout = "10s"
  109. expire = "24h"
  110. [redis]
  111. name = "credit"
  112. proto = "tcp"
  113. addr = "172.16.33.54:6379"
  114. idle = 100
  115. active = 100
  116. dialTimeout = "1s"
  117. readTimeout = "1s"
  118. writeTimeout = "1s"
  119. idleTimeout = "10s"
  120. expire = "720h"
  121. [clearPath]
  122. juryInfoCache = "http://blocked.bilibili.co/x/credit/cache/jury/del"
  123. [judge]
  124. confTimer="120s"
  125. reservedTime="600s"