Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

tracker: disable background statistic job #2065

Merged
merged 2 commits into from
Aug 31, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pkg/schema/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ func NewTracker(ctx context.Context, task string, sessionCfg map[string]string,
// bypass wait time of https://github.com/pingcap/tidb/pull/20550
toSet.TiKVClient.AsyncCommit.SafeWindow = 0
toSet.TiKVClient.AsyncCommit.AllowedClockDrift = 0
// set a negative lease will disable the background statistic jobs.
Ehco1996 marked this conversation as resolved.
Show resolved Hide resolved
toSet.Performance.StatsLease = "-1s"
tidbConfig.StoreGlobalConfig(toSet)

if len(sessionCfg) == 0 {
Expand Down