Skip to content

Commit

Permalink
CORE-19399 Update the membership registration state topic to be compa…
Browse files Browse the repository at this point in the history
…cted (#1457)

The membership registration state topic for the state and event message pattern usage is the only state topic used in this pattern which is not compacted. This PR makes this topic compacted.
The impact of this not being compacted was that when a new consumer came online and all states were read into memory, every state ever written is read rather than just the latest state. This resulted in rebalances taking longer than necessary.
  • Loading branch information
charlieR3 authored Jan 29, 2024
1 parent f09cdce commit f8993b8
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ topics:
producers:
- membership
config:
cleanup.policy: compact
segment.ms: 600000
delete.retention.ms: 300000
min.compaction.lag.ms: 60000
max.compaction.lag.ms: 604800000
min.cleanable.dirty.ratio: 0.5
MembershipRegistrationDlqTopic:
name: membership.registration.dlq
consumers:
Expand Down

0 comments on commit f8993b8

Please sign in to comment.