From: Martijn Lievaart <m@rtij.nl>
To: Radovan Jablonov <rjablonov@arrow.ca>
Cc: netfilter@lists.netfilter.org
Subject: Re: destination load balancing
Date: Thu, 21 Sep 2006 23:27:04 +0200 [thread overview]
Message-ID: <451303A8.8010203@rtij.nl> (raw)
In-Reply-To: <F88399957644AA41B09BBDE2704CCEA8F4F0C9@raoxch01.arrow.ca>
Radovan Jablonov wrote:
>Hello,
>
>Has iptables possibility (or will have) to use other load balancing
>methods/algorithms (for example: weighted round-robin, hash, load agent,
>custom algorithm)?
>
>
No, not directly.
If you can set a fwmark based on some criterium you could implement more
advance schemes, but that requires some custom match the YOU have to write.
So a hash based load balancing could be implemented faily easily, just
write a module that sets fwmark based on the hash. I guess more people
would be interested in this . (If only to load balance over multiple
links, f.i.).
Load balancing based on some kind of load agent would be more difficult,
one has to communicate with userspace for this. I imagine many people
would be interested in this.
Weighted round robin is actually fairly easy by using the nth match.
lets say you want 2/3 go to A and 1/2 3 go to B. Just use nth to devide
in 3's and send cases 0 and 1 to A and case 2 to B.
M4
prev parent reply other threads:[~2006-09-21 21:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-21 21:07 destination load balancing Radovan Jablonov
2006-09-21 21:27 ` Martijn Lievaart [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=451303A8.8010203@rtij.nl \
--to=m@rtij.nl \
--cc=netfilter@lists.netfilter.org \
--cc=rjablonov@arrow.ca \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.