spy-admin-test.toml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. version = "1.0.0"
  2. user = "nobody"
  3. dir = "./"
  4. perf = "0.0.0.0:6330"
  5. family = "spy-admin"
  6. env = "qa"
  7. [log]
  8. dir = "/data/log/spy-admin/"
  9. [db]
  10. [db.spy]
  11. addr= "localhost:3306"
  12. dsn = "root:123456@tcp(localhost:3306)/bilibili_spy?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  13. active = 5
  14. idle = 2
  15. idleTimeout ="4h"
  16. queryTimeout = "100ms"
  17. execTimeout = "100ms"
  18. tranTimeout = "200ms"
  19. [db.spy.breaker]
  20. window = "3s"
  21. sleep = "100ms"
  22. bucket = 10
  23. ratio = 0.5
  24. request = 100
  25. [accountRPC]
  26. pullInterval = "10s"
  27. group = "groupapp"
  28. [accountRPC.client]
  29. timeout = "1s"
  30. timer = 1000
  31. [accountRPC.zookeeper]
  32. root = "/microservice/account-service/"
  33. addrs = ["172.16.33.169:2181"]
  34. timeout = "30s"
  35. [accountRPC.client.breaker]
  36. window ="3s"
  37. sleep ="100ms"
  38. bucket = 10
  39. ratio = 0.5
  40. request = 100
  41. [spyRPC]
  42. policy = "sharding"
  43. pullInterval = "10s"
  44. [spyRPC.client]
  45. timeout = "1s"
  46. timer = 1000
  47. [spyRPC.client.breaker]
  48. window ="3s"
  49. sleep ="100ms"
  50. bucket = 10
  51. ratio = 0.5
  52. request = 100
  53. [spyRPC.zookeeper]
  54. root = "/microservice/spy-service/"
  55. addrs = ["172.16.33.169:2181"]
  56. timeout = "1s"
  57. [memcache]
  58. userExpire = "24h"
  59. [memcache.user]
  60. name = "spy-admin/user"
  61. proto = "tcp"
  62. addr = "172.16.33.22:21211"
  63. idle = 5
  64. active = 10
  65. dialTimeout = "1s"
  66. readTimeout = "1s"
  67. writeTimeout = "1s"
  68. idleTimeout = "10s"
  69. [property]
  70. telValidateURL = "http://passport.bilibili.co/intranet/acc/validateTel?"
  71. blockAccountURL = "https://account.bilibili.com/api/member/blockAccount?"
  72. userInfoShard = 100
  73. historyShard = 100
  74. loadEventTick = "60s"
  75. [property.score]
  76. baseInit = 100
  77. eventInit = 100
  78. [property.punishment]
  79. scoreThreshold = 30
  80. times = 3
  81. [property.event]
  82. serviceName = "spy_service"
  83. bindMailAndTelLowRisk = "bind_mail_and_tel_low_risk"
  84. bindMailOnly = "bind_mail_only"
  85. bindNothing = "bind_nothing"
  86. bindTelLowRiskOnly = "bind_tel_low_risk_only"
  87. bindTelMediumRisk = "bind_tel_medium_risk"
  88. bindTelHighRisk = "bind_tel_high_risk"
  89. bindTelUnknownRisk = "bind_tel_unknown_risk"
  90. [identify]
  91. WhiteAccessKey = ""
  92. WhiteMid = 0
  93. [identify.app]
  94. key = "e7482d29be4a95b8"
  95. secret = "9e803791cdef756e75faee68e12b7442"
  96. [identify.memcache]
  97. name = "go-business/identify"
  98. proto = "unix"
  99. addr = "/tmp/platform-identify-mc.sock"
  100. active = 5
  101. idle = 5
  102. dialTimeout = "1s"
  103. readTimeout = "1s"
  104. writeTimeout = "1s"
  105. idleTimeout = "80s"
  106. [identify.host]
  107. auth = "http://passport.bilibili.com"
  108. secret = "http://open.bilibili.com"
  109. [identify.httpClient]
  110. key = "53e2fa226f5ad348"
  111. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  112. dial = "30ms"
  113. timeout = "100ms"
  114. keepAlive = "60s"
  115. [identify.httpClient.breaker]
  116. window = "10s"
  117. sleep = "100ms"
  118. bucket = 10
  119. ratio = 0.5
  120. request = 100
  121. [identify.httpClient.url]
  122. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  123. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  124. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  125. [bm]
  126. addr = "0.0.0.0:7581"
  127. maxListen = 10
  128. timeout = "1s"