[Linux-cluster] Load share http servers using clusterip with failover

Adam Hough adam at gradientzero.com
Mon Jan 12 21:03:26 UTC 2009


2009/1/8 Brett Delle Grazie <Brett.Dellegrazie at intact-is.com>:
> Hi,
>
> I have a configured two-node cluster with some GFS file systems on them.
>
> Those servers also run http servers and I'd like to load-share the HTTP
> servers without
> putting a hardware load balancer in front of them.
>
> I read about clusterIP: http://www.linux-ha.org/ClusterIP
>
> and was wondering if anyone has managed to use this iptables capability
> to get a service running in load-shared fashion across multiple nodes with
> the
> failover of a node handled by rgmanager?
>
> Is there an example of this anywhere that someone could point me to?
> Has anyone got a resource script of this type they would be willing to
> share?
>
> Thanks in advance,
>
> Best regards,
>
> Brett
>

You will want to create X number of ip address where X is the number
of http servers.  Then setup a failover domain inside the cluster for
each ip address that includes all of the http servers with the servers
weighted in such a way that every http server would have an ip address
assuming the server is up. Then create an ip address resource for each
of the ip addresses you created earlier.  Finally create a service
that contains an ip address resource and is associated with a failover
domain.  You will create one server for each ip address. Alternately
it might be possible to skip the setting up of the resource and just
setup the resource in side of the service.

- Adam




More information about the Linux-cluster mailing list