test.toml 944 B

1234567891011121314151617181920212223242526272829303132333435
  1. [mysql]
  2. addr = "127.0.0.1:3306"
  3. dsn = "test:test@tcp(127.0.0.1:3306)/test?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  4. readDSN = ["test:test@tcp(127.0.0.2:3306)/test? timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4","test:test@tcp(127.0.0.3:3306)/test?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  5. active = 20
  6. idle = 10
  7. idleTimeout ="4h"
  8. queryTimeout = "100ms"
  9. execTimeout = "100ms"
  10. tranTimeout = "200ms"
  11. [redis]
  12. name = "relation-cache-job"
  13. proto = "tcp"
  14. addr = ""
  15. idle = 10
  16. active = 10
  17. dialTimeout = "1s"
  18. readTimeout = "1s"
  19. writeTimeout = "1s"
  20. idleTimeout = "10s"
  21. expire = "1m"
  22. [memcache]
  23. name = "relation-cache-job"
  24. proto = "tcp"
  25. addr = ""
  26. active = 50
  27. idle = 10
  28. dialTimeout = "1s"
  29. readTimeout = "1s"
  30. writeTimeout = "1s"
  31. idleTimeout = "10s"
  32. expire = "24h"