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

Tweak consumer replica scaling #4404

Merged
merged 3 commits into from Aug 18, 2023
Merged

Tweak consumer replica scaling #4404

merged 3 commits into from Aug 18, 2023

Conversation

neilalexander
Copy link
Member

@neilalexander neilalexander commented Aug 17, 2023

This should hopefully catch some consumer scaling situations more reliably, including cases where the consumer filter subjects no longer match those of the stream after being scaled down to R1 or after a cluster restart. I've also added a test to test whether filtered consumers will scale properly even when the stream subject orphans them.

Signed-off-by: Neil Twigg neil@nats.io

…ubjects

Signed-off-by: Neil Twigg <neil@nats.io>
Signed-off-by: Neil Twigg <neil@nats.io>
@neilalexander neilalexander marked this pull request as ready for review August 17, 2023 16:51
@neilalexander neilalexander requested a review from a team as a code owner August 17, 2023 16:51
server/consumer.go Show resolved Hide resolved
server/consumer.go Outdated Show resolved Hide resolved
Signed-off-by: Neil Twigg <neil@nats.io>
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@neilalexander neilalexander merged commit ff688ab into main Aug 18, 2023
2 checks passed
@neilalexander neilalexander deleted the neil/consumerscaling branch August 18, 2023 08:36
@neilalexander neilalexander self-assigned this Aug 22, 2023
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.

None yet

2 participants