MySQL Slavedb
Hi,
Some services like mail server or ftp server, allways use db for READ ONLY, and only control panel use the db for Rwad and Write.
Should be possible configure a $mastedb and $slavedb?
If $slavedb is not configured then use the same than $masterdb.
If $slavedb fail, then try connect to $masterdb
If we have a los of traffic in mailserver (for example spam and real users) can turn down the db and all clients can be affected. With slavedb we can fix the problem, for example:
1.1.1.1 --------------- 1.1.1.2
|Masterdb| ----------- | Slavedb |
Or:
1.1.1.1 ----------------------- 1.1.1.2
|Masterdb| ------------------ | Slavedb VIP | (LVS for example)
_________________|Slavedb1| -- |Slavedb2| -- |Slavedb3|
_________________ 1.1.1.3 ______ 1.1.1.4 _____ 1.1.1.5
Last edited by dxr; 31st August 2009 at 12:49.
|
Recent comments
1 day 5 hours ago
1 day 8 hours ago
1 day 10 hours ago
1 day 11 hours ago
1 day 13 hours ago
1 day 14 hours ago
1 day 15 hours ago
2 days 7 hours ago
2 days 8 hours ago
2 days 12 hours ago