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

Prevent additional restart after upgrade #99

Merged
merged 1 commit into from
Nov 25, 2021

Conversation

spilchen
Copy link
Collaborator

If a cluster runs with k-safety of 1, we use the UpdateStrategy of RollingUpdate in the StatefulSet. This should apply to everything but changes to the image because we have our own method of changing the image. Otherwise, what can happen is that after the image change is successful (i.e. the cluster is brought online), the StatefulSet controller will go through the RollingUpdate process: it will kill the last pod in the state, wait for it become ready (i.e. Vertica running), then kill the next pod and repeat. This ends up causing another restart to occur after the upgrade.

The change in this PR is to change the UpdateStategy to OnDelete when changing the image. The UpdateStrategy will go changed back to RollingUpdate, but sometime after the image change.

There are a lot of changes in this PR. I bulk of those changes was renaming the e2e test upgrade-vertica to upgrade-vertica-ks-0. A new e2e test upgrade-vertica-ks-1 was added to test upgrade for k-safety 1 clusters.

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 1e61b10 into vertica:main Nov 25, 2021
@spilchen spilchen deleted the upgrade-issue branch November 25, 2021 19: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