passport-sns-service.toml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. [log]
  2. stdout = true
  3. [mysql]
  4. addr = "127.0.0.1:3306"
  5. dsn = "root:root@tcp(127.0.0.1:3306)/passport_sns?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  6. active = 5
  7. idle = 2
  8. queryTimeout = "1s"
  9. execTimeout = "2s"
  10. tranTimeout = "2s"
  11. [db.user.breaker]
  12. window = "3s"
  13. sleep = "100ms"
  14. bucket = 10
  15. ratio = 0.5
  16. request = 100
  17. [databus.snsLogPub]
  18. key = "4ba46ba31f9a44ef"
  19. secret = "99985eb4451cfb1b899ca0fbe3c4bdc8"
  20. group = "PassportSnslog-MainAccount-P"
  21. topic = "PassportSnslog-T"
  22. action = "pub"
  23. offset = "old"
  24. buffer = 2048
  25. name = "passport-sns/databus"
  26. proto = "tcp"
  27. addr = "172.16.38.154:6205"
  28. idle = 1
  29. active = 1
  30. dialTimeout = "1s"
  31. readTimeout = "60s"
  32. writeTimeout = "1s"
  33. idleTimeout = "10s"
  34. [memcache]
  35. name = "passport-sns-service"
  36. proto = "tcp"
  37. addr = "172.22.33.137:11219"
  38. idle = 10
  39. active = 10
  40. dialTimeout = "1s"
  41. readTimeout = "1s"
  42. writeTimeout = "1s"
  43. idleTimeout = "10s"
  44. expire = "24h"