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

Add resolver.MinConnections #58

Merged
merged 3 commits into from
Feb 28, 2024
Merged

Add resolver.MinConnections #58

merged 3 commits into from
Feb 28, 2024

Conversation

jhump
Copy link
Member

@jhump jhump commented Feb 26, 2024

This should help improve load balancing when using TCP load balancer, where DNS will report a single IP and each connection made to that IP is pinned to a single backend instance.

resolver/minaddr.go Outdated Show resolved Hide resolved
resolver/minaddr.go Outdated Show resolved Hide resolved
resolver/minaddr.go Outdated Show resolved Hide resolved
resolver/minaddr.go Outdated Show resolved Hide resolved
@jhump
Copy link
Member Author

jhump commented Feb 28, 2024

This is one part of a solution for #59.

resolver/minaddr.go Outdated Show resolved Hide resolved
resolver/minaddr.go Outdated Show resolved Hide resolved
@jhump jhump changed the title Add resolver.MinAddresses Add resolver.MinConnections Feb 28, 2024
@jhump jhump merged commit 1bbe543 into main Feb 28, 2024
7 checks passed
@jhump jhump deleted the jh/min-addrs branch February 28, 2024 17:19
jhump added a commit that referenced this pull request Mar 8, 2024
Along with #58, this should be the other half of the solution to resolve
#59.

This allows the leaf level transports to be periodically re-created.
That way, if by chance a single pool ends up in a state of limited
diversity (too many transports with persistent connections to the same
backend), re-creating the transport will allow it a chance to contact a
different backend, and thus be continually changing the mix of target
backends.
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