passport-auth-job.toml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. synclines = 1000
  2. [AuthJobConfig]
  3. asoCleanUrl = "http://passport.bilibili.co/intranet/auth/delCache"
  4. [mysql]
  5. addr = "172.22.34.101:3308"
  6. dsn = "auth:ABQ3ewVrxyZsLpWb0EkJuCvN9M8aidf7@tcp(172.22.34.101:3308)/passport_auth?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  7. readDSN = ["auth_reader:3odEZJ7YlOLpNzt4XVDxHTw9bi08C1M2@tcp(172.22.34.101:3308)/passport_auth?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  8. active = 10
  9. idle = 10
  10. idleTimeout ="4h"
  11. queryTimeout = "100ms"
  12. execTimeout = "100ms"
  13. tranTimeout = "200ms"
  14. [mysql.breaker]
  15. window = "3s"
  16. sleep = "100ms"
  17. bucket = 10
  18. ratio = 0.5
  19. request = 100
  20. [OldMySQL]
  21. addr = "172.22.34.101:3309"
  22. dsn = "aso:WsjbodupJcZlBeWPEiYyK8HOTIcp3n3Z@tcp(172.22.34.101:3309)/aso?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  23. readDSN = ["aso:WsjbodupJcZlBeWPEiYyK8HOTIcp3n3Z@tcp(172.22.34.101:3309)/aso?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  24. active = 10
  25. idle = 10
  26. idleTimeout ="4h"
  27. queryTimeout = "100ms"
  28. execTimeout = "100ms"
  29. tranTimeout = "200ms"
  30. [OldMySQL.breaker]
  31. window = "3s"
  32. sleep = "100ms"
  33. bucket = 10
  34. ratio = 0.5
  35. request = 100
  36. [databus]
  37. key = "4ba46ba31f9a44ef"
  38. secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
  39. group = "Passport-MainAccount-AuthSync-S"
  40. topic = "Passport-T"
  41. action = "sub"
  42. offset = "old"
  43. buffer = 2048
  44. name = "passport-auth-job/databus"
  45. proto = "tcp"
  46. addr = "172.18.33.50:6205"
  47. idle = 1
  48. active = 1
  49. dialTimeout = "1s"
  50. readTimeout = "60s"
  51. writeTimeout = "1s"
  52. idleTimeout = "10s"
  53. [AuthDataBus]
  54. key = "4ba46ba31f9a44ef"
  55. secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
  56. group = "PassportAuthBinlog-MainAccount-S"
  57. topic = "PassportAuthBinlog-T"
  58. action = "sub"
  59. offset = "old"
  60. buffer = 2048
  61. name = "passport-auth-job/databus"
  62. proto = "tcp"
  63. addr = "172.18.33.50:6205"
  64. idle = 1
  65. active = 1
  66. dialTimeout = "1s"
  67. readTimeout = "60s"
  68. writeTimeout = "1s"
  69. idleTimeout = "10s"
  70. # [AuthDataBus.discovery]
  71. # domain = "api.bilibili.co"
  72. # key = "7634436ea852e3f4"
  73. # secret = "test"
  74. [databusUtil]
  75. size = 1
  76. num = 2
  77. ticker = "500ms"
  78. chan = 100
  79. [memcache]
  80. name = "passport-auth-job"
  81. proto = "tcp"
  82. addr = ""
  83. idle = 10
  84. active = 10
  85. dialTimeout = "1s"
  86. readTimeout = "1s"
  87. writeTimeout = "1s"
  88. idleTimeout = "10s"
  89. expire = "24h"
  90. [HttpClientConfig]
  91. key = "7634436ea852e3f4"
  92. secret = "test"
  93. dial = "100ms"
  94. timeout = "350ms"
  95. keepAlive = "60s"
  96. timer = 1024
  97. [HttpClientConfig.breaker]
  98. window = "3s"
  99. sleep = "100ms"
  100. bucket = 10
  101. ratio = 1.0
  102. request = 100