test.toml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. [log]
  2. stdout=true
  3. [mysql]
  4. addr = "172.22.34.101:3312"
  5. dsn = "livetestuat:livetestuat20180711@tcp(172.22.34.101:3312)/live-sign?timeout=2s&readTimeout=2s&writeTimeout=2s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  6. readDSN = ["root:root@tcp(127.0.0.1:3306)/live-sign?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4","root:root@tcp(127.0.0.1:3306)/live-sign?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  7. active = 20
  8. idle = 10
  9. idleTimeout ="4h"
  10. queryTimeout = "100ms"
  11. execTimeout = "100ms"
  12. tranTimeout = "200ms"
  13. [Cfg]
  14. ExpireCountFrequency = "0 */1 * * * ?"
  15. SetExpireFrequency = "0 */1 * * * ?"
  16. [orm]
  17. dsn = "livetestuat:livetestuat20180711@tcp(172.22.34.101:3312)/live-sign?timeout=2s&readTimeout=2s&writeTimeout=2s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  18. active = 20
  19. idle = 10
  20. idleTimeout ="4h"
  21. [redis]
  22. name = "xrewardcenter"
  23. proto = "tcp"
  24. addr = "127.0.0.1:6379"
  25. idle = 10
  26. active = 10
  27. dialTimeout = "1s"
  28. readTimeout = "1s"
  29. writeTimeout = "1s"
  30. idleTimeout = "10s"
  31. expire = "1m"
  32. [memcache]
  33. name = "xrewardcenter"
  34. proto = "tcp"
  35. addr = "127.0.0.1:11211"
  36. active = 50
  37. idle = 10
  38. dialTimeout = "1s"
  39. readTimeout = "1s"
  40. writeTimeout = "1s"
  41. idleTimeout = "10s"
  42. expire = "24h"
  43. [liverpc]
  44. [liverpc.room]
  45. Addr = "172.18.33.82:20200"
  46. [liverpc.gift]
  47. Addr = "172.18.33.82:7778"
  48. [httpClient]
  49. key = "e7482d29be4a95b8"
  50. secret = "9e803791cdef756e75faee68e12b7442"
  51. dial = "500ms"
  52. timeout = "1s"
  53. keepAlive = "60s"
  54. timer = 128
  55. [httpClient.breaker]
  56. window = "10s"
  57. sleep = "100ms"
  58. bucket = 10
  59. ratio = 0.5
  60. request = 100