passport-auth-service.toml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # This is a TOML document. Boom.
  2. [rpcServer2]
  3. [[rpcServer2.servers]]
  4. proto = "tcp"
  5. addr = "0.0.0.0:7579"
  6. weight = 10
  7. [rpcServer2.zookeeper]
  8. root = "/microservice/passport-auth-service/"
  9. addrs = ["172.18.33.172:2181"]
  10. timeout = "1s"
  11. [mysql]
  12. #addr = "172.16.33.205:3309"
  13. #dsn = "auth:Ftqx1hwV3WoGX7Ms9udTAzmbkgR5ZHyl@tcp(172.16.33.205:3309)/passport_auth?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  14. addr = "127.0.0.1:3306"
  15. dsn = "root:root@tcp(127.0.0.1:3306)/passport-auth?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  16. active = 5
  17. idle = 2
  18. IdleTimeout ="4h"
  19. queryTimeout = "100ms"
  20. execTimeout = "100ms"
  21. tranTimeout = "200ms"
  22. [mysql.breaker]
  23. window = "3s"
  24. sleep = "100ms"
  25. bucket = 10
  26. ratio = 0.5
  27. request = 100
  28. [Memcache]
  29. name = "passport-auth-service"
  30. proto = "tcp"
  31. #addr = "172.16.33.54:11211"
  32. addr = "127.0.0.1:11211"
  33. idle = 1000
  34. active = 1000
  35. dialTimeout = "10s"
  36. readTimeout = "10s"
  37. writeTimeout = "10s"
  38. idleTimeout = "30s"
  39. [dc]
  40. num = 1
  41. desc = "data center 1"
  42. [switch]
  43. supportOld = true