On Wed, Sep 19, 2007 at 09:07:52PM -0700, dane johansen wrote:
> Hi,
> 
> I'm trying CARP ip balancing on openbsd 4.2 (-current). I have 3 boxes (host
> A, host B and host C) so I started configuring carp interfaces according
> manual:
> 
> A# ifconfig carp0 10.10.10.100 netmask 255.255.248.0 vhid 7 link0 link1
> A# ifconfig carp1 10.10.10.100 netmask 255.255.248.0 vhid 8 advskew 100
> 
> B# ifconfig carp0 10.10.10.100 netmask 255.255.248.0 vhid 7 advskew 100
> link0 link1
> B# ifconfig carp1 10.10.10.100 netmask 255.255.248.0 vhid
> 
> At this point everything works but there is no IP load balancing, because on
> host B both interfaces are in backup mode. So I've enabled carp preempt on
> both hosts:
> 
> A# sysctl net.inet.carp.preempt=1
> B# sysctl net.inet.carp.preempt=1
> 
> Now carp1 is master on host B, and it's doing load balancing, so i decided
> to add host C (maybe we need to add this to example section in the manual,
> like it's done for arp load balancing? Or is it just coincidence and you
> don't really need carp preemtp?):

Looks all correct. And yes, you do need to enable carp preempt.

> C# ifconfig carp0 10.10.10.100 netmask 255.255.248.0 vhid 7 advskew 200
> link0 link1
 
Nothing wrong with that.
However, if you want to spread the load over 3 servers you'll need
3 carp interfaces each, where each server should be master for one
of them.

> As soon as I wrote this command I lost connection to host C (did that
> remotely), so I guess tomorrow I'll have to check what happened, but maybe
> someone knows what did I do wrong (maybe advskew should equal for all backup
> hosts in the pool? but I assumed that you have to manage priorities that's
> why I've set it to 200, or maybe the fact that I've set carp.preempt is
> messing around something?)
 
Not supposed to happen.
Do you have more infos about what went wrong on host C ?


    Marco

Reply via email to