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

Subset connections that can be pinned #75

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

prestonvasquez
Copy link
Contributor

@prestonvasquez prestonvasquez commented Jul 23, 2024

This PR proposes proper subsetting the number of connections that can be pinned to cursors. If $N$ is the max pool size and $n$ is the max cache size, we would want $n < N - 1$ : shimming 1 connection for propagating ErrMaxReserve. That is, if we are at $n$ cursors pinned, then after each round trip check to see if the response has a cursorID. If so, then close the connection and propagate the error: "cursor could not be pinned to connection: maxed out reserve". This ensures that $N-n > 1$ connections are always available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants