Skip to content

Commit

Permalink
Merge pull request #1780 from zimnx/mz/reduce-minreadyseconds
Browse files Browse the repository at this point in the history
Change default minReadySeconds to 5 seconds
  • Loading branch information
scylla-operator-bot[bot] authored Feb 29, 2024
2 parents 30e8d2f + 2b5e8f4 commit 8c713c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/controller/scyllacluster/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ func StatefulSetForRack(r scyllav1.RackSpec, c *scyllav1.ScyllaCluster, existing
}

// Assume kube-proxy notices readiness change and reconcile Endpoints within this period
kubeProxyEndpointsSyncPeriodSeconds := 10
kubeProxyEndpointsSyncPeriodSeconds := 5
loadBalancerSyncPeriodSeconds := 60

readinessFailureThreshold := 1
Expand Down
4 changes: 2 additions & 2 deletions pkg/controller/scyllacluster/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ func TestStatefulSetForRack(t *testing.T) {
"scylla/rack": "rack",
},
},
MinReadySeconds: 10,
MinReadySeconds: 5,
Template: corev1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Labels: newBasicStatefulSetLabels(0),
Expand Down Expand Up @@ -984,7 +984,7 @@ func TestStatefulSetForRack(t *testing.T) {
"-O",
"inherit_errexit",
"-c",
"nodetool drain & sleep 20 & wait",
"nodetool drain & sleep 15 & wait",
},
},
},
Expand Down

0 comments on commit 8c713c8

Please sign in to comment.