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

feat: introduce pool unused limit #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SimonRichardson
Copy link
Member

When acquiring a socket from the pool, it will also attempt to check if there are any previously used sockets (unused sockets) and reuse them for the connection. If there is a burst of socket acquisitions, then the sockets will be placed back in the unused pool. This creates a high watermark that never goes back down, at least not without restarting the application. The existing pool limit could be used to prevent the excess sockets, though it requires the application to handle load shedding via the

When acquiring a socket from the pool, it will also attempt to check
if there are any previously used sockets (unused sockets) and reuse
them for the connection. If there is a burst of socket acquisitions,
then the sockets will be placed back in the unused pool. This creates
a high watermark that never goes back down, at least not without
restarting the application. The existing pool limit could be used
to prevent the excess sockets, though it requires the application to
handle load shedding via the
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.

1 participant