forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kv: enforce minimum Raft snapshot rate limit
Related to cockroachdb#75728. This commit enforces a minimum Raft snapshot rate limit of 1mb/s. We've seen recent problems (cockroachdb#75728) related to mis-configured cluster settings, so it's best to protect ourselves from this kind of misconfiguration. ``` [email protected]:26257/movr> set cluster setting kv.snapshot_rebalance.max_rate = '8'; ERROR: invalid value for kv.snapshot_rebalance.max_rate: snapshot rate cannot be set to a value below 1.0 MiB: 8 B [email protected]:26257/movr> set cluster setting kv.snapshot_rebalance.max_rate = '8Kib'; ERROR: invalid value for kv.snapshot_rebalance.max_rate: snapshot rate cannot be set to a value below 1.0 MiB: 8.0 KiB [email protected]:26257/movr> set cluster setting kv.snapshot_rebalance.max_rate = '8Mib'; SET CLUSTER SETTING ```
- Loading branch information
1 parent
960b460
commit 33e697f
Showing
2 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters