passport-user-compare-job.toml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. [log]
  2. dir = "/Users/allen/data/log/passport-user-compare"
  3. dataFixSwitch = true
  4. incrDataFixSwitch = true
  5. [fullTask]
  6. switch = true
  7. step = 1000
  8. accountEnd = 400002500
  9. accountInfoEnd = 25053
  10. accountSnsEnd = 25053
  11. cronFullStr = "0 35 17 * * *"
  12. [incTask]
  13. switch = false
  14. startTime = "2018-09-28 16:40:00"
  15. stepDuration = "10m"
  16. cronIncStr = "0 */10 * * * *"
  17. [duplicateTask]
  18. switch = false
  19. duplicateCron = "*/30 * * * * ?"
  20. [weChat]
  21. token = "GYQeuDWBbAsCNeGz"
  22. secret = "ZKpmgINTkianyMbMixyxcPQjMCSHCDrk"
  23. username = "wutao"
  24. [httpClient]
  25. dial = "10s"
  26. timeout = "10s"
  27. keepAlive = "60s"
  28. key = "4699a07e59d7149e"
  29. secret = "test"
  30. [httpClient.breaker]
  31. window = "3s"
  32. sleep = "100ms"
  33. bucket = 10
  34. ratio = 0.5
  35. request = 100
  36. [db.origin]
  37. addr = "172.16.33.205:3306"
  38. dsn = "aso:hA0DAnENNFz78kYB@tcp(172.16.33.205:3306)/aso?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  39. active = 5
  40. idle = 2
  41. queryTimeout = "10s"
  42. execTimeout = "20s"
  43. tranTimeout = "20s"
  44. [db.origin.breaker]
  45. window = "3s"
  46. sleep = "100ms"
  47. bucket = 10
  48. ratio = 0.5
  49. request = 100
  50. [db.user]
  51. addr = "127.0.0.1:3306"
  52. dsn = "root:123456@tcp(127.0.0.1:3306)/test?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  53. active = 5
  54. idle = 2
  55. queryTimeout = "10s"
  56. execTimeout = "20s"
  57. tranTimeout = "20s"
  58. [db.user.breaker]
  59. window = "3s"
  60. sleep = "100ms"
  61. bucket = 10
  62. ratio = 0.5
  63. request = 100
  64. [db.secret]
  65. addr = "127.0.0.1:3306"
  66. dsn = "root:123456@tcp(127.0.0.1:3306)/test?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  67. active = 5
  68. idle = 2
  69. queryTimeout = "10s"
  70. execTimeout = "20s"
  71. tranTimeout = "20s"
  72. [db.secret.breaker]
  73. window = "3s"
  74. sleep = "100ms"
  75. bucket = 10
  76. ratio = 0.5
  77. request = 100