dxr
31st August 2009, 13:46
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
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