config/tx: have reasonable defaults for idempotency/tx configurations.#30058
Merged
bharathv merged 1 commit intoredpanda-data:devfrom Apr 6, 2026
Merged
config/tx: have reasonable defaults for idempotency/tx configurations.#30058bharathv merged 1 commit intoredpanda-data:devfrom
bharathv merged 1 commit intoredpanda-data:devfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates Redpanda’s transaction/idempotency-related configuration defaults to avoid effectively-unbounded producer/transaction state growth (and associated memory/snapshot bloat) when users do not explicitly set these limits.
Changes:
- Change
max_concurrent_producer_idsdefault from “unlimited” to100000. - Change
max_transactions_per_coordinatordefault from “unlimited” to10000.
max_concurrent_producer_ids: old: int64_max new: 100k max_transactions_per_coordinator: old: int64_max new: 10k Neither of these changes have correctness implications. Compared to defaults, they evict unused producers more aggressively. The new defaults are also pretty generous and probably cover most usecases. Even if a usage falls outside these defaults, worst that could happen is old producers get evicted to make room for new producers, so the old producer may have to reinit incase of transactions and most clients are already equipped to do that and it is fully transparent to idempotent producers. On the flip side, this avoids accumulation of a ton of producers in snapshots and such. Upgrade considerations: if there is a non default value set, nothing changes (eg: cloud). If there was no value set, the brokers pick up the new default and may do a bunch of evictions if there are many historical producers accumulated (which is rare in most applications).
0231337 to
7330b45
Compare
mmaslankaprv
approved these changes
Apr 3, 2026
Collaborator
|
/backport v26.1.x |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
max_concurrent_producer_ids: old: int64_max new: 100k
max_transactions_per_coordinator: old: int64_max new: 10k
Neither of these changes have correctness implications. Compared to defaults, they evict unused producers more aggressively.
The new defaults are also pretty generous and probably cover most usecases.
Even if a usage falls outside these defaults, worst that could happen is old producers get evicted to make room for new producers, so the old producer may have to reinit incase of transactions and most clients are already equipped to do that and it is fully transparent to idempotent producers.
On the flip side, this avoids accumulation of a ton of producers in snapshots and such.
Upgrade considerations: if there is a non default value set, nothing changes (eg: cloud). If there was no value set, the brokers pick up the new default and may do a bunch of evictions if there are many historical producers accumulated (which is rare in most applications).
Backports Required
Release Notes
Improvements
max_concurrent_producer_idsandmax_transactions_per_coordinatornow default to100,000 and 10,000 respectively (previously unlimited), reducing memory usage from
accumulated producer state; existing explicit overrides are unaffected.