spy-job-test.toml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. version = "1.0.0"
  2. user = "nobody"
  3. pid = "/tmp/spy-job.pid"
  4. dir = "./"
  5. perf = "127.0.0.1:6865"
  6. checkFile = "/data/www/spy-job.html"
  7. family = "spy-job"
  8. [property]
  9. activityEvents = []
  10. blockAccountURL = "https://account.bilibili.com/api/member/blockAccount?"
  11. reportCron = "*/30 * * * * ?"
  12. taskTimer = 2
  13. userInfoShard = 100
  14. historyShard = 100
  15. configLoadTick = "60s"
  16. blockEvent = 2
  17. blockTick = "50ms"
  18. blockWaitTick = "2s"
  19. [property.block]
  20. cycleTimes = 3600
  21. cycleCron = "*/10 * * * * ?"
  22. [HTTPServer]
  23. addr = "0.0.0.0:6866"
  24. maxListen = 10
  25. timeout = "1s"
  26. [spyRPC]
  27. pullInterval = "10s"
  28. [spyRPC.client]
  29. timeout = "1s"
  30. timer = 1000
  31. [spyRPC.client.breaker]
  32. window ="3s"
  33. sleep ="100ms"
  34. bucket = 10
  35. ratio = 0.5
  36. request = 100
  37. [[spyRPC.backup]]
  38. proto = "tcp"
  39. addr = "0.0.0.0:6869"
  40. timeout = "1s"
  41. timer = 1000
  42. [spyRPC.zookeeper]
  43. root = "/microservice/spy-service/"
  44. addrs = ["172.16.33.54:2181"]
  45. timeout = "1s"
  46. [db]
  47. addr= "172.16.33.205:3308"
  48. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_spy?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  49. active = 5
  50. idle = 2
  51. idleTimeout ="4h"
  52. queryTimeout = "100ms"
  53. execTimeout = "100ms"
  54. tranTimeout = "200ms"
  55. [db.breaker]
  56. window = "3s"
  57. sleep = "100ms"
  58. bucket = 10
  59. ratio = 0.5
  60. request = 100
  61. [databus]
  62. [databus.eventData]
  63. key = "0QEO9F8JuuIxZzNDvklH"
  64. secret= "0QEO9F8JuuIxZzNDvklI"
  65. group= "Spy-UGC-S"
  66. topic= "Spy-T"
  67. action="sub"
  68. name = "spy-job/databus"
  69. proto = "tcp"
  70. addr = "172.16.33.158:6205"
  71. idle = 2
  72. active = 10
  73. dialTimeout = "1s"
  74. readTimeout = "60s"
  75. writeTimeout = "1s"
  76. idleTimeout = "10s"
  77. expire = "1h"
  78. [databus.spyStatData]
  79. key = "0QEO9F8JuuIxZzNDvklH"
  80. secret= "0QEO9F8JuuIxZzNDvklI"
  81. group= "Spy-UGC-S"
  82. topic= "Spy-T"
  83. action="sub"
  84. name = "spy-job/databus"
  85. proto = "tcp"
  86. addr = "172.16.33.158:6205"
  87. idle = 2
  88. active = 10
  89. dialTimeout = "1s"
  90. readTimeout = "60s"
  91. writeTimeout = "1s"
  92. idleTimeout = "10s"
  93. expire = "1h"
  94. [databus.secLogin]
  95. key = "0QEO9F8JuuIxZzNDvklH"
  96. secret= "0QEO9F8JuuIxZzNDvklI"
  97. group= "SafeLogin-MainAccountLaw-S"
  98. topic= "SafeLogin-T"
  99. action="sub"
  100. name = "spy-job/databus"
  101. proto = "tcp"
  102. addr = "172.16.33.158:6205"
  103. idle = 2
  104. active = 10
  105. dialTimeout = "1s"
  106. readTimeout = "60s"
  107. writeTimeout = "1s"
  108. idleTimeout = "10s"
  109. expire = "1h"
  110. [memcache]
  111. name = "spy-job/event"
  112. proto = "tcp"
  113. addr = "172.18.33.60:11234"
  114. idle = 5
  115. active = 10
  116. dialTimeout = "1s"
  117. readTimeout = "1s"
  118. writeTimeout = "1s"
  119. idleTimeout = "10s"
  120. [redis]
  121. name = "spy-service"
  122. proto = "tcp"
  123. addr = "172.18.33.61:6879"
  124. idle = 100
  125. active = 100
  126. dialTimeout = "1s"
  127. readTimeout = "1s"
  128. writeTimeout = "1s"
  129. idleTimeout = "10s"
  130. expire = "24h"
  131. MsgUUIDExpire = "300s"
  132. [httpClient]
  133. dial = "1s"
  134. timeout = "3s"
  135. keepAlive = "60s"
  136. timer = 1000
  137. key = "zxnh4k92dwe61t27"
  138. secret = "dnu3bwpxyswqwf1ixpsczthury1nqiew"
  139. [httpClient.breaker]
  140. window = "3s"
  141. sleep = "100ms"
  142. bucket = 10
  143. ratio = 0.5
  144. request = 100
  145. switchoff = false