-
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
config: support temporary storage usage limitation #15700
Conversation
@Yisaer, you already got 250 points from easy level tasks when all pull requests merged. And you will not get score from this PR. |
Thanks for your contribution. If your PR get merged, you will be rewarded 50 points. |
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.
Hi,
we need to control the temporary storage usage of total queries to prevent tidb-server consuming all the disk space.
Codecov Report
@@ Coverage Diff @@
## master #15700 +/- ##
===========================================
Coverage 80.4050% 80.4050%
===========================================
Files 505 505
Lines 135729 135729
===========================================
Hits 109133 109133
Misses 18100 18100
Partials 8496 8496 |
This comment has been minimized.
This comment has been minimized.
/run-all-tests |
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 |
@Yisaer merge failed. |
/run-all-tests |
1 similar comment
/run-all-tests |
/run-integration-copr-test |
/merge |
Your auto merge job has been accepted, waiting for 16130 |
/run-all-tests |
/run-cherry-picker |
cherry pick to release-4.0 in PR #16211 |
What problem does this PR solve?
Issue Number: close #13983
UCP: #13983
Problem Summary:
What is changed and how it works?
How it Works:
Add
TempStorageQuota
(bytes) in config which describe the temporary storage quota for the tidb-server.If the
quota
exceed the capacity of the target directory which defined byTempStoragePath
, the server would exit with the fatal error.And we use a GlobalDiskTracker to track the disk usage for the executor, if the executor exceeds its disk quota, the query would be killed with
Out of Global Storage
.Check List
Tests
Release note
Support temporary storage usage limitation for tidb-server