test.toml 865 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. version = "3.0.0"
  2. user = "nobody"
  3. pid = "/tmp/vipinfo-service.pid"
  4. dir = "./"
  5. perf = "127.0.0.1:7910"
  6. [bm]
  7. addr = "0.0.0.0:7911"
  8. maxListen = 1000
  9. timeout = "1s"
  10. [mysql]
  11. addr = "172.16.33.205"
  12. dsn = "zhaozhihao:MN9havOfnzY3kd6L78IVucRxgywe0p2P@tcp(172.16.33.205:3308)/bilibili_vip?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  13. active = 5
  14. idle = 5
  15. IdleTimeout ="4h"
  16. QueryTimeout = "5s"
  17. ExecTimeout = "5s"
  18. TranTimeout = "5s"
  19. [mysql.breaker]
  20. window = "3s"
  21. sleep = "100ms"
  22. bucket = 10
  23. ratio = 0.5
  24. request = 100
  25. [memcache]
  26. name = "vip-service"
  27. proto = "tcp"
  28. addr = "172.18.33.60:11234"
  29. idle = 5
  30. active = 10
  31. dialTimeout = "1s"
  32. readTimeout = "1s"
  33. writeTimeout = "1s"
  34. idleTimeout = "10s"
  35. expire = "24h"
  36. [wardenServer]
  37. addr = "0.0.0.0:6077"
  38. timeout = "1s"