seq-server-test.toml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/seq-server.pid"
  5. dir = "./"
  6. perf = "127.0.0.1:7110"
  7. family = "seq-server"
  8. tick = "2s"
  9. seqSvrs = ["0.0.0.0:7111"]
  10. [log]
  11. dir = "/data/log/seq-server/"
  12. [log.agent]
  13. family = "seq-server"
  14. taskID = "000161"
  15. proto = "unixgram"
  16. addr = "/var/run/lancer/collector.sock"
  17. chan = 10240
  18. [tracer]
  19. family = "seq-server"
  20. proto = "unixgram"
  21. addr = "/var/run/dapper-collect/dapper-collect.sock"
  22. [identify]
  23. whiteAccessKey = "a2a1eb0ac97d6ba08b85aa0151528f34"
  24. whiteMid = 23675773
  25. [identify.app]
  26. key = "7c7ac0db1aa05587"
  27. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  28. [identify.host]
  29. auth = "http://passport.bilibili.co"
  30. secret = "http://open.bilibili.co"
  31. [identify.httpClient]
  32. key = "7c7ac0db1aa05587"
  33. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  34. dial = "30ms"
  35. timeout = "100ms"
  36. keepAlive = "60s"
  37. [identify.httpClient.breaker]
  38. window = "10s"
  39. sleep = "100ms"
  40. bucket = 10
  41. ratio = 0.5
  42. request = 100
  43. [identify.httpClient.url]
  44. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  45. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  46. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  47. [multiHTTP]
  48. [multiHTTP.inner]
  49. addrs = ["0.0.0.0:7112"]
  50. [db]
  51. [db.number]
  52. name = "172.16.33.205:3308"
  53. dsn = "test:test@tcp(172.16.33.205:3308)/sequence?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  54. active = 50
  55. idle = 10
  56. idleTimeout ="4h"
  57. queryTimeout = "100ms"
  58. execTimeout = "100ms"
  59. tranTimeout = "200ms"
  60. [db.number.breaker]
  61. window = "3s"
  62. sleep = "100ms"
  63. bucket = 10
  64. ratio = 0.5
  65. request = 100
  66. [rpcServer2]
  67. discoverOff = false
  68. [[rpcServer2.servers]]
  69. proto = "tcp"
  70. addr = "0.0.0.0:7111"
  71. weight = 10
  72. [rpcServer2.zookeeper]
  73. root = "/microservice/seq-server/"
  74. addrs = ["172.18.33.172:2181"]
  75. timeout = "30s"