test.toml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. [midMapping]
  2. "1234"=1
  3. [mysql]
  4. addr = "172.22.34.101:3306"
  5. dsn = "test_3306:UJPZaGKjpb2ylFx3HNhmLuwOYft4MCAi@tcp(172.22.34.101:3306)/bilibili_reply?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8mb4,utf8"
  6. active = 20
  7. idle = 2
  8. idleTimeout ="4h"
  9. queryTimeout = "500ms"
  10. execTimeout = "500ms"
  11. tranTimeout = "500ms"
  12. [mysql.breaker]
  13. window = "3s"
  14. sleep = "100ms"
  15. bucket = 10
  16. ratio = 0.5
  17. request = 100
  18. [log]
  19. stdout=true
  20. [redis]
  21. name = "reply-feed-service"
  22. proto = "tcp"
  23. addr = "172.18.33.60:6889"
  24. idle = 10
  25. active = 10
  26. dialTimeout = "1s"
  27. readTimeout = "1s"
  28. writeTimeout = "1s"
  29. idleTimeout = "10s"
  30. expire = "1m"
  31. [redisExpire]
  32. redisReplyZSetExpire = "12h"
  33. [memcache]
  34. name = "reply-feed-service"
  35. proto = "tcp"
  36. addr = "172.18.33.61:11213"
  37. active = 50
  38. idle = 10
  39. dialTimeout = "1s"
  40. readTimeout = "1s"
  41. writeTimeout = "1s"
  42. idleTimeout = "10s"
  43. expire = "24h"
  44. [databus]
  45. [databus.event]
  46. key = "170e302355453683"
  47. secret = "3d0e8db7bed0503949e545a469789279"
  48. group = "ReplyFeed-MainCommunity-P"
  49. topic = "ReplyFeed-T"
  50. action ="pub"
  51. name = "reply-feed/event"
  52. proto = "tcp"
  53. addr = "172.18.33.50:6205"
  54. idle = 2
  55. active = 5
  56. dialTimeout = "1s"
  57. readTimeout = "1s"
  58. writeTimeout = "1s"
  59. idleTimeout = "10s"
  60. expire = "1h"