for the quorum

This commit is contained in:
Chris Lu 2020-11-08 18:22:26 -08:00
parent cb86e4a770
commit 6bb6a1bae6

View File

@ -70,7 +70,7 @@ func (r *SeaweedReconciler) waitForMasterStatefulSet(seaweedCR *seaweedv1.Seawee
}
}
if runningCounter < len(podList.Items) {
if runningCounter < len(podList.Items)/2+1 {
log.Info("some masters are not ready", "missing", len(podList.Items)-runningCounter)
return true, ctrl.Result{RequeueAfter: 3 * time.Second}, nil
}