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

Improve the zone addition process #150

Merged
merged 1 commit into from
Jun 22, 2020
Merged

Improve the zone addition process #150

merged 1 commit into from
Jun 22, 2020

Conversation

nitisht
Copy link
Contributor

@nitisht nitisht commented Jun 18, 2020

Currently the operator deletes existing statefulset and creates a
fresh new statefulset, during zone addition. This is not ideal
because this requires a downtime of MinIO cluster.

This PR attempts to improve this process by using the update
statefulset API to add new pods and then deletes only the pods
that were part of existing statefulset. As the pods are deleted
Kubernetes spawns new pods. This means at any point, more than
quorum number of MinIO pods are available. This allows a better,
seamless zone addition flow.

Also improve the minioinstance status update flow and cleanup
KES flow in controller.

Currently the operator deletes existing statefulset and creates a
fresh new statefulset, during zone addition. This is not ideal
because this requires a downtime of MinIO cluster.

This PR attempts to improve this process by using the update
statefulset API to add new pods and then deletes only the pods
that were part of existing statefulset. As the pods are deleted
Kubernetes spawns new pods. This means at any point, more than
quorum number of MinIO pods are available. This allows a better,
seamless zone addition flow.

Also improve the minioinstance status update flow and cleanup
KES flow in controller.
@nitisht nitisht marked this pull request as ready for review June 19, 2020 11:45
@nitisht
Copy link
Contributor Author

nitisht commented Jun 19, 2020

Ready for review, PTAL

@harshavardhana harshavardhana merged commit 4810731 into minio:master Jun 22, 2020
@nitisht nitisht deleted the seamless-scale branch June 23, 2020 02:34
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.

3 participants