identify-service-test.toml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # This is a TOML document. Boom.
  2. [Identify]
  3. authHost = "http://passport.bilibili.co"
  4. # sync whith userlog databus
  5. LoginLogConsumerSize = 10
  6. IntranetCIDR = ["172.16.0.0/12", "10.0.0.0/8", "192.168.0.0/16"]
  7. [rpcServer2]
  8. [[rpcServer2.servers]]
  9. proto = "tcp"
  10. addr = "0.0.0.0:7379"
  11. weight = 10
  12. [rpcServer2.zookeeper]
  13. root = "/microservice/identify-service/"
  14. addrs = ["172.18.33.172:2181"]
  15. timeout = "1s"
  16. [bm]
  17. addr = "0.0.0.0:7371"
  18. timeout = "1s"
  19. [HTTPClient]
  20. dial = "50ms"
  21. timeout = "200ms"
  22. keepAlive = "60s"
  23. key = "f265dcfa28272742"
  24. secret = "437facc22dc8698b5544669bcc12348d"
  25. [HTTPClient.breaker]
  26. window ="1s"
  27. sleep ="10ms"
  28. bucket = 10
  29. ratio = 0.5
  30. request = 100
  31. [Memcache]
  32. name = "identify-service"
  33. proto = "tcp"
  34. addr = "172.18.33.61:11234"
  35. idle = 1000
  36. active = 1000
  37. dialTimeout = "10s"
  38. readTimeout = "10s"
  39. writeTimeout = "10s"
  40. idleTimeout = "30s"
  41. settingExpire = "720h"
  42. reportExpire = "720h"
  43. [wardenServer]
  44. addr = "0.0.0.0:6077"
  45. timeout = "1s"
  46. [liveZK]
  47. addrs = ["172.16.33.249:2189"]
  48. timeout = "1s"
  49. [databus.userLog]
  50. key = "2511663d546f1413"
  51. secret = "cde3b480836cc76df3d635470f991caa"
  52. group = "LogUserAction-MainSearch-P"
  53. topic = "LogUserAction-T"
  54. action = "pub"
  55. buffer = 10240
  56. name = "log-user-action/log-sub"
  57. proto = "tcp"
  58. addr = "172.18.33.50:6205"
  59. idle = 10
  60. active = 10
  61. dialTimeout = "1s"
  62. readTimeout = "60s"
  63. writeTimeout = "1s"
  64. idleTimeout = "10s"
  65. [MemcacheLoginLog]
  66. name = "identify-service"
  67. proto = "tcp"
  68. addr = "172.18.33.61:11234"
  69. idle = 1000
  70. active = 1000
  71. dialTimeout = "10s"
  72. readTimeout = "10s"
  73. writeTimeout = "10s"
  74. idleTimeout = "30s"
  75. settingExpire = "720h"
  76. reportExpire = "720h"