Re: loadbalncer using iptables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I build a loadbalancer using DNAT.
> iptables -t nat -A PREROUTING -s 10.10.10.254 -d 192.168.0.3 -p tcp
> --dport 80 -j DNAT --to-destnation 172.18.10.1
> i need to use anonther real server 172.18.10.2 for the next request in a
> round robin fashion.

You can add a match like "-m nth --every 2", but you probably want to
look at LinuxVirtualServer.org, which implements a real load balancer
using netfilter. There is support for peristent connections, weights,
adding in health checks, and all sorts of other features.

thornton
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux