Skip to content

Commit

Permalink
adjust config
Browse files Browse the repository at this point in the history
Signed-off-by: HunDunDM <[email protected]>
  • Loading branch information
HunDunDM committed Aug 7, 2021
1 parent f1c0e7f commit d69523c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ const (
defaultUseRegionStorage = true
defaultTraceRegionFlow = true
defaultFlowRoundByDigit = 3 // KB
maxTraceFlowRoundByDigit = 6 // MB
maxTraceFlowRoundByDigit = 5 // 0.1 MB
defaultMaxResetTSGap = 24 * time.Hour
defaultKeyType = "table"

Expand Down
2 changes: 1 addition & 1 deletion server/config/persist_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ func (o *PersistOptions) IsUseJointConsensus() bool {
}

// IsTraceRegionFlow returns if the region flow is tracing.
// If the accuracy cannot reach MB, it is considered not.
// If the accuracy cannot reach 0.1 MB, it is considered not.
func (o *PersistOptions) IsTraceRegionFlow() bool {
return o.GetPDServerConfig().FlowRoundByDigit <= maxTraceFlowRoundByDigit
}
Expand Down

0 comments on commit d69523c

Please sign in to comment.