config-service-example.toml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # This is a TOML document. Boom.
  2. pollTimeout = "30s"
  3. pathCache = "/tmp/"
  4. [log]
  5. stdout = true
  6. [antispam]
  7. on=true
  8. second=60
  9. n=10
  10. hour=12
  11. m=500
  12. [antispam.redis]
  13. name = "config-service/hosts"
  14. proto = "tcp"
  15. addr = "172.18.33.61:6811"
  16. idle = 100
  17. active = 100
  18. dialTimeout = "1s"
  19. readTimeout = "1s"
  20. writeTimeout = "1s"
  21. idleTimeout = "10s"
  22. expire = "24h"
  23. [ecode]
  24. domain = "172.16.33.248:6401"
  25. [db]
  26. name = "[config]tcp@172.16.33.205:3308"
  27. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_apm?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  28. active = 5
  29. idle = 5
  30. queryTimeout = "500ms"
  31. execTimeout = "500ms"
  32. tranTimeout = "500ms"
  33. [db.breaker]
  34. window = "3s"
  35. sleep = "100ms"
  36. bucket = 10
  37. ratio = 0.5
  38. request = 100
  39. [redis]
  40. name = "config-service/hosts"
  41. proto = "tcp"
  42. addr = "172.18.33.61:6811"
  43. idle = 100
  44. active = 100
  45. dialTimeout = "1s"
  46. readTimeout = "1s"
  47. writeTimeout = "1s"
  48. idleTimeout = "10s"
  49. [orm]
  50. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_config?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  51. active = 5
  52. idle = 5
  53. idleTimeout = "4h"