We have 6 Servers (4 Applications servers and 2 DB Servers)
We are using HAProxy to load balance between the Application and API servers (2/2)
Now the issue I'm having is that the system administrator setup a Master/Slave on the MySQL but it's always failing and until now we cannot use the slave since most data are always corrupted and we always need to fix it and each time we are getting different errors .
We tried to make some sort of load balancing for the read/write (write on master , read on slave) but we were not able to use that since slave data are not always correct .
What I'm wondering is how the big guys proceed when dealing with high load servers where you always need the data to be accurate and cannot take any risk?
Can someone tell me his own experience and what he used ?
What i found : Percona XtraDB Cluster , but before going into this direction need input ...
Thank's !!
xxxxx
ADD INDEXIX_fill_empty_xxx_cron
(type_id
,e_id
,model_id
) so until we are 100% the slave wont crash we can't use that thing – TarekSHOW SLAVE STATUS;
as often as needed, from an automated system to proactively monitor replication and catch problems faster. This example suggests that the slave doesn't have enough disk space. As a rule, the slave server needs the same or more or everything the master has -- disk size, I/O performance, CPU core speed (though fewer CPU cores may be okay) -- and running the same or slightly newer version of MySQL itself. I suspect getting to the bottom of the underlying issues will ultimately be better for you than changing strategy. – Michael - sqlbot