Skip to content
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

storage: Add support for TargetBytes for resolve intent + range cmd #2

Closed

Conversation

KaiSun314
Copy link
Owner

Informs: cockroachdb#77228

Intent resolution batches are sequenced on raft and each batch can consist of 100-200 intents. If an intent key or even value in some cases are large, it is possible that resolving all intents in the batch would result in a raft command size exceeding the max raft command size kv.raft.command.max_size.

To address this, we add support for TargetBytes in resolve intent and resolve intent range commands, allowing us to stop resolving intents in the batch as soon as we exceed the TargetBytes max bytes limit.

Adding support for byte size pagination for intent resolver and RequestBatcher will be added in a separate PR.

Release note (ops change): Added support for a byte limit on resolve intent and resolve intent range raft commands to prevent such commands from exceeding the max raft command size.

Intent resolution batches are sequenced on raft and each batch can
consist of 100-200 intents. If an intent key or even value in some cases
are large, it is possible that resolving all intents in the batch would
result in a raft command size exceeding the max raft command size
kv.raft.command.max_size.

To address this, we add support for TargetBytes in resolve intent and
resolve intent range commands, allowing us to stop resolving intents in
the batch as soon as we exceed the TargetBytes max bytes limit.

Adding support for byte size pagination for intent resolver and
RequestBatcher will be added in a seperate PR.

Release note (ops change): Added support for a byte limit on resolve
intent and resolve intent range raft commands to prevent such commands
from exceeding the max raft command size.
@KaiSun314 KaiSun314 force-pushed the intent-resolution-max-timeout branch from e0a6955 to e98ffcf Compare November 21, 2022 16:32
@KaiSun314 KaiSun314 closed this Nov 21, 2022
@KaiSun314 KaiSun314 deleted the mvcc-byte-size-pagination branch November 21, 2022 16:36
@KaiSun314 KaiSun314 restored the mvcc-byte-size-pagination branch November 21, 2022 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant