Mal Herring wrote:

Hi Gentoo-Server....

I run a Apache2 webserver and Postfix as per the virtual mailhost
guide...

For resilience I would like to have two gentoo boxes doing these tasks
for load balancing / redundancy - how can this be achieved?  Is there a
tool that will allow replication of the config files / mysql stuff to
allow the boxes to basically be a cluster ?

Oh - one more thing, the boxes will sit in different data centres !

Thanks in advance...
That won't actually be all that easy to accomplish...

The most robust solution will always be to set up a THIRD box in front of those identical servers, which can load balance the traffic and/or connections to both.

Obviously, this is going to be more difficult to implement when the servers are physically far apart.

A very good *mail* solution would be to set up Postfix on both boxes for the same domain, but with different MX proirities - this is a relatively easy setup.

For apache, you can do part of the loadbalancing yourself, but that will require both boxes to be available at all times - meaning you don't have a redundancy in place.

You can implement this via DNS, but you will need flexible access to your DNS records; with DNS round-robin you would have a certain amount of redundancy.

Google around, there are plenty of documents available.

--
[email protected] mailing list

Reply via email to