passport-sns-job.toml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. [db.aso]
  2. addr = "172.16.33.205:3306"
  3. dsn = "aso:hA0DAnENNFz78kYB@tcp(172.16.33.205:3306)/aso?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  4. active = 5
  5. idle = 2
  6. queryTimeout = "1s"
  7. execTimeout = "2s"
  8. tranTimeout = "2s"
  9. [db.aso.breaker]
  10. window = "3s"
  11. sleep = "100ms"
  12. bucket = 10
  13. ratio = 0.5
  14. request = 100
  15. [db.sns]
  16. addr = "127.0.0.1:3306"
  17. dsn = "root:root@tcp(127.0.0.1:3306)/passport_sns?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  18. active = 5
  19. idle = 2
  20. queryTimeout = "1s"
  21. execTimeout = "2s"
  22. tranTimeout = "2s"
  23. [db.sns.breaker]
  24. window = "3s"
  25. sleep = "100ms"
  26. bucket = 10
  27. ratio = 0.5
  28. request = 100
  29. [memcache]
  30. name = "passport-sns-service"
  31. proto = "tcp"
  32. addr = "172.22.33.137:11219"
  33. idle = 10
  34. active = 10
  35. dialTimeout = "1s"
  36. readTimeout = "1s"
  37. writeTimeout = "1s"
  38. idleTimeout = "10s"
  39. expire = "24h"
  40. [databus.snsLogSub]
  41. key = "4ba46ba31f9a44ef"
  42. secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
  43. group = "PassportSnsLog-MainAccount-S"
  44. topic = "PassportSnsLog-T"
  45. action = "sub"
  46. offset = "old"
  47. buffer = 2048
  48. name = "passport-sns/databus"
  49. proto = "tcp"
  50. addr = "172.22.33.174:6205"
  51. idle = 2
  52. active = 10
  53. dialTimeout = "1s"
  54. readTimeout = "60s"
  55. writeTimeout = "1s"
  56. idleTimeout = "10s"
  57. [databus.asoBinLogSub]
  58. key = "4ba46ba31f9a44ef"
  59. secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
  60. group = "PassportUserBinlog-MainAccount-SNS-S"
  61. topic = "PassportUserBinlog-T"
  62. action = "sub"
  63. offset = "old"
  64. buffer = 2048
  65. name = "passport-user/databus"
  66. proto = "tcp"
  67. addr = "172.22.33.174:6205"
  68. idle = 1
  69. active = 1
  70. dialTimeout = "1s"
  71. readTimeout = "60s"
  72. writeTimeout = "1s"
  73. idleTimeout = "10s"
  74. [databusUtil]
  75. size = 100
  76. num = 8
  77. ticker = "1s"
  78. chan = 100
  79. [syncConf]
  80. incSwitch = false
  81. fullSwitch = true
  82. checkSwitch = true
  83. chanNum = 200
  84. chanSize = 10240
  85. checkTicker = "1h"