test.toml 807 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. version = "3.0.0"
  2. user = "nobody"
  3. pid = "/tmp/card-service.pid"
  4. dir = "./"
  5. perf = "127.0.0.1:6070"
  6. [bm]
  7. addr = "0.0.0.0:7881"
  8. maxListen = 1000
  9. timeout = "1s"
  10. [RPCClient2]
  11. [mysql]
  12. addr = "127.0.0.1:3306"
  13. dsn = "root:123456@tcp(127.0.0.1:3306)/bilibili_card?timeout=3s&readTimeout=3s&writeTimeout=3s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  14. active = 20
  15. idle = 10
  16. idleTimeout ="4h"
  17. queryTimeout = "1s"
  18. execTimeout = "1s"
  19. tranTimeout = "2s"
  20. [mysql.breaker]
  21. window = "3s"
  22. sleep = "100ms"
  23. bucket = 10
  24. ratio = 0.5
  25. request = 100
  26. [memcache]
  27. name = "card-service"
  28. proto = "tcp"
  29. addr = "172.18.33.60:11234"
  30. idle = 5
  31. active = 10
  32. dialTimeout = "1s"
  33. readTimeout = "1s"
  34. writeTimeout = "1s"
  35. idleTimeout = "10s"
  36. expire = "24h"
  37. [wardenServer]
  38. addr = "0.0.0.0:6077"
  39. timeout = "1s"