-
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
calibrate: refactor metrics error (#44451) #45167
calibrate: refactor metrics error (#44451) #45167
Conversation
Signed-off-by: ti-chi-bot <[email protected]>
This reverts commit 3736109. Signed-off-by: Cabinfever_B <[email protected]>
Signed-off-by: Cabinfever_B <[email protected]>
and cherry-pick #43248 |
@nolouch PTAL |
@@ -195,6 +196,11 @@ func (e *calibrateResourceExec) Next(ctx context.Context, req *chunk.Chunk) erro | |||
return e.staticCalibrate(ctx, req, exec) | |||
} | |||
|
|||
var ( | |||
errLowUsage = errors.Errorf("The workload in selected time window is too low, with which TiDB is unable to reach a capacity estimation; please select another time window with higher workload, or calibrate resource by hardware instead") |
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.
errLowUsage = errors.Errorf("The workload in selected time window is too low, with which TiDB is unable to reach a capacity estimation; please select another time window with higher workload, or calibrate resource by hardware instead") | |
errLowUsage = errors.Errorf("Unable to estimate capacity due to low workload in the selected time window. Please choose another time window with higher workload or calibrate hardware resources instead.") |
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.
This is a cherry-pick, it's not better to modify it.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: glorv, nolouch The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This is an automated cherry-pick of #44451
What problem does this PR solve?
Issue Number: ref #43212 close #45166
Problem Summary:
What is changed and how it works?
We attribute the case where metrics are empty and the case where there are too few metrics points available to the situation that the workload in selected time window is too low.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.