test.toml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. [mysql]
  2. addr = "172.22.34.101:3312"
  3. dsn = "livetestuat:livetestuat20180711@tcp(172.22.34.101:3312)/live_resource?timeout=2000ms&readTimeout=2000ms&writeTimeout=2000ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  4. readDSN = ["livetestuat:livetestuat20180711@tcp(172.22.34.101:3312)/live_resource?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4","livetestuat:livetestuat20180711@tcp(172.22.34.101:3312)/live_resource?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  5. active = 20
  6. idle = 10
  7. idleTimeout ="4h"
  8. queryTimeout = "1s"
  9. execTimeout = "1s"
  10. tranTimeout = "1s"
  11. [db]
  12. [db.resource]
  13. dsn = "livetestuat:livetestuat20180711@tcp(172.22.34.101:3312)/live_resource?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  14. active = 5
  15. idle = 1
  16. idleTimeout = "4h"
  17. # 从库
  18. [db.resourceReader]
  19. dsn = "livetestuat:livetestuat20180711@tcp(172.22.34.101:3312)/live_resource?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  20. active = 5
  21. idle = 1
  22. idleTimeout = "4h"
  23. [httpClient]
  24. Key = "aaa"
  25. Secret = "test"
  26. Dial = "1s"
  27. Timeout = "500ms"
  28. KeepAlive = "5s"
  29. [Breaker]
  30. [URL]
  31. [Host]
  32. [log]
  33. stdout = true