-
Notifications
You must be signed in to change notification settings - Fork 131
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
pump: Add support to stop write at a limit avaliable space #647
Conversation
/run-all-tests |
/run-all-tests |
@@ -30,6 +30,12 @@ pd-urls = "http://127.0.0.1:2379" | |||
# [storage] | |||
# Set to `true` (default) for best reliability, which prevents data loss when there is a power failure. | |||
# sync-log = true | |||
|
|||
# stop write when disk available space less then the configured size | |||
# 42 MB -> 42000000, 42 mib -> 44040192 |
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.
one gib
is too small, use 10% or 10 gib is better
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.
it may be annoying to set such a limit in a test or development env, how about default 0 and set
10 gib if deployed by ansible ?
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.
if so, use 10% is better, right?
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.
update to be 10 gib in ac51fc0
Rest LGTM . |
/run-all-tests |
LGTM |
@suzaku PTAL |
/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
Default set it 10 gib
What problem does this PR solve?
pump: Add support to stop write at a limit avaliable space
What is changed and how it works?
Add a configuration to stop writes at a limit available space size.
Check List
Tests
use
dd
make space less than configured size -> write failed -> delete file make enough space -> write succesCode changes
Side effects
Related changes
tidb-ansible
repository