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

Add two new APIs to split the upgrade process #3

Merged
merged 1 commit into from
Jul 15, 2022

Conversation

vadmeste
Copy link
Member

PrepareAndCheckBinary() downloads the binary to a location different
to the final destination, it also applies the patch and does the
checksum if configured.

CommitBinary() will move the staging binary to the final location.

This is useful when you want to upgrade many machines at the same time
but you want to load the new binary only when the download is successful
in all of those machines. In that case, CommitBinary() will less likely
to fail.

Apply() will keep its current behavior and will call
PrepareAndCheckBinary() and CommitBinary()

PrepareAndCheckBinary() downloads the binary to a location different
to the final destination, it also applies the patch and does the
checksum if configured.

CommitBinary() will move the staging binary to the final location.

This is useful when you want to upgrade many machines at the same time
but you want to load the new binary only when the download is successful
in all of those machines. In that case, CommitBinary() will less likely
to fail.

Apply() will keep its current behavior and will call
PrepareAndCheckBinary() and CommitBinary()
@harshavardhana harshavardhana merged commit 3474e18 into minio:master Jul 15, 2022
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.

None yet

2 participants