test.toml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. [mysql]
  2. addr = "172.22.34.101:3312"
  3. #dsn = "livetestuat:livetestuat20180711@tcp(172.22.34.101:3312)/live-ugift?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  4. dsn = "live:oWni@ElNs0P0C(dphdj*F1y4@tcp(172.16.38.117:3312)/live-ugift?timeout=400ms&readTimeout=400ms&writeTimeout=400ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  5. active = 20
  6. idle = 10
  7. idleTimeout ="4h"
  8. queryTimeout = "800ms"
  9. execTimeout = "800ms"
  10. tranTimeout = "800ms"
  11. [redis]
  12. name = "gift-job"
  13. proto = "tcp"
  14. addr = "127.0.0.1:6379"
  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 = "gift-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"
  33. [databus]
  34. [databus.AddGift]
  35. key = "ec4c0820d525d67b"
  36. secret = "e20f8f664bf10722efeb6aac0cc16011"
  37. group = "LiveAddGift-LiveLive-S"
  38. topic = "LiveAddGift-T"
  39. action = "sub"
  40. name = "gift-job/addFreeGift"
  41. proto = "tcp"
  42. addr = "172.18.33.50:6205"
  43. idle = 10
  44. active = 10
  45. dialTimeout = "10s"
  46. readTimeout = "33s"
  47. writeTimeout = "10s"
  48. idleTimeout = "10s"
  49. [consumer]
  50. [consumer.AddGift]
  51. num = 100
  52. [infoc]
  53. [infoc.bagLog]
  54. taskID = "000736"
  55. proto = "tcp"
  56. addr = "172.18.33.124:15140"
  57. chanSize = 10240
  58. [infoc.giftAction]
  59. taskID = "000579"
  60. proto = "tcp"
  61. addr = "172.18.33.124:15140"
  62. chanSize = 10240
  63. [log]
  64. stdout = true