Skip to content

Commit 3a45bf1

Browse files
committed
*: change timeout values
1 parent 88990ac commit 3a45bf1

File tree

8 files changed

+32
-32
lines changed

8 files changed

+32
-32
lines changed

mysqlcluster/container/backup.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ func (c *backupSidecar) getLivenessProbe() *corev1.Probe {
106106
},
107107
},
108108
InitialDelaySeconds: 15,
109-
TimeoutSeconds: 5,
110-
PeriodSeconds: 10,
109+
TimeoutSeconds: 15,
110+
PeriodSeconds: 15,
111111
SuccessThreshold: 1,
112112
FailureThreshold: 3,
113113
}
@@ -122,8 +122,8 @@ func (c *backupSidecar) getReadinessProbe() *corev1.Probe {
122122
},
123123
},
124124
InitialDelaySeconds: 5,
125-
TimeoutSeconds: 5,
126-
PeriodSeconds: 10,
125+
TimeoutSeconds: 15,
126+
PeriodSeconds: 15,
127127
SuccessThreshold: 1,
128128
FailureThreshold: 3,
129129
}

mysqlcluster/container/container.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ func getStartupProbe(name string) *corev1.Probe {
5050
},
5151
},
5252
InitialDelaySeconds: 10,
53-
TimeoutSeconds: 5,
54-
PeriodSeconds: 10,
53+
TimeoutSeconds: 15,
54+
PeriodSeconds: 15,
5555
SuccessThreshold: 1,
5656
FailureThreshold: 5,
5757
}

mysqlcluster/container/metrics.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ func (c *metrics) getLivenessProbe() *corev1.Probe {
8484
},
8585
},
8686
InitialDelaySeconds: 15,
87-
TimeoutSeconds: 5,
88-
PeriodSeconds: 10,
87+
TimeoutSeconds: 15,
88+
PeriodSeconds: 15,
8989
SuccessThreshold: 1,
9090
FailureThreshold: 3,
9191
}
@@ -100,9 +100,9 @@ func (c *metrics) getReadinessProbe() *corev1.Probe {
100100
Port: intstr.FromInt(utils.MetricsPort),
101101
},
102102
},
103-
InitialDelaySeconds: 5,
104-
TimeoutSeconds: 1,
105-
PeriodSeconds: 10,
103+
InitialDelaySeconds: 15,
104+
TimeoutSeconds: 15,
105+
PeriodSeconds: 15,
106106
SuccessThreshold: 1,
107107
FailureThreshold: 3,
108108
}

mysqlcluster/container/metrics_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ func TestGetMetricsLivenessProbe(t *testing.T) {
117117
},
118118
},
119119
InitialDelaySeconds: 15,
120-
TimeoutSeconds: 5,
121-
PeriodSeconds: 10,
120+
TimeoutSeconds: 15,
121+
PeriodSeconds: 15,
122122
SuccessThreshold: 1,
123123
FailureThreshold: 3,
124124
}
@@ -136,9 +136,9 @@ func TestGetMetricsReadinessProbe(t *testing.T) {
136136
},
137137
},
138138
},
139-
InitialDelaySeconds: 5,
140-
TimeoutSeconds: 1,
141-
PeriodSeconds: 10,
139+
InitialDelaySeconds: 15,
140+
TimeoutSeconds: 15,
141+
PeriodSeconds: 15,
142142
SuccessThreshold: 1,
143143
FailureThreshold: 3,
144144
}

mysqlcluster/container/mysql.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ func (c *mysql) getLivenessProbe() *corev1.Probe {
127127
},
128128
},
129129
InitialDelaySeconds: 30,
130-
TimeoutSeconds: 5,
131-
PeriodSeconds: 10,
130+
TimeoutSeconds: 15,
131+
PeriodSeconds: 15,
132132
SuccessThreshold: 1,
133133
FailureThreshold: 3,
134134
}
@@ -147,8 +147,8 @@ func (c *mysql) getReadinessProbe() *corev1.Probe {
147147
},
148148
},
149149
InitialDelaySeconds: 10,
150-
TimeoutSeconds: 5,
151-
PeriodSeconds: 10,
150+
TimeoutSeconds: 15,
151+
PeriodSeconds: 15,
152152
SuccessThreshold: 1,
153153
FailureThreshold: 3,
154154
}

mysqlcluster/container/mysql_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ func TestGetMysqlLivenessProbe(t *testing.T) {
136136
},
137137
},
138138
InitialDelaySeconds: 30,
139-
TimeoutSeconds: 5,
140-
PeriodSeconds: 10,
139+
TimeoutSeconds: 15,
140+
PeriodSeconds: 15,
141141
SuccessThreshold: 1,
142142
FailureThreshold: 3,
143143
}
@@ -152,8 +152,8 @@ func TestGetMysqlReadinessProbe(t *testing.T) {
152152
},
153153
},
154154
InitialDelaySeconds: 10,
155-
TimeoutSeconds: 5,
156-
PeriodSeconds: 10,
155+
TimeoutSeconds: 15,
156+
PeriodSeconds: 15,
157157
SuccessThreshold: 1,
158158
FailureThreshold: 3,
159159
}

mysqlcluster/container/xenon.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ func (c *xenon) getLivenessProbe() *corev1.Probe {
134134
},
135135
},
136136
InitialDelaySeconds: 30,
137-
TimeoutSeconds: 5,
138-
PeriodSeconds: 10,
137+
TimeoutSeconds: 15,
138+
PeriodSeconds: 15,
139139
SuccessThreshold: 1,
140140
FailureThreshold: 3,
141141
}
@@ -150,8 +150,8 @@ func (c *xenon) getReadinessProbe() *corev1.Probe {
150150
},
151151
},
152152
InitialDelaySeconds: 10,
153-
TimeoutSeconds: 5,
154-
PeriodSeconds: 10,
153+
TimeoutSeconds: 15,
154+
PeriodSeconds: 15,
155155
SuccessThreshold: 1,
156156
FailureThreshold: 3,
157157
}

mysqlcluster/container/xenon_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ func TestGetXenonLivenessProbe(t *testing.T) {
148148
},
149149
},
150150
InitialDelaySeconds: 30,
151-
TimeoutSeconds: 5,
152-
PeriodSeconds: 10,
151+
TimeoutSeconds: 15,
152+
PeriodSeconds: 15,
153153
SuccessThreshold: 1,
154154
FailureThreshold: 3,
155155
}
@@ -164,8 +164,8 @@ func TestGetXenonReadinessProbe(t *testing.T) {
164164
},
165165
},
166166
InitialDelaySeconds: 10,
167-
TimeoutSeconds: 5,
168-
PeriodSeconds: 10,
167+
TimeoutSeconds: 15,
168+
PeriodSeconds: 15,
169169
SuccessThreshold: 1,
170170
FailureThreshold: 3,
171171
}

0 commit comments

Comments
 (0)