Closed lasse-aagren closed 8 years ago
My first guess is that you've created a DSR blackhole - the default load balancing mode is to use DSR, however this requires that the VIP address (10.38.8.70 in this case), be configured as an IP on a dummy (non-ARP) interface on each of the backends. On most Linux systems you should be able to do something like ip addr add 10.38.8.70 dev dummy0
(you may need to insmod dummy
first).
You can avoid DSR blackholes by using DSR healthchecks - add a mode: dsr
to the healthcheck that you have configured, at which point I suspect the backends will be considered unhealthy (as a rule of thumb, if you have a DSR configured vserver, you should have one DSR healthcheck for exactly this reason).
Alternatively, if you don't need to use (or don't want to use DSR), you can switch to NAT mode by adding a mode: nat
entry under the VServerEntry section of the protobuf.
That was exactly it :) thanks!
Hi,
I'm trying to setup op a simple seesaw cluster, with one virtual ip, one vserver and two backends to loadbalacnce port 80 http traffic.
My problem is that everything seems like it is running as it should, but the loadbalancer doesn't seem to relay anything to the backends.
I have two servers with two NICs.
lb1.mydomain.com and lb2.mydomain.com
this is the seesaw.cfg from both servers:
lb1: cat /etc/seesaw/seesaw.cfg
lb2: cat /etc/seesaw/seesaw.cfg
This the cluster.pb:
seesaw reports this:
Other info from lb1:
But when I from lb1 (or other hosts on the same network) tries a
nc -zv 10.38.8.70 80
it just hangs forevever (or until it times out). I can ping 10.38.8.70 just fine, but tcp traffic to port 80 doesn't even seem to hit the iptables INPUT chain created by seesaw.Any ideas would be very much appreciated