discovery-example.toml 1.2 KB

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