for the quorum
This commit is contained in:
parent
cb86e4a770
commit
6bb6a1bae6
|
@ -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)
|
log.Info("some masters are not ready", "missing", len(podList.Items)-runningCounter)
|
||||||
return true, ctrl.Result{RequeueAfter: 3 * time.Second}, nil
|
return true, ctrl.Result{RequeueAfter: 3 * time.Second}, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue