test.toml 855 B

123456789101112131415161718192021222324252627282930313233343536
  1. [log]
  2. stdout = true
  3. # dir = "./log/bbq"
  4. v = 5
  5. [grpc]
  6. addr = "0.0.0.0:9004"
  7. timeout = "1s"
  8. [bm]
  9. addr = "0.0.0.0:8804"
  10. timeout = "2s"
  11. [mysql]
  12. addr = "172.16.38.91:3306"
  13. dsn = "root:123456@tcp(172.16.38.91:3306)/bbq?allowNativePasswords=true&timeout=800ms&readTimeout=1200ms&writeTimeout=800ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  14. readDSN = ["root:123456@tcp(172.16.38.91:3306)/bbq?allowNativePasswords=true&timeout=800ms&readTimeout=1200ms&writeTimeout=800ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  15. active = 20
  16. idle = 10
  17. idleTimeout ="4h"
  18. queryTimeout = "800ms"
  19. execTimeout = "800ms"
  20. tranTimeout = "1000ms"
  21. [redis]
  22. name = "bbq-web"
  23. proto = "tcp"
  24. addr = "172.16.38.91:6379"
  25. idle = 10
  26. active = 10
  27. dialTimeout = "1s"
  28. readTimeout = "1s"
  29. writeTimeout = "1s"
  30. idleTimeout = "10s"
  31. expire = "1m"