linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thornton Prime <theoszi@gmail.com>
To: muruganandam@softhome.net
Cc: linux-admin@vger.kernel.org
Subject: Re: loadbalncer using iptables
Date: Wed, 9 Mar 2005 05:35:29 -0800	[thread overview]
Message-ID: <2d7eccf505030905356231091b@mail.gmail.com> (raw)
In-Reply-To: <d0ml9j$e3h$1@sea.gmane.org>

> 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

      reply	other threads:[~2005-03-09 13:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-09 11:23 loadbalncer using iptables Muruganandam
2005-03-09 13:35 ` Thornton Prime [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2d7eccf505030905356231091b@mail.gmail.com \
    --to=theoszi@gmail.com \
    --cc=linux-admin@vger.kernel.org \
    --cc=muruganandam@softhome.net \
    --cc=thornton@yoyoweb.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).