* loadbalncer using iptables
@ 2005-03-09 11:23 Muruganandam
2005-03-09 13:35 ` Thornton Prime
0 siblings, 1 reply; 2+ messages in thread
From: Muruganandam @ 2005-03-09 11:23 UTC (permalink / raw)
To: linux-admin
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: loadbalncer using iptables
2005-03-09 11:23 loadbalncer using iptables Muruganandam
@ 2005-03-09 13:35 ` Thornton Prime
0 siblings, 0 replies; 2+ messages in thread
From: Thornton Prime @ 2005-03-09 13:35 UTC (permalink / raw)
To: muruganandam; +Cc: linux-admin
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-09 13:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-09 11:23 loadbalncer using iptables Muruganandam
2005-03-09 13:35 ` Thornton Prime
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).