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

Speed up revive prepass #619

Merged
merged 4 commits into from
Dec 5, 2023
Merged

Speed up revive prepass #619

merged 4 commits into from
Dec 5, 2023

Conversation

spilchen
Copy link
Collaborator

@spilchen spilchen commented Dec 4, 2023

During the revive prepass, the operator will compare the paths in the VerticaDB with the data in communal storage. If there is a discrepancy, the operator will patch the VerticaDB so that the local paths match what is expected. This is done instead of failing the revive.

Once the StatefulSet is updated, it is then updated in the pod. Prior to this change, pods that were on the old revision would be deleted. However, this could be a slow process because it was possible for pods to come back with the old revision, depending on which pods had the newest revision.

To avoid this, the StatefulSet is simply deleted in this change. This is a quicker process.

Closes #568

Matt Spilchen added 3 commits December 4, 2023 14:20
During the revive prepass, the operator will compare the paths in the
VerticaDB with the data in communal storage. If there is a discrepancy,
the operator will patch the VerticaDB so that the local paths match what
is expected. This is done instead of failing the revive.

Once the StatefulSet is updated, it is then updated in the pod. Prior to
this change, pods that were on the old revision would be deleted.
However, this could be a slow process because it was possible for pods
to come back with the old revision, depending on which pods had the
newest revision.

To avoid this, the StatefulSet is simply deleted in this change. This is
a quicker process.
@spilchen spilchen requested a review from roypaulin December 4, 2023 19:42
@spilchen spilchen self-assigned this Dec 4, 2023
@spilchen spilchen merged commit 8768441 into main Dec 5, 2023
26 checks passed
@spilchen spilchen deleted the spilchen/speed-up-revive-prepass branch December 5, 2023 18:05
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.

The DB revive is too long
2 participants