live-wallet-test.toml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # This is a TOML document. Boom
  2. version = "1.0.0"
  3. user = "root"
  4. pid = "/tmp/live-wallet-job.pid"
  5. dir = "./"
  6. family = "/live-wallet"
  7. perf = "0.0.0.0:20202"
  8. address = ""
  9. env = "dev"
  10. [log]
  11. dir = "/data/log/live-wallet-job"
  12. [db]
  13. [db.wallet]
  14. addr = "172.16.33.69:3306"
  15. dsn = "live:oWni@ElNs0P0C(dphdj*F1y4@tcp(172.16.33.69:3306)/live_wallet?timeout=5s&readTimeout=30s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  16. active = 5
  17. idle = 5
  18. queryTimeout = "1s"
  19. execTimeout = "1s"
  20. tranTimeout = "2s"
  21. [db.wallet.breaker]
  22. window = "3s"
  23. sleep = "100ms"
  24. bucket = 10
  25. ratio = 0.5
  26. request = 100
  27. [memcache]
  28. walletExpire = "3s"
  29. [memcache.wallet]
  30. name = "live-wallet-service/wallet"
  31. proto = "tcp"
  32. addr = "172.16.33.251:11211"
  33. idle = 5
  34. active = 10
  35. dialTimeout = "1s"
  36. readTimeout = "1s"
  37. writeTimeout = "1s"
  38. idleTimeout = "80s"
  39. [userSub]
  40. key = "ec4c0820d525d67b"
  41. secret = "2bdf3bd4ecab041b5d5640a1da4f7f81"
  42. group = "LiveUserBinlog-LiveLive-S"
  43. topic = "LiveUserBinlog-T"
  44. action = "sub"
  45. offset = "new"
  46. name = "liveuser-wallet/user-sub"
  47. proto = "tcp"
  48. addr = "172.16.33.154:6205"
  49. idle = 100
  50. active = 100
  51. dialTimeout = "1s"
  52. readTimeout = "60s"
  53. writeTimeout = "1s"
  54. idleTimeout = "10s"