[Pacemaker] Load-Balancing Confusion
Andrew Beekhof
andrew at beekhof.net
Tue Sep 15 17:47:28 UTC 2009
On Wed, Sep 2, 2009 at 4:29 PM, <Darren.Mansell at opengi.co.uk> wrote:
> Can anyone help me clear up my confusion with load-balancing / load-sharing
> using Linux-HA please?
>
>
>
> I’ve always used ldirectord/LVS with an IPaddr2 resource (not cloned),
> collocated them and put the virtual IP address on the loopback of all nodes.
> When the IPaddr2 resource starts on any node it will remove the VIP from the
> loopback on that node. Traffic hits the node with the IPaddr2 and ldirectord
> resources then gets redirected off to other nodes on their lo devices as
> they don’t ARP.
>
>
>
> This has worked fine so far bar a few issues but I’m not sure I’m doing it
> right.
>
>
>
> I’m using lvs_support=true in my CIB to allow it to work but it doesn’t do
> what it says, it doesn’t set the IP to the loopback device on a node that
> isn’t active, I have to do that myself.
Could be the lvs functionality in IPaddr2 is broken. Perhaps try IPaddr?
> Should I be cloning the IPaddr2 so
> it runs on both nodes?
That would probably be a possible (but primitive) alternative to ldirectord
> Would this need making into a multi-state resource
> for this to happen?
Shouldn't be necessary
> Sorry for all the questions, I’ve just opened a can of worms with this, all
> because I’ve just found I can’t run more than one service on 127.0.0.1:80 so
> can’t load balance more than one web server.
>
>
>
> Thanks.
>
>
>
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
>
More information about the Pacemaker
mailing list