identify-job-test.toml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. # This is a TOML document. Boom.
  2. [databus]
  3. [databus.identifySub]
  4. key = "4ba46ba31f9a44ef"
  5. secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
  6. group = "Passport-MainAccount-Identify-S"
  7. topic = "Passport-T"
  8. action = "sub"
  9. offset = "old"
  10. buffer = 2048
  11. name = "identify-job-live/databus"
  12. proto = "tcp"
  13. addr = "172.18.33.50:6205"
  14. idle = 1
  15. active = 1
  16. dialTimeout = "1s"
  17. readTimeout = "60s"
  18. writeTimeout = "1s"
  19. idleTimeout = "10s"
  20. [databus.identifySub.discovery]
  21. domain = "api.bilibili.co"
  22. key = "7634436ea852e3f4"
  23. secret = "test"
  24. [databus.authDataBus]
  25. group = "PassportAuthBinlog-MainAccount-Identify-S"
  26. key = "4ba46ba31f9a44ef"
  27. secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
  28. topic = "PassportAuthBinlog-T"
  29. action = "sub"
  30. offset = "old"
  31. buffer = 2048
  32. name = "passport-auth-job/databus"
  33. proto = "tcp"
  34. addr = "172.18.33.50:6205"
  35. idle = 1
  36. active = 1
  37. dialTimeout = "1s"
  38. readTimeout = "60s"
  39. writeTimeout = "1s"
  40. idleTimeout = "10s"
  41. [databus.authDataBus.discovery]
  42. domain = "api.bilibili.co"
  43. key = "7634436ea852e3f4"
  44. secret = "test"
  45. [databusutil]
  46. size = 100
  47. chan = 1024
  48. num = 2
  49. ticker="1s"
  50. [memcaches]
  51. [memcaches.identify]
  52. prefix = "i_"
  53. name = "test"
  54. proto = "tcp"
  55. addr = "127.0.0.1:11211"
  56. active = 5
  57. idle = 1
  58. dialTimeout = "1s"
  59. readTimeout = "1s"
  60. writeTimeout = "1s"
  61. idleTimeout = "80s"
  62. [authDB]
  63. addr = "127.0.0.1:3306"
  64. dsn = "root:root@tcp(127.0.0.1:3306)/passport_auth?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  65. active = 5
  66. idle = 2
  67. queryTimeout = "1s"
  68. execTimeout = "2s"
  69. tranTimeout = "2s"
  70. [db.auth.breaker]
  71. window = "3s"
  72. sleep = "100ms"
  73. bucket = 10
  74. ratio = 0.5
  75. request = 100
  76. [authMC]
  77. name = "passport-auth"
  78. proto = "tcp"
  79. addr = "172.18.33.61:11246"
  80. active = 50
  81. idle = 10
  82. dialTimeout = "1s"
  83. readTimeout = "1s"
  84. writeTimeout = "1s"
  85. idleTimeout = "10s"
  86. [checkConf]
  87. switch = true
  88. chanNum = 2
  89. chanSize = 10240
  90. ticker = "1s"
  91. count = 10