I'm currently playing with Percona XtraDB Cluster which is based on Galera Cluster. In Galera docs I saw the following:
Warning: When using Galera Cluster in master-slave mode, all four levels are available to you, to the extend that MySQL supports it. In multi-master mode, however, you can only use the REPEATABLE-READ level.
And the issue is that my app is using READ-COMMITTED
isolation level. So I want to find out how Galera operates with this isolation level. According to the warning mentioned above, Galera should work in the master-slave mode only. Which mean only a single node should allow writes.
But I did an experiment: having a cluster with 3 nodes (on a single PC using Docker), I changed isolation level on all nodes to READ-COMMITTED, restarted these nodes and tried to do write queries on every node - all done successfully, which conflicts with the warning above.
So, here my questions are:
- How does Galera react on non-"REPEATABLE-READ" isolation levels?
- How can I check whether a cluster operates in master-master or master-slave mode? Shouldn't slave nodes decline write queries?