Skip to content

Commit

Permalink
*: change timeout values
Browse files Browse the repository at this point in the history
  • Loading branch information
acekingke committed May 8, 2024
1 parent 88990ac commit 3a45bf1
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 32 deletions.
8 changes: 4 additions & 4 deletions mysqlcluster/container/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ func (c *backupSidecar) getLivenessProbe() *corev1.Probe {
},
},
InitialDelaySeconds: 15,
TimeoutSeconds: 5,
PeriodSeconds: 10,
TimeoutSeconds: 15,
PeriodSeconds: 15,
SuccessThreshold: 1,
FailureThreshold: 3,
}
Expand All @@ -122,8 +122,8 @@ func (c *backupSidecar) getReadinessProbe() *corev1.Probe {
},
},
InitialDelaySeconds: 5,
TimeoutSeconds: 5,
PeriodSeconds: 10,
TimeoutSeconds: 15,
PeriodSeconds: 15,
SuccessThreshold: 1,
FailureThreshold: 3,
}
Expand Down
4 changes: 2 additions & 2 deletions mysqlcluster/container/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ func getStartupProbe(name string) *corev1.Probe {
},
},
InitialDelaySeconds: 10,
TimeoutSeconds: 5,
PeriodSeconds: 10,
TimeoutSeconds: 15,
PeriodSeconds: 15,
SuccessThreshold: 1,
FailureThreshold: 5,
}
Expand Down
10 changes: 5 additions & 5 deletions mysqlcluster/container/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ func (c *metrics) getLivenessProbe() *corev1.Probe {
},
},
InitialDelaySeconds: 15,
TimeoutSeconds: 5,
PeriodSeconds: 10,
TimeoutSeconds: 15,
PeriodSeconds: 15,
SuccessThreshold: 1,
FailureThreshold: 3,
}
Expand All @@ -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,
}
Expand Down
10 changes: 5 additions & 5 deletions mysqlcluster/container/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ func TestGetMetricsLivenessProbe(t *testing.T) {
},
},
InitialDelaySeconds: 15,
TimeoutSeconds: 5,
PeriodSeconds: 10,
TimeoutSeconds: 15,
PeriodSeconds: 15,
SuccessThreshold: 1,
FailureThreshold: 3,
}
Expand All @@ -136,9 +136,9 @@ func TestGetMetricsReadinessProbe(t *testing.T) {
},
},
},
InitialDelaySeconds: 5,
TimeoutSeconds: 1,
PeriodSeconds: 10,
InitialDelaySeconds: 15,
TimeoutSeconds: 15,
PeriodSeconds: 15,
SuccessThreshold: 1,
FailureThreshold: 3,
}
Expand Down
8 changes: 4 additions & 4 deletions mysqlcluster/container/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ func (c *mysql) getLivenessProbe() *corev1.Probe {
},
},
InitialDelaySeconds: 30,
TimeoutSeconds: 5,
PeriodSeconds: 10,
TimeoutSeconds: 15,
PeriodSeconds: 15,
SuccessThreshold: 1,
FailureThreshold: 3,
}
Expand All @@ -147,8 +147,8 @@ func (c *mysql) getReadinessProbe() *corev1.Probe {
},
},
InitialDelaySeconds: 10,
TimeoutSeconds: 5,
PeriodSeconds: 10,
TimeoutSeconds: 15,
PeriodSeconds: 15,
SuccessThreshold: 1,
FailureThreshold: 3,
}
Expand Down
8 changes: 4 additions & 4 deletions mysqlcluster/container/mysql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ func TestGetMysqlLivenessProbe(t *testing.T) {
},
},
InitialDelaySeconds: 30,
TimeoutSeconds: 5,
PeriodSeconds: 10,
TimeoutSeconds: 15,
PeriodSeconds: 15,
SuccessThreshold: 1,
FailureThreshold: 3,
}
Expand All @@ -152,8 +152,8 @@ func TestGetMysqlReadinessProbe(t *testing.T) {
},
},
InitialDelaySeconds: 10,
TimeoutSeconds: 5,
PeriodSeconds: 10,
TimeoutSeconds: 15,
PeriodSeconds: 15,
SuccessThreshold: 1,
FailureThreshold: 3,
}
Expand Down
8 changes: 4 additions & 4 deletions mysqlcluster/container/xenon.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ func (c *xenon) getLivenessProbe() *corev1.Probe {
},
},
InitialDelaySeconds: 30,
TimeoutSeconds: 5,
PeriodSeconds: 10,
TimeoutSeconds: 15,
PeriodSeconds: 15,
SuccessThreshold: 1,
FailureThreshold: 3,
}
Expand All @@ -150,8 +150,8 @@ func (c *xenon) getReadinessProbe() *corev1.Probe {
},
},
InitialDelaySeconds: 10,
TimeoutSeconds: 5,
PeriodSeconds: 10,
TimeoutSeconds: 15,
PeriodSeconds: 15,
SuccessThreshold: 1,
FailureThreshold: 3,
}
Expand Down
8 changes: 4 additions & 4 deletions mysqlcluster/container/xenon_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ func TestGetXenonLivenessProbe(t *testing.T) {
},
},
InitialDelaySeconds: 30,
TimeoutSeconds: 5,
PeriodSeconds: 10,
TimeoutSeconds: 15,
PeriodSeconds: 15,
SuccessThreshold: 1,
FailureThreshold: 3,
}
Expand All @@ -164,8 +164,8 @@ func TestGetXenonReadinessProbe(t *testing.T) {
},
},
InitialDelaySeconds: 10,
TimeoutSeconds: 5,
PeriodSeconds: 10,
TimeoutSeconds: 15,
PeriodSeconds: 15,
SuccessThreshold: 1,
FailureThreshold: 3,
}
Expand Down

0 comments on commit 3a45bf1

Please sign in to comment.