From 6bb6a1bae635f5bbc4a9f08666e69254ab441980 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 8 Nov 2020 18:22:26 -0800 Subject: [PATCH] for the quorum --- controllers/controller_master.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/controller_master.go b/controllers/controller_master.go index 1fa2b1e..d93a650 100644 --- a/controllers/controller_master.go +++ b/controllers/controller_master.go @@ -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 }