Understand dirty reads when using ProxySQL
Recently I had been asked to dig a bit about WHY some user
where getting dirty reads when using PXC and ProxySQL.
While the immediate answer was easy, I had taken that opportunity
to dig a bit more and buildup a comparison between different HA
solutions.
For the ones that cannot wait, the immediate answer is
…drum roll, PXC is based on Galera replication, and as I am
saying from VERY long time (2011), Galera replication is
virtually synchronous. Given that if you are not careful you MAY
hit some dirty reads, especially if configured incorrectly.
There is nothing really bad here, we just need to know how
to handle it right.
In any case the important thing is to understand some basic
concepts.
Two ways of seeing the world (the theory)
Once more let us talk about data-centric approach and …
[Read more]