Skip to content

Commit dec0962

Browse files
committed
mysqlcluster: fix the bug about io hang xenon no switch leader #364
1 parent b31899b commit dec0962

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mysqlcluster/container/mysql.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@ func (c *mysql) getLivenessProbe() *corev1.Probe {
8888
return &corev1.Probe{
8989
Handler: corev1.Handler{
9090
Exec: &corev1.ExecAction{
91-
Command: []string{"pgrep", "mysqld"},
91+
Command: []string{
92+
"sh",
93+
"-c",
94+
"touch /var/lib/mysql/auto.cnf && pgrep mysqld",
95+
},
9296
},
9397
},
9498
InitialDelaySeconds: 30,

0 commit comments

Comments
 (0)