Commit 8492f75 1 parent 490e17c commit 8492f75 Copy full SHA for 8492f75
File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,11 @@ const (
14
14
flagFullScanDiffTick = "full-scan-tick"
15
15
flagAdvancingByCache = "advancing-by-cache"
16
16
flagTryAdvanceThreshold = "try-advance-threshold"
17
+ flagCheckPointLagLimit = "check-point-lag-limit"
17
18
18
19
DefaultConsistencyCheckTick = 5
19
20
DefaultTryAdvanceThreshold = 4 * time .Minute
20
- DefaultCheckPointLagLimit = 0
21
+ DefaultCheckPointLagLimit = 48 * time . Hour
21
22
DefaultBackOffTime = 5 * time .Second
22
23
DefaultTickInterval = 12 * time .Second
23
24
DefaultFullScanTick = 4
@@ -46,6 +47,8 @@ func DefineFlagsForCheckpointAdvancerConfig(f *pflag.FlagSet) {
46
47
"From how long we trigger the tick (advancing the checkpoint)." )
47
48
f .Duration (flagTryAdvanceThreshold , DefaultTryAdvanceThreshold ,
48
49
"If the checkpoint lag is greater than how long, we would try to poll TiKV for checkpoints." )
50
+ f .Duration (flagCheckPointLagLimit , DefaultCheckPointLagLimit ,
51
+ "The maximum lag could be tolerated for the checkpoint lag." )
49
52
}
50
53
51
54
func Default () Config {
@@ -71,6 +74,10 @@ func (conf *Config) GetFromFlags(f *pflag.FlagSet) error {
71
74
if err != nil {
72
75
return err
73
76
}
77
+ conf .CheckPointLagLimit , err = f .GetDuration (flagCheckPointLagLimit )
78
+ if err != nil {
79
+ return err
80
+ }
74
81
return nil
75
82
}
76
83
Original file line number Diff line number Diff line change 82
82
StreamStatus = "log status"
83
83
StreamTruncate = "log truncate"
84
84
StreamMetadata = "log metadata"
85
- StreamCtl = "log ctl "
85
+ StreamCtl = "log advancer "
86
86
87
87
skipSummaryCommandList = map [string ]struct {}{
88
88
StreamStatus : {},
You can’t perform that action at this time.
0 commit comments