convey-test.toml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. # This is a TOML document. Boom.
  2. version = "2.1.0"
  3. user = "nobody"
  4. pid = "/tmp/location-service.pid"
  5. dir = "./"
  6. perf = "0.0.0.0:6290"
  7. checkFile = "/data/www/location.html"
  8. family = "location-service"
  9. filePath = "../cmd/source"
  10. fileName = "SinaIP.txt"
  11. filterZone = ["共享地址","局域网","本机地址"]
  12. [tracer]
  13. family = "location-service"
  14. proto = "unixgram"
  15. addr = "172.16.33.46:5140"
  16. [log]
  17. dir = "/data/log/location-service/"
  18. [db]
  19. [db.zlimit]
  20. name = "172.16.33.205:3308"
  21. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_oversea?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  22. active = 5
  23. idle = 5
  24. idleTimeout ="4h"
  25. queryTimeout = "1s"
  26. execTimeout = "1s"
  27. tranTimeout = "1s"
  28. [db.zlimit.breaker]
  29. window ="3s"
  30. sleep ="100ms"
  31. bucket = 10
  32. ratio = 0.5
  33. request = 100
  34. [redis]
  35. [redis.zlimit]
  36. name = "location-service"
  37. proto = "tcp"
  38. #addr = "172.16.33.54:6379"
  39. addr = "172.18.33.61:6812"
  40. idle = 10
  41. active = 10
  42. dialTimeout = "1s"
  43. readTimeout = "1s"
  44. writeTimeout = "1s"
  45. idleTimeout = "10s"
  46. expire = "10s"
  47. [identify]
  48. whiteAccessKey = ""
  49. whiteMid = 0
  50. [identify.app]
  51. key = "53e2fa226f5ad348"
  52. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  53. [identify.host]
  54. auth = "http://passport.bilibili.com"
  55. secret = "http://open.bilibili.com"
  56. [identify.httpClient]
  57. key = "53e2fa226f5ad348"
  58. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  59. dial = "30ms"
  60. timeout = "100ms"
  61. keepAlive = "60s"
  62. [identify.httpClient.breaker]
  63. window = "10s"
  64. sleep = "100ms"
  65. bucket = 10
  66. ratio = 0.5
  67. request = 100
  68. [identify.httpClient.url]
  69. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  70. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  71. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  72. [multiHTTP]
  73. [multiHTTP.inner]
  74. addrs = ["0.0.0.0:6291"]
  75. [multiHTTP.local]
  76. addrs = ["0.0.0.0:6292"]
  77. [rpcServer2]
  78. [[rpcServer2.servers]]
  79. proto = "tcp"
  80. addr = "0.0.0.0:6293"
  81. weight = 10
  82. [rpcServer2.zookeeper]
  83. root = "/microservice/location-service/"
  84. addrs = ["172.18.33.172:2181"]
  85. timeout = "30s"
  86. [accountRPC]
  87. pullInterval = "10s"
  88. group ="groupapp"
  89. [accountRPC.client]
  90. token="123456"
  91. proto = "tcp"
  92. addr = "172.16.33.56:6079"
  93. timeout = "10s"
  94. timer = 1000
  95. [accountRPC.client.breaker]
  96. window ="10s"
  97. sleep ="10ms"
  98. bucket = 10
  99. ratio = 0.5
  100. request = 100
  101. [accountRPC.zookeeper]
  102. root = "/microservice/account-service/"
  103. addrs = ["172.18.33.172:2181"]
  104. timeout = "30s"