Skip to content

Connect to any stream member for consumers when using a load balancer #660

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 3 commits into from
Nov 26, 2024

Conversation

acogoluegnes
Copy link
Contributor

@acogoluegnes acogoluegnes commented Nov 25, 2024

Favor replica nodes, but fall back to any stream member if the picked node is the expected one. This should happen only with a load balancer. This reduces the time to create a consumer, because there will be fewer retry attempts.

@acogoluegnes acogoluegnes added this to the 0.21.0 milestone Nov 25, 2024
@acogoluegnes acogoluegnes force-pushed the allow-all-stream-members branch from 6324eb0 to 9d19298 Compare November 26, 2024 10:21
@acogoluegnes acogoluegnes marked this pull request as ready for review November 26, 2024 10:45
@acogoluegnes acogoluegnes changed the title Consider candidates when picking a node Connect to any stream member for consumers when using a load balancer Nov 26, 2024
@acogoluegnes acogoluegnes merged commit f3e4544 into main Nov 26, 2024
3 checks passed
@acogoluegnes acogoluegnes deleted the allow-all-stream-members branch November 26, 2024 10:52
github-actions bot pushed a commit that referenced this pull request Nov 26, 2024
Consider candidates when picking a node
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant