passport-game-data-job.toml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # This is a TOML document. Boom.
  2. [compare]
  3. # NOTE:
  4. # startTime the mtime for compareproc to check from
  5. # endTime the mtime for compareproc to check to
  6. # stepDuration the duration step of compareproc to increase mtime,
  7. # need to be greater than zero,
  8. # the default value is 15m.
  9. # loopDuration the duration between two adjacent loops of compareproc,
  10. # need to be greater than or equal to zero,
  11. # the default value is 3s.
  12. # batchSize the batch size of selecting aso accounts from local aso_account table,
  13. # the default value is 1000.
  14. # batchMissRetryCount batch miss retry count of retrive aso accounts from local aso_account table,
  15. # the default value is 3.
  16. # debug if show debug messages,
  17. # if switch this to on, will log additional compareproc info,
  18. # such as the start time and end time of every loop.
  19. [compare.cloud2Local]
  20. on = false
  21. offsetFilePath = "/data/passport-game-data-job.c2l.offset"
  22. useOldOffset = true
  23. end = true
  24. startTime = "2017-11-15 22:24:45"
  25. endTime = "2018-01-25 12:00:00"
  26. delayDuration="15m"
  27. stepDuration = "10m"
  28. loopDuration = "1s"
  29. batchSize = 1001
  30. batchMissRetryCount = 4
  31. fix = true
  32. [compare.Local2Cloud]
  33. on = true
  34. offsetFilePath = "/data/passport-game-data-job.l2c.offset"
  35. useOldOffset = false
  36. end = true
  37. startTime = "2018-02-06 11:36:09"
  38. endTime = "2018-02-06 12:00:00"
  39. delayDuration="10m"
  40. stepDuration = "10m"
  41. loopDuration = "1s"
  42. batchSize = 1001
  43. batchMissRetryCount = 4
  44. fix = true
  45. [db]
  46. [db.local]
  47. addr = "172.16.33.205:3306"
  48. dsn = "aso:hA0DAnENNFz78kYB@tcp(172.16.33.205:3306)/aso?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  49. active = 5
  50. idle = 2
  51. queryTimeout = "1s"
  52. execTimeout = "2s"
  53. tranTimeout = "2s"
  54. [db.local.breaker]
  55. window = "3s"
  56. sleep = "100ms"
  57. bucket = 10
  58. ratio = 0.5
  59. request = 100
  60. [db.cloud]
  61. addr = "172.16.33.205:3306"
  62. dsn = "account:wx2U1MwXRyWEuURw@tcp(172.16.33.205:3306)/member_app1?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  63. active = 5
  64. idle = 2
  65. queryTimeout = "1s"
  66. execTimeout = "2s"
  67. tranTimeout = "2s"
  68. [db.cloud.breaker]
  69. window = "3s"
  70. sleep = "100ms"
  71. bucket = 10
  72. ratio = 0.5
  73. request = 100