-
Notifications
You must be signed in to change notification settings - Fork 685
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
reference: add a new config in tidb-server config doc #2287
Conversation
@@ -34,6 +34,14 @@ The TiDB configuration file supports more options than command-line parameters. | |||
+ Default value: `<TMPDIR>/tidb/tmp-storage` | |||
+ It only takes effect when `oom-use-tmp-storage` is `true`. | |||
|
|||
### `temp-storage-quota` | |||
|
|||
+ Specifies the storage quota for the storage in `tmp-storage-path`. |
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.
- Two
storage
s seem redundant. - You miss the
bytes
description.
+ When a single SQL statement uses a temporary disk and the total volume of the temporary disk of the TiDB server exceeds this configuration value, the current SQL operation is cancelled and the `Out of Global Storage Quota!` error is returned. | ||
+ When the value of this configuration is smaller than `0`, the above check and limit do not apply. | ||
+ Default value: `-1` | ||
+ When the remaining available storage in `tmp-storage-path` is lower than the value defined by `temp-storage-quota`, the TiDB server reports an error when it is started and exits. |
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.
To avoid ambiguity in the relationship of predicative verbs.
+ When the remaining available storage in `tmp-storage-path` is lower than the value defined by `temp-storage-quota`, the TiDB server reports an error when it is started and exits. | |
+ When the remaining available storage in `tmp-storage-path` is lower than the value defined by `temp-storage-quota`, the TiDB server reports an error when it is started, and exits. |
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
@ran-huang, @Yisaer, PTAL. |
1 similar comment
@ran-huang, @Yisaer, PTAL. |
/run-all-tests |
cherry pick to release-4.0 in PR #2363 |
What is changed, added or deleted? (Required)
Add a new config
temp-storage-quota
in tidb-server config document.Which TiDB version(s) do your changes apply to? (Required)
If you select two or more versions from above, to trigger the bot to cherry-pick this PR to your desired release version branch(es), you must add corresponding labels such as needs-cherry-pick-4.0, needs-cherry-pick-3.1, needs-cherry-pick-3.0, and needs-cherry-pick-2.1.
What is the related PR or file link(s)?