Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Currently, I've 2 DB servers say, public IP mapped to one of the servers and

Anyone has an idea how to set up auto sync of both MySQL server. And is down, it will fallback to with mapped to it automatically without the need of manual configuration ?

Anyone has useful information to go towards this direction?

share|improve this question

migrated from Oct 17 '11 at 8:50

This question came from our site for professional and enthusiast programmers.

First google result for "mysql load balancing": – bdares Oct 17 '11 at 3:13
Offtopic - not a programming question. Should be on serverfault. – Marc B Oct 17 '11 at 3:17

1 Answer 1

on my case i use haproxy (for lb, 1 active, 1 standby/backup mode) and keepalived (for ip failover). on norman condition, only 1 server active, 2nd server will standby. the synchronization between server1 and server2 using mysql master-master (circular replication). \
               - (VIP) -- - internet /

ref: - -

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.