MySQL Replicas are managed with Single Statefulset. Each replica leverage the EBS volume for storage. EBS is AZ specific. Is it expected that, All replicas must run in same AZ. So that, on restart, pod will never end up with inaccessible EBS vol. But if we use AZ anti-affinity for HA, on restart, pods can come up in any other AZ and might end up in pending state.
In testing also, I faced this issue. It is the expected result for StatefulSet. But with Percona, Is there any protection available to avoid this? Any pointers?
@Sergey_Pronin Thanks for the reply.
Still not very clear about how the topology aware volume will help to solve the above situation.
Let me try to test it.
@Sergey_Pronin This will not help. Bcoz Topology-aware volume’s primary function lies in influencing the initial placement of PVs during the provisioning process and don’t have the ability to relocate existing PVs after they’ve been provisioned. Other technics like selector and affinity will only help and does not guarantee. Plz correct me, if my understanding is not correct.