You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.Info("The expected number of replicas doesn't match the number of etcd members in the cluster", "targetReplica", targetReplica, "memberCnt", memberCnt)
149
148
ifint(targetReplica) <memberCnt {
150
-
// a new added learner hasn't started yet
151
-
152
-
// re-generate configuration for the new learner member;
153
-
// increase statefulsets's replica by 1
149
+
// A new member has been added to the etcd cluster
150
+
// but the corresponding Pod hasn't been created yet in the StatefulSet.
151
+
// Increase the StatefulSet replicas by 1 to match the new cluster member.
152
+
newReplicaCount:=targetReplica+1
153
+
logger.Info("Increasing StatefulSet replicas to match the new etcd learner.", "oldReplicaCount", targetReplica, "newReplicaCount", newReplicaCount)
0 commit comments