[TAG] Mirror 2 web servers
kakadu_croc at yahoo.com
Thu Mar 18 19:59:35 MSK 2004
--- Love Sundin <love at macrent.se> wrote:
> Hi folks at ,The Answer Gang
> I have two webservers running linux (redhat)
> one of them is the primary server and the other one acts as backup
> the thing is that i want to be able to mirror these servers in both ways
> including this:
> * mysql databases
> *http folder
Well, since you're using a MySQL database, have you considered moving the MySQL
database and DBMS onto a third machine which is more powerful than the two
webservers, and simply having the webservers query the database using your
favorite RDBMS protocol. Or you could use the MySQL mirroring and load balancing
features (Google turns up a lot of links).
Many online websites, such as discussion forums, often place the DB onto a
separate machine and the Web server software onto another one (or two, or any
value of N), and use DNS round robin to rotate amongst the Web servers, thus
lessening the risk that a single machine failure will kill the site.
> i was thinking a shell script would do the trick!
> but my competence ends just after #!/bin/bash!
> i am not asking for a complete script
> just some were to turn for help :)
You can help us by supplying ASCII art defining your network topology - the
really smart people who know DBs and stuff on this list will probably need it
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
More information about the TAG