loadbalncer using iptables
am 09.03.2005 12:23:01 von Muruganandam
Dear all,
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.
i wrote a script for the same using cron tab.but it is working.
but what i need is i want to use the roundrobin fashion ,when http
request comes.how to do that.
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: loadbalncer using iptables
am 09.03.2005 14:35:29 von Thornton Prime
> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html