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

Determine connection drain status async #1284

Closed
wants to merge 2 commits into from

Conversation

ecordell
Copy link
Contributor

Note: haven't seen this survive node drains as expected, not ready for review yet. See #1283

This starts a worker that periodically (or on any connection error) asks Cockroach if any of its nodes are draining. If draining nodes are found, a shared draining flag is set, and only then do we check if connections are draining on acquire.

The goal is to remove the roundtrip from the common case, while still being able to make use of it when nodes are draining.

@ecordell
Copy link
Contributor Author

ecordell commented May 6, 2023

Closing in favor of #1294

@ecordell ecordell closed this May 6, 2023
@github-actions github-actions bot locked and limited conversation to collaborators May 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/CLI Affects the command line area/datastore Affects the storage system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant