Skip to content

Add support for recycling "leaf" connections - #60

Merged
jhump merged 2 commits into
mainfrom
jh/recycle-conns
Mar 8, 2024
Merged

jhump merged 2 commits into
mainfrom
jh/recycle-conns

Conversation

@jhump

@jhump jhump commented Feb 28, 2024 •

Copy link
Copy Markdown
Member

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.

@jhump
jhump marked this pull request as ready for review February 28, 2024 20:43
@jhump
jhump requested review from a user and akshayjshah February 28, 2024 20:45
@jhump

jhump commented Feb 28, 2024

Copy link
Copy Markdown
Member Author

cc @DMarby

Comment thread balancer_test.go Resolved

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM.

Comment thread balancer.go Resolved
Comment thread balancer.go Resolved
@jhump
jhump merged commit 7463e81 into main Mar 8, 2024
@jhump
jhump deleted the jh/recycle-conns branch March 8, 2024 14:47
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.

Better support for layer-4 (TCP) proxies

1 participant