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

kvserver: add setting to reject overly large transactions #135945

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andrewbaptist
Copy link
Collaborator

Previously we had an ability to reject transactions that had too many intents, however this was tied together with the limit where we condense spans. The limits have too different purposes and should be set independently. The condense size limit
(kv.transaction.max_intents_bytes) is used to protect the memory on the client side by using less precise tracking once it passes a certain size. The new limit (kv.transaction.reject_intents_bytes) is intended to protect the server side by preventing a client from creating a transaction with too many bytes in it. Large transactions are suboptimal for a few reasons.

Epic: none

Release note (ops change): Adds a new configurable parameter kv.transaction.reject_intents_bytes which will prevent client transactions from getting too large.

Previously we had an ability to reject transactions that had too many
intents, however this was tied together with the limit where we condense
spans. The limits have too different purposes and should be set
independently. The condense size limit
(kv.transaction.max_intents_bytes) is used to protect the memory on the
client side by using less precise tracking once it passes a certain
size. The new limit (kv.transaction.reject_intents_bytes) is intended to
protect the server side by preventing a client from creating a
transaction with too many bytes in it. Large transactions are
suboptimal for a few reasons.

Epic: none

Release note (ops change): Adds a new configurable parameter
kv.transaction.reject_intents_bytes which will prevent client
transactions from getting too large.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@arulajmani arulajmani self-requested a review November 22, 2024 01:20
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.

2 participants