Benjamin MALYNOVYTCH wrote:
Hi !
I' would like to know if using high availability cluster (with master
and slave), as described in
http://www.gentoo.org/proj/en/cluster/hpc-howto.xml would allow to
have also load balancing ?
Will the slave take a part of the load of the master when both of the
servers are up and available ? Or will it be waiting the
unavailability to work ?
You have almost two ways:
- you can add a load balancer in front of your cluster (you can
implement it with keepalived)
- you can distribute active services on the nodes (two or more)
for example:
if you have 2 nodes acting as a cluster of web/mail/DB servers, you can
setup a DRBD daemon with 2 or 3 resources, add the services to the nodes
and use heartbeat to distribute active services on the cluster.
For example you can have apache active on all the nodes, postfix active
on the first node and mysql active on the second node.
In case of failure all the services will became active on the remaining
node.
In the future, with drbd 8.0 and GFS you can improve this kind of setup.
The solution depends on you budget, you can also implement it with an
ata over ethernet disk array and a couple of servers.
--
Christian Zoffoli : Gentoo Developer
Mail : xmerlin at gentoo.org
Web : http://dev.gentoo.org/~xmerlin
--
[email protected] mailing list