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

Online image change: adding drain logic #144

Merged
merged 9 commits into from
Jan 21, 2022

Conversation

spilchen
Copy link
Collaborator

This adds drain logic so that we wait for active connections to disappear before taking down a subcluster. I added finer granular messaging for imageChangeStatus so that we will have a clear idea if it is waiting for the drain of a particular subcluster.

This change involves sorting the output from sc_finder. This was necessary to match up the status message with order that we will process the subclusters.

Also including a fix that waits for the transient pod to be in a ready state. There was a small timing window where we started to route client traffic to the transient before it was ready. The ready probe is run every 10 seconds, so there was a window where vertica was up but k8s didn't yet know about it.

A new e2e test was added to make sure draining works for the primary and secondary subclusters.

@spilchen spilchen self-assigned this Jan 21, 2022
Copy link
Collaborator

@roypaulin roypaulin left a comment

Choose a reason for hiding this comment

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

looks good

@spilchen spilchen merged commit 6f6c3a2 into vertica:online-upgrade Jan 21, 2022
@spilchen spilchen deleted the online-upgrade-drain-logic branch January 21, 2022 21:12
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.

2 participants