-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
ccl/sqlproxyccl: enable a more graceful shutdown #82317
Conversation
f5b24e8
to
22bab19
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
22bab19
to
76d7ae1
Compare
76d7ae1
to
b393baa
Compare
When a drainSignal is received, the sql proxy now waits for all connections to close within a certain time limit (59 minutes) before shutting down. The next drainSignal will be ignored, but the third will forcefully shut down the server by panicking. This is to resolve an issue with Kubernetes where traffic could be lost during upgrades. See CC-5298 for more details. Release notes: None
b393baa
to
628762b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @jeffswenson)
pkg/cli/mt_proxy.go
line 168 at r1 (raw file):
Previously, pjtatlow (PJ Tatlow) wrote…
Yeah good idea, I'll do that now!
Done
Merging because bors r+ |
Build succeeded: |
When a drainSignal is received, the sql proxy now waits for all connections to
close within a certain time limit (59 minutes) before shutting down.
The next drainSignal will be ignored, but the third will forcefully shut down
the server by panicking. This is to resolve an issue with Kubernetes where
traffic could be lost during upgrades. See CC-5298 for more details.
Release notes: None