Skip to content

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.

@jhump jhump requested review from a user and akshayjshah February 26, 2024 22:38
@jhump
Copy link
Member Author

jhump commented Feb 28, 2024

This is one part of a solution for #59.

@jhump jhump changed the title Add resolver.MinAddresses Add resolver.MinConnections Feb 28, 2024
@jhump jhump merged commit 1bbe543 into main Feb 28, 2024
@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