test.toml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 = "xanchor-service"
  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 = "xanchor-service"
  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"
  33. [liveDanmuSub]
  34. key = "ec4c0820d525d67b"
  35. secret = "e20f8f664bf10722efeb6aac0cc16011"
  36. group = "LiveXanchor-LiveLive-S"
  37. topic = "LiveDanmuSend-T"
  38. action ="sub"
  39. name = "service/xacnhor"
  40. proto = "tcp"
  41. addr = "172.18.33.50:6205"
  42. idle = 10
  43. active = 100
  44. dialTimeout = "10s"
  45. readTimeout = "40s"
  46. writeTimeout = "10s"
  47. idleTimeout = "60s"
  48. [liveGiftSendSub]
  49. key = "ec4c0820d525d67b"
  50. secret = "e20f8f664bf10722efeb6aac0cc16011"
  51. group = "LiveXanchor-LiveLive-S"
  52. topic = "LiveGiftSend-T"
  53. action ="sub"
  54. name = "service/xacnhor"
  55. proto = "tcp"
  56. addr = "172.18.33.50:6205"
  57. idle = 10
  58. active = 100
  59. dialTimeout = "10s"
  60. readTimeout = "40s"
  61. writeTimeout = "10s"
  62. idleTimeout = "60s"