-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
domain: add a config to control updating stats #10772
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- s/UpdateStats/EnableUpdateStats
- We need more description for:
StatsLease | UpdateStats |
---|---|
0 | 0 |
0 | 1 |
1 | 0 |
1 | 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests tidb-test=release-2.1 tidb-private-test=release-2.1 tikv=release-2.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What problem does this PR solve?
We need to disable the updating of stats while still can load the stats.
What is changed and how it works?
Add a bool config
update-stats
to control the updating stats.Check List
Tests
Change
update-stats
to false, the log still shows ["init stats info time"] ["take time"=2.834524ms] but there is no stats update anymore.Code changes
Side effects
Related changes