test.toml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. [log]
  2. dir = "/data/log/bbq"
  3. [bm]
  4. addr = "0.0.0.0:8803"
  5. timeout = "1s"
  6. [mysql]
  7. #addr = "127.0.0.1:3306"
  8. #dsn = "root:123456@tcp(127.0.0.1:3306)/bbq?allowNativePasswords=true&timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  9. #readDSN = ["root:123456@tcp(127.0.0.2:3306)/bbq?allowNativePasswords=true&timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  10. addr = "172.16.38.91:3306"
  11. dsn = "root:123456@tcp(172.16.38.91:3306)/bbq?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  12. readDSN = ["root:123456@tcp(172.16.38.91:3306)/bbq?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  13. active = 20
  14. idle = 10
  15. idleTimeout ="4h"
  16. queryTimeout = "100ms"
  17. execTimeout = "100ms"
  18. tranTimeout = "200ms"
  19. [redis]
  20. name = "search-service"
  21. proto = "tcp"
  22. addr = ""
  23. idle = 10
  24. active = 10
  25. dialTimeout = "1s"
  26. readTimeout = "1s"
  27. writeTimeout = "1s"
  28. idleTimeout = "10s"
  29. expire = "1m"
  30. [es]
  31. [es.bbq]
  32. addr = ["http://172.16.38.91:9200"]
  33. timeout = "1s"
  34. [es.cms]
  35. addr = ["http://172.16.38.91:9200"]
  36. timeout = "1s"