From 30a452459e5cf29c46ce7d29b97c7e7305d2b114 Mon Sep 17 00:00:00 2001 From: acekingke Date: Wed, 8 May 2024 15:21:10 +0800 Subject: [PATCH] *: change timeout values --- mysqlcluster/container/backup.go | 8 ++++---- mysqlcluster/container/container.go | 4 ++-- mysqlcluster/container/metrics.go | 10 +++++----- mysqlcluster/container/metrics_test.go | 8 ++++---- mysqlcluster/container/mysql.go | 8 ++++---- mysqlcluster/container/mysql_test.go | 8 ++++---- mysqlcluster/container/xenon.go | 8 ++++---- mysqlcluster/container/xenon_test.go | 8 ++++---- 8 files changed, 31 insertions(+), 31 deletions(-) diff --git a/mysqlcluster/container/backup.go b/mysqlcluster/container/backup.go index 8b8e0519..6ff42d38 100644 --- a/mysqlcluster/container/backup.go +++ b/mysqlcluster/container/backup.go @@ -106,8 +106,8 @@ func (c *backupSidecar) getLivenessProbe() *corev1.Probe { }, }, InitialDelaySeconds: 15, - TimeoutSeconds: 5, - PeriodSeconds: 10, + TimeoutSeconds: 15, + PeriodSeconds: 15, SuccessThreshold: 1, FailureThreshold: 3, } @@ -122,8 +122,8 @@ func (c *backupSidecar) getReadinessProbe() *corev1.Probe { }, }, InitialDelaySeconds: 5, - TimeoutSeconds: 5, - PeriodSeconds: 10, + TimeoutSeconds: 15, + PeriodSeconds: 15, SuccessThreshold: 1, FailureThreshold: 3, } diff --git a/mysqlcluster/container/container.go b/mysqlcluster/container/container.go index 96781cc3..b86235a8 100644 --- a/mysqlcluster/container/container.go +++ b/mysqlcluster/container/container.go @@ -50,8 +50,8 @@ func getStartupProbe(name string) *corev1.Probe { }, }, InitialDelaySeconds: 10, - TimeoutSeconds: 5, - PeriodSeconds: 10, + TimeoutSeconds: 15, + PeriodSeconds: 15, SuccessThreshold: 1, FailureThreshold: 5, } diff --git a/mysqlcluster/container/metrics.go b/mysqlcluster/container/metrics.go index fb58496f..ae8bc367 100644 --- a/mysqlcluster/container/metrics.go +++ b/mysqlcluster/container/metrics.go @@ -84,8 +84,8 @@ func (c *metrics) getLivenessProbe() *corev1.Probe { }, }, InitialDelaySeconds: 15, - TimeoutSeconds: 5, - PeriodSeconds: 10, + TimeoutSeconds: 15, + PeriodSeconds: 15, SuccessThreshold: 1, FailureThreshold: 3, } @@ -100,9 +100,9 @@ func (c *metrics) getReadinessProbe() *corev1.Probe { Port: intstr.FromInt(utils.MetricsPort), }, }, - InitialDelaySeconds: 5, - TimeoutSeconds: 1, - PeriodSeconds: 10, + InitialDelaySeconds: 15, + TimeoutSeconds: 15, + PeriodSeconds: 15, SuccessThreshold: 1, FailureThreshold: 3, } diff --git a/mysqlcluster/container/metrics_test.go b/mysqlcluster/container/metrics_test.go index 96cfe2ed..b47b25dd 100644 --- a/mysqlcluster/container/metrics_test.go +++ b/mysqlcluster/container/metrics_test.go @@ -117,8 +117,8 @@ func TestGetMetricsLivenessProbe(t *testing.T) { }, }, InitialDelaySeconds: 15, - TimeoutSeconds: 5, - PeriodSeconds: 10, + TimeoutSeconds: 15, + PeriodSeconds: 15, SuccessThreshold: 1, FailureThreshold: 3, } @@ -137,8 +137,8 @@ func TestGetMetricsReadinessProbe(t *testing.T) { }, }, InitialDelaySeconds: 5, - TimeoutSeconds: 1, - PeriodSeconds: 10, + TimeoutSeconds: 15, + PeriodSeconds: 15, SuccessThreshold: 1, FailureThreshold: 3, } diff --git a/mysqlcluster/container/mysql.go b/mysqlcluster/container/mysql.go index e7a967f4..b2c1f649 100644 --- a/mysqlcluster/container/mysql.go +++ b/mysqlcluster/container/mysql.go @@ -127,8 +127,8 @@ func (c *mysql) getLivenessProbe() *corev1.Probe { }, }, InitialDelaySeconds: 30, - TimeoutSeconds: 5, - PeriodSeconds: 10, + TimeoutSeconds: 15, + PeriodSeconds: 15, SuccessThreshold: 1, FailureThreshold: 3, } @@ -147,8 +147,8 @@ func (c *mysql) getReadinessProbe() *corev1.Probe { }, }, InitialDelaySeconds: 10, - TimeoutSeconds: 5, - PeriodSeconds: 10, + TimeoutSeconds: 15, + PeriodSeconds: 15, SuccessThreshold: 1, FailureThreshold: 3, } diff --git a/mysqlcluster/container/mysql_test.go b/mysqlcluster/container/mysql_test.go index ec7c9b1e..b04d0e8c 100644 --- a/mysqlcluster/container/mysql_test.go +++ b/mysqlcluster/container/mysql_test.go @@ -136,8 +136,8 @@ func TestGetMysqlLivenessProbe(t *testing.T) { }, }, InitialDelaySeconds: 30, - TimeoutSeconds: 5, - PeriodSeconds: 10, + TimeoutSeconds: 15, + PeriodSeconds: 15, SuccessThreshold: 1, FailureThreshold: 3, } @@ -152,8 +152,8 @@ func TestGetMysqlReadinessProbe(t *testing.T) { }, }, InitialDelaySeconds: 10, - TimeoutSeconds: 5, - PeriodSeconds: 10, + TimeoutSeconds: 15, + PeriodSeconds: 15, SuccessThreshold: 1, FailureThreshold: 3, } diff --git a/mysqlcluster/container/xenon.go b/mysqlcluster/container/xenon.go index 1331bf55..f73a0268 100644 --- a/mysqlcluster/container/xenon.go +++ b/mysqlcluster/container/xenon.go @@ -134,8 +134,8 @@ func (c *xenon) getLivenessProbe() *corev1.Probe { }, }, InitialDelaySeconds: 30, - TimeoutSeconds: 5, - PeriodSeconds: 10, + TimeoutSeconds: 15, + PeriodSeconds: 15, SuccessThreshold: 1, FailureThreshold: 3, } @@ -150,8 +150,8 @@ func (c *xenon) getReadinessProbe() *corev1.Probe { }, }, InitialDelaySeconds: 10, - TimeoutSeconds: 5, - PeriodSeconds: 10, + TimeoutSeconds: 15, + PeriodSeconds: 15, SuccessThreshold: 1, FailureThreshold: 3, } diff --git a/mysqlcluster/container/xenon_test.go b/mysqlcluster/container/xenon_test.go index 92ac7b89..c0237fa6 100644 --- a/mysqlcluster/container/xenon_test.go +++ b/mysqlcluster/container/xenon_test.go @@ -148,8 +148,8 @@ func TestGetXenonLivenessProbe(t *testing.T) { }, }, InitialDelaySeconds: 30, - TimeoutSeconds: 5, - PeriodSeconds: 10, + TimeoutSeconds: 15, + PeriodSeconds: 15, SuccessThreshold: 1, FailureThreshold: 3, } @@ -164,8 +164,8 @@ func TestGetXenonReadinessProbe(t *testing.T) { }, }, InitialDelaySeconds: 10, - TimeoutSeconds: 5, - PeriodSeconds: 10, + TimeoutSeconds: 15, + PeriodSeconds: 15, SuccessThreshold: 1, FailureThreshold: 3, }