-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
metrics,planner: add 'pseudo estimation' reason in the metrics #21911
Conversation
The reason could be 'outdate' or 'nodata'
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
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
/merge |
/run-all-tests |
@tiancaiamao merge failed. |
/merge |
/run-all-tests |
@tiancaiamao merge failed. |
/merge |
/run-all-tests |
@tiancaiamao merge failed. |
/merge |
/run-all-tests |
@tiancaiamao merge failed. |
/run-all-tests |
/merge |
/run-all-tests |
The reason could be 'outdate' or 'nodata'
What problem does this PR solve?
As the title says: add 'pseudo estimation' reason in the metrics.
Problem Summary:
From an ONCALL issue, I find the query plan changes periodically and sometimes uses pseudo statistics and the bad plan makes the whole cluster overload.
The statistics data is healthy and not seems to be outdated. So why TiDB use pseudo estimation?
What is changed and how it works?
What's Changed:
Add a 'type' field to the metrics, the value can be 'outdate' or 'nodata'
How it Works:
Modify metrics
Related changes
Check List
Tests
Release note