Hi everyone,
We’re in the process of transitioning from a standard MySQL setup to Percona XtraDB Cluster (PXC). Our testing has been mostly successful, but we’ve encountered a few issues that we could use some help with. We were on a call with Percona sales and an engineer regarding these questions, but unfortunately, they didn’t have the answers we were looking for and referred us to this forum.
- Delayed Node Startup
When a node VM is shut down for a short period (e.g., more than a few minutes) and then brought back online, the MySQL service on that node fails to start on VM boot. If we wait a bit longer (without making any changes), the service starts successfully. Is this behavior expected? Could there be background processes or checks happening that delay the node’s sucessful startup?
- Automated HA Recovery
Currently, when a node returns online, MySQL does not start automatically as indicated by the service status. Additionally, in ProxySQL, the node status remains “shunned” until the server list is manually reloaded. Is there a way to fully automate this process? We’re looking for a solution where HA recovery is completely automatic, including MySQL startup and HA status in ProxySQL.
- Table Locks Behavior
According to the PXC documentation, table locks should not function correctly or replicate across the cluster, particularly for unsupported queries like LOCK TABLES and UNLOCK TABLES in multi-source setups. However, in our testing, we’ve observed that these locks not only work but also replicate across nodes as expected.
This behavior is probably due to our cluster being in permissive mode. The documentation does not clearly specify this aspect, so we were initially unsure. Could someone confirm if our understanding is correct and if there could be any unexpected side-effects?
Here are the commands we used to test:
SELECT GET_LOCK('" + temp_lock + "', 1);
SELECT IS_FREE_LOCK('" + temp_lock + "');
SELECT RELEASE_LOCK('" + temp_lock + "');
Any insights or advice on these issues would be greatly appreciated. Thanks in advance!