passport-user-job.toml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. [xlog]
  2. dir = "/data/log/passport-user"
  3. [incSync]
  4. switch = true
  5. [fullSync]
  6. asoCountryCodeSwitch = false
  7. [fullSync.asoAccount]
  8. switch = true
  9. chanNum = 2
  10. chanSize = 1024
  11. start = 0
  12. end = 100
  13. count = 10
  14. [fullSync.asoAccountInfo]
  15. switch = false
  16. chanNum = 2
  17. chanSize = 1024
  18. start = 0
  19. end = 100000
  20. count = 10000
  21. [fullSync.asoAccountReg]
  22. switch = false
  23. chanNum = 2
  24. chanSize = 1024
  25. start = 0
  26. end = 100000
  27. count = 10000
  28. [fullSync.asoAccountSns]
  29. switch = false
  30. chanNum = 2
  31. chanSize = 1024
  32. start = 0
  33. end = 100000
  34. count = 10000
  35. [fullSync.asoTelBindLog]
  36. switch = false
  37. chanNum = 2
  38. chanSize = 1024
  39. start = 0
  40. end = 100000
  41. count = 10000
  42. [scheduler]
  43. switch = false
  44. telDuplicateCron = "*/5 * * * * ?"
  45. emailDuplicateCron = "*/5 * * * * ?"
  46. [bm]
  47. addr = "0.0.0.0:8000"
  48. timeout = "1s"
  49. [db]
  50. [db.originDB]
  51. addr = "172.16.33.205:3306"
  52. dsn = "aso:hA0DAnENNFz78kYB@tcp(172.16.33.205:3306)/aso?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  53. active = 5
  54. idle = 2
  55. queryTimeout = "1s"
  56. execTimeout = "2s"
  57. tranTimeout = "2s"
  58. [db.originDB.breaker]
  59. window = "3s"
  60. sleep = "100ms"
  61. bucket = 10
  62. ratio = 0.5
  63. request = 100
  64. [db.userDB]
  65. addr = "127.0.0.1:3306"
  66. dsn = "root:root@tcp(127.0.0.1:3306)/user?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  67. active = 5
  68. idle = 2
  69. queryTimeout = "1s"
  70. execTimeout = "2s"
  71. tranTimeout = "2s"
  72. [db.userDB.breaker]
  73. window = "3s"
  74. sleep = "100ms"
  75. bucket = 10
  76. ratio = 0.5
  77. request = 100
  78. [db.encryptDB]
  79. addr = "127.0.0.1:3306"
  80. dsn = "root:root@tcp(127.0.0.1:3306)/user?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  81. active = 5
  82. idle = 2
  83. queryTimeout = "1s"
  84. execTimeout = "2s"
  85. tranTimeout = "2s"
  86. [db.encryptDB.breaker]
  87. window = "3s"
  88. sleep = "100ms"
  89. bucket = 10
  90. ratio = 0.5
  91. request = 100
  92. [databusUtil]
  93. size = 200
  94. num = 32
  95. ticker = "1s"
  96. chan = 1024
  97. [databus]
  98. [databus.asoBinLogSub]
  99. key = "4ba46ba31f9a44ef"
  100. secret = "99985eb4451cfb1b899ca0fbe3c4bdc8"
  101. group = "PassportUserBinlog-MainAccount-S"
  102. topic = "PassportUserBinlog-T"
  103. action = "sub"
  104. offset = "old"
  105. buffer = 2048
  106. name = "passport-user/databus"
  107. proto = "tcp"
  108. addr = "172.16.38.154:6205"
  109. idle = 1
  110. active = 1
  111. dialTimeout = "1s"
  112. readTimeout = "60s"
  113. writeTimeout = "1s"
  114. idleTimeout = "10s"
  115. [memcache]
  116. name = "passport-user-service"
  117. proto = "tcp"
  118. addr = "172.22.33.137:11219"
  119. idle = 1000
  120. active = 1000
  121. dialTimeout = "10s"
  122. readTimeout = "10s"
  123. writeTimeout = "10s"
  124. idleTimeout = "30s"