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
sql: increase minimal max_range_size to 64MiB #96725
Conversation
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 was quick! Mostly looks good, left some minor comments.
Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @nvanbenschoten and @shralex)
-- commits
line 2 at r1:
This isn't touching any kv packages -- it's better prefixed with sql
.
Separately, let's reword the title to use imperative form as per our commit guidelines in https://cockroachlabs.atlassian.net/wiki/spaces/CRDB/pages/73072807/Git+Commit+Messages#GitCommitMessages-Committitle. So something s/increasing/increase/g
.
-- commits
line 7 at r1:
This deserves a release note.
pkg/config/zonepb/zone_test.go
line 62 at r1 (raw file):
RangeMaxBytes: proto.Int64(60 << 20), }, "RangeMaxBytes 62914560 less than minimum allowed",
Instead of replacing this test case, should we just add another one?
b8eaae2
to
81e6d69
Compare
81e6d69
to
9b206f7
Compare
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.
Thanks!
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @arulajmani and @nvanbenschoten)
Previously, arulajmani (Arul Ajmani) wrote…
This isn't touching any kv packages -- it's better prefixed with
sql
.Separately, let's reword the title to use imperative form as per our commit guidelines in https://cockroachlabs.atlassian.net/wiki/spaces/CRDB/pages/73072807/Git+Commit+Messages#GitCommitMessages-Committitle. So something
s/increasing/increase/g
.
Done.
Previously, arulajmani (Arul Ajmani) wrote…
This deserves a release note.
Done.
pkg/config/zonepb/zone_test.go
line 62 at r1 (raw file):
Previously, arulajmani (Arul Ajmani) wrote…
Instead of replacing this test case, should we just add another one?
Done.
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.
once the commit message is amended.
Reviewed 4 of 4 files at r2.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @nvanbenschoten and @shralex)
Previously, shralex wrote…
Done.
Thanks! I think you only made these changes to the Github PR comment block, but not the commit message itself. Could we amend the commit message as well?
Previously, shralex wrote…
Done.
Same comment as above.
9b206f7
to
b7f7066
Compare
c8cba19
to
938d746
Compare
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.
backupccl changes LGTM!
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.
The change here , but I'm moderately concerned that this is going to break scripts of customers who have been running since before the range size was increased to 512 MiB. Do you think it would be worthwhile changing MinRangeMaxBytes
to pull from an env var to give those customers (if they exist) some path to upgrade?
Reviewed 1 of 5 files at r1, 4 of 4 files at r2, 12 of 12 files at r3, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (and 1 stale) (waiting on @msbutler and @shralex)
pkg/kv/kvserver/client_replica_backpressure_test.go
line 49 at r3 (raw file):
// that it takes a while to load. const ( rowSize = 1 << 20 // 16 KiB
1 MiB
pkg/kv/kvserver/client_replica_backpressure_test.go
line 50 at r3 (raw file):
const ( rowSize = 1 << 20 // 16 KiB dataSize = 512 << 20 // 512 KiB
512 MiB
5b1053b
to
bd68f6a
Compare
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.
Reviewed 5 of 5 files at r5, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (and 1 stale) (waiting on @msbutler and @shralex)
8a3da9c
to
6abd7dd
Compare
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.
Signing off on due to the schema code-owners. This is a KV thing at this point.
One minor observation is that we'll have a more general framework for bounding this sort of thing via #96692 for individual tenants. That doesn't conflict with this.
6abd7dd
to
6479349
Compare
We've seen that small range sizes can be detrimental to various components. This PR makes it so users can't lower max_range_size below 64MiB (half of the default min_range_size), instead of 64KiB previously. Release Note: Small ranges have been known to cause problems in various CRDB subsystems. This PR prevents setting max_range_size below COCKROACH_MIN_RANGE_MAX_BYTES, an environment variable which defaults to 64MiB (half of the default minimum range size). Epic: https://cockroachlabs.atlassian.net/browse/CRDB-24182 Fixes: cockroachdb#96549
6479349
to
a37e053
Compare
bors r+ |
Build succeeded: |
Do we want this in 23.1? |
@knz would probably be useful to prevent misconfigurations. But its very late in the release for .0, so perhaps we can consider a backport later ? wdyt ? |
Yes .1 could be fine |
blathers backport 23.1 |
Encountered an error creating backports. Some common things that can go wrong:
You might need to create your backport manually using the backport tool. Backport to branch 23.1 failed. See errors above. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
…race Fixing an omission in cockroachdb#96725 this test sends snapshots and takes many minutes under race. This PR skips it. Epic: none Release note: None
99579: kvserver: skip TestBackpressureNotAppliedWhenReducingRangeSize under … r=shralex a=shralex …race Fixing an omission in #96725. This test sends snapshots and takes many minutes under race. This PR skips it. Epic: none Release note: None Co-authored-by: shralex <shralex@gmail.com>
Jepsen attempts to set custom range sizes using values not allowed under the new validation added in cockroachdb#96725. We disable that validation by setting the `COCKROACH_MIN_RANGE_MAX_BYTES` environment variable when invoking Jepsen. Epic: none Release note: None
Jepsen attempts to set custom range sizes using values not allowed under the new validation added in [1]. We disable that validation by setting the COCKROACH_MIN_RANGE_MAX_BYTES environment variable when startting cockroachdb. [1] cockroachdb/cockroach#96725
We've seen that small range sizes can be detrimental to various components. This PR makes it so users can't lower max_range_size below 64MiB (half of the default min_range_size), instead of 64KiB previously.
Release note: Small ranges have been known to cause problems in various CRDB subsystems. This PR prevents setting max_range_size below COCKROACH_MIN_RANGE_MAX_BYTES, an environment variable which defaults to 64MiB (half of the default minimum range size).
Epic: https://cockroachlabs.atlassian.net/browse/CRDB-24182
Fixes: #96549