discovery-idc1-2.toml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. version = "1.0.0"
  2. user = "nobody"
  3. pid = "/tmp/discovery.pid"
  4. dir = "./"
  5. nodes = ["127.0.0.1:7171", "127.0.0.1:7172"]
  6. [zones]
  7. "127.0.0.1:7181"="zone2"
  8. [log]
  9. dir = "/data/log/discovery/"
  10. [bm]
  11. [bm.inner]
  12. addr = "0.0.0.0:7172"
  13. timeout = "40s"
  14. [identify]
  15. [identify.host]
  16. auth = "http://passport.bilibili.co"
  17. secret = "http://open.bilibili.co"
  18. [identify.httpClient]
  19. key = "0c4b8fe3ff35a4b6"
  20. secret = "b370880d1aca7d3a289b9b9a7f4d6812"
  21. dial = "30ms"
  22. timeout = "100ms"
  23. keepAlive = "60s"
  24. [identify.httpClient.breaker]
  25. window = "10s"
  26. sleep = "100ms"
  27. bucket = 10
  28. ratio = 0.5
  29. request = 100
  30. [identify.httpClient.url]
  31. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  32. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  33. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  34. [httpClient]
  35. key = "0c4b8fe3ff35a4b6"
  36. secret = "b370880d1aca7d3a289b9b9a7f4d6812"
  37. dial = "500ms"
  38. timeout = "1s"
  39. keepAlive = "60s"
  40. [httpClient.breaker]
  41. window = "3s"
  42. sleep = "100ms"
  43. bucket = 10
  44. ratio = 0.5
  45. request = 100