I have this scenario where I have 4 MySQL servers (A,B,C,D), as this:
- Server (A) is always online, and serves as the main website.
- Servers (B,C and D) are online on random periods of the day, and not concurrently.
- Each of the servers can make changes to the tables, whether the state online or offline, the changes should be applied to the other servers.
I've followed this tutorial and everything went okay, until this happened: two servers were offline, the replication stopped, and I needed to reset the slave service on all servers from phpMyAdmin Control Panel in order to get the replication work again.
I need a solution that works automatically. How can I achieve that?