This is a rant. It’s a strong one mainly because of what I’ve been dealing with over the past few days. But it’s still just a rant, so I’m going to exaggerate 😛. I’ve been with my employer for several years, and a lot of the stuff I’m writing about isn’t really new. I think most of it has been like this for years. I didn’t really pay attention to this stuff in the past because I didn’t have to. I didn’t want to either1, but now our team is handling ops and I have to care 😐.
Doing it wrong with MySQL
We use async, bidirectional replication. It’s a nightmare.
Using async replication means you don’t care about replicas, basically by definition. If the master isn’t waiting for replicas, then they can fall arbitrarily behind, crash, fail, whatever and the master will happily keep going. You can use hacks like delaying binlog commits on the master to improve parallelization on the …
[Read more]