account-service-example.toml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. # This is a TOML document. Boom.
  2. version = "3.0.0"
  3. user = "nobody"
  4. pid = "/tmp/account-service.pid"
  5. dir = "./"
  6. perf = "127.0.0.1:6070"
  7. [host]
  8. passportURI = "http://uat-passport.bilibili.co"
  9. vipURI = "http://uat-vip.bilibili.co"
  10. [wardenServer]
  11. addr = "0.0.0.0:6077"
  12. timeout = "1s"
  13. [liveZK]
  14. addrs = ["172.18.33.131:2181", "172.18.33.168:2181", "172.18.33.169:2181"]
  15. timeout = "1s"
  16. [log]
  17. dir = "/data/log/account-service/"
  18. [log.agent]
  19. taskID = "000069"
  20. proto = "unixgram"
  21. addr = "/var/run/lancer/collector.sock"
  22. chan = 10240
  23. [tracer]
  24. family = "account-service"
  25. proto = "unixgram"
  26. addr = "/var/run/dapper-collect/dapper-collect.sock"
  27. [bm]
  28. [bm.inner]
  29. addr = "0.0.0.0:6071"
  30. timeout = "1s"
  31. [bm.local]
  32. addr = "0.0.0.0:6072"
  33. timeout = "1s"
  34. [rpcServer2]
  35. discoverOff = false
  36. token = "123456"
  37. [[rpcServer2.servers]]
  38. proto = "tcp"
  39. addr = "0.0.0.0:6079"
  40. weight = 10
  41. group = "test"
  42. [rpcServer2.zookeeper]
  43. root = "/microservice/account-service-2/"
  44. addrs = ["172.18.33.172:2181"]
  45. timeout = "1s"
  46. [httpClient]
  47. [httpClient.read]
  48. key = "7c7ac0db1aa05587"
  49. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  50. dial = "1s"
  51. timeout = "1s"
  52. keepAlive = "60s"
  53. timer = 1000
  54. [httpClient.read.breaker]
  55. window = "3s"
  56. sleep = "100ms"
  57. bucket = 10
  58. ratio = 0.5
  59. request = 100
  60. [httpClient.read.url]
  61. "http://api.bilibili.co/x/internal/v3/account/privacy" = {key = "7c7ac0db1aa05587", secret = "9a6d62d93290c5f771ad381e9ca23f26"}
  62. [httpClient.write]
  63. key = "7c7ac0db1aa05587"
  64. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  65. dial = "1s"
  66. timeout = "3s"
  67. keepAlive = "60s"
  68. timer = 1000
  69. [httpClient.write.breaker]
  70. window = "3s"
  71. sleep = "100ms"
  72. bucket = 10
  73. ratio = 0.5
  74. request = 100
  75. [httpClient.privacy]
  76. key = "7c7ac0db1aa05587"
  77. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  78. dial = "1s"
  79. timeout = "3s"
  80. keepAlive = "60s"
  81. timer = 1000
  82. [httpClient.privacy.breaker]
  83. window = "3s"
  84. sleep = "100ms"
  85. bucket = 10
  86. ratio = 0.5
  87. request = 100
  88. [identify]
  89. [identify.host]
  90. auth = "http://passport.bilibili.com"
  91. secret = "http://open.bilibili.com"
  92. [identify.httpClient]
  93. key = "7c7ac0db1aa05587"
  94. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  95. dial = "30ms"
  96. timeout = "100ms"
  97. keepAlive = "60s"
  98. [identify.httpClient.breaker]
  99. window = "10s"
  100. sleep = "100ms"
  101. bucket = 10
  102. ratio = 0.5
  103. request = 100
  104. [identify.httpClient.url]
  105. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  106. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  107. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  108. [memcache]
  109. accountExpire = "3s"
  110. [memcache.account]
  111. name = "account-service/account"
  112. proto = "tcp"
  113. addr = "172.16.33.54:11211"
  114. active = 10
  115. idle = 5
  116. dialTimeout = "1s"
  117. readTimeout = "1s"
  118. writeTimeout = "1s"
  119. idleTimeout = "80s"
  120. [relationRPC]
  121. timeout = "1s"
  122. [memberRPC]
  123. timeout = "1s"
  124. [coinRPC]
  125. timeout = "1s"
  126. [suitRPC]
  127. timeout = "1s"
  128. [appkeyFilter]
  129. whiteKeys = ["all"]