percona-server-mysql-operator
percona-server-mysql-operator copied to clipboard
MySQL StatefulSet can't rollout to ready state after cluster spec update
Report
Cluster can't transit to ready state after any change at .spec which lead to mysql StatefulSet rollout that can't complete.
More about the problem
I deployed mysql async replication cluster with two replicas and without backups via default helm chart values. After cluster had reached ready state I turned on backups and rollout of mysql StatefulSet began from mysql-1 pod to mysql-0, but the last one stuck permanently with a problem at mysql container - "Startup probe failed" (Back-off restarting failed container)
Steps to reproduce
- deploy async replication cluster with 2 replicas and without backups section - backup.enabled: false
- wait for cluster ready state
- turn on backups - backup.enabled: true and fill this section with some meaningful values or you can just change mysql resources section - any action fits which lead to mysql StateFulSet rollout
Versions
- Kubernetes: 1.23.17
- Operator: percona/percona-server-mysql-operator:0.6.0
- Database: percona/percona-server:8.0.33-25
Anything else?
If I manually delete mysql statefulset it fix the problem, at case of group replication there is no such a problem at all.
No response
Duplicating my answer on the forum:
Few comments:
- This operator is in alpha stage, we recommend using the one based on PXC. I assume you have some reason to run async replication and would be curious to learn more. Please share the use case.
- k8s version seems to be pretty old (1.23), we did not test on it
- Do you see any errors in the operator log?