Load balancing with failover
hi Steen,
i want to know that does the julian's patch provide automatic cache deletion and logging in case of failover?
this would help me much,
thanx,
regards, ----------------------------------------------------------Tushar Thakker Elitecore Technologies Ltd. --------------------------------------------------------------- Original Message -----
From: <[email protected]>
To: <[email protected]>
Sent: Friday, January 02, 2004 10:02 PM
Subject: LARTC digest, Vol 1 #1519 - 6 msgs
Quoted 26 lines
Send LARTC mailing list submissions to
[email protected]To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.ds9a.nl/mailman/listinfo/lartc
or, via email, send a message with subject or body 'help' to [email protected]You can reach the person managing the list at
[email protected]When replying, please edit your Subject line so it is more specific than "Re: Contents of LARTC digest..."
Today's Topics:
1. Re: Load balancing with failover (Steen Suder, privat)
2. Re: Load balancing with failover (Anderson O Muniz)
3. Re: Load balancing with failover (Jurrie Overgoor)
4. Re: Load balancing with failover (Eric Leblond)
5. Bandwidth Analysis (Barry Rooney)
6. Re: low delay stuff.. (Roy)--__--__--
Quoted 9 lines
Message: 1
Date: Fri, 02 Jan 2004 14:46:10 +0100
From: "Steen Suder, privat" <[email protected]>
To: [email protected]
Subject: Re: [LARTC] Load balancing with failoverQuoted 2 lines · Tushar Thakker
Hi all,
i have network setup with 3 gateways and a large number of intranet
nodes,
Quoted 11 lines
Quoted 11 lines
i want to do automatic load balancing with failover, i have put following ip rules and routes,
ip rule add prio 222 table 222 ip route add default table 222 proto static \ nexthop via $GWE1 dev $IFE1 \ nexthop via $GWE2 dev $IFE2 \ nexthop via $GWE2 dev $IFE3 \Now, i also want to do failover,
but the point is that what shall i need to do about deleting the route
cache as soon as some gateway becomes dead or unavailable,
Quoted 216 lines
Quoted 2 lines
what the system will do on its own and what we need to do for this, i need a help,
AFAIK, You'd have to look at Julian's routepatch(es):
<http://www.ssi.bg/~ja/#routes-2.4>.Search for "Dead Gateway Detection".
It may not be the entire solution, but a step in the right direction.
--
Mvh. / Best regards,
Steen Suder <http://www.suder.dk/>
ICQ UIN 4133803--__--__--
Message: 2
From: "Anderson O Muniz" <[email protected]>
To: <[email protected]>
Subject: Re: [LARTC] Load balancing with failover
Date: Fri, 2 Jan 2004 10:59:57 -0200This is a multi-part message in MIME format.
------=_NextPart_000_003F_01C3D11F.8F463440
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printableHi,
Put a script to monitor a gateway with crond job and if it fails > automatically change to gateway 2, you gotta it?
[]'s
Anderson----- Original Message -----
From: Tushar Thakker
To: [email protected]
Sent: Friday, January 02, 2004 5:08 PM
Subject: [LARTC] Load balancing with failoverHi all,
i have network setup with 3 gateways and a large number of intranet > nodes, i want to do automatic load balancing with failover,
i have put following ip rules and routes,ip rule add prio 222 table 222 ip route add default table 222 proto static \ nexthop via $GWE1 dev $IFE1 \ nexthop via $GWE2 dev $IFE2 \ nexthop via $GWE2 dev $IFE3 \Now, i also want to do failover,
but the point is that what shall i need to do about deleting the route > cache as soon as some gateway becomes dead or unavailable, what the system will do on its own and what we need to do for this,
i need a help,
please guide me,
thanx in advance,
Regards,----------------------------------------------------------------
Tushar Thakker
Elitecore Technologies Ltd.
Ph: 9824080066 / 6405600 Ext-535
----------------------------------------------------------------
Life gives all that one deserves, but not all that one desires...
----------------------------------------------------------------------=_NextPart_000_003F_01C3D11F.8F463440
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; > charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Put a script to monitor a gateway with > crond job
and if it fails automatically change to gateway 2, you gotta > it?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[]'s</FONT></DIV>
<DIV><FONT face=Arial size=2>Anderson</FONT></DIV>
<DIV> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; > BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: > black"><B>From:</B>
<A [email protected]
href="mailto:[email protected]">Tushar Thakker</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A > [email protected] href="mailto:[email protected]">[email protected]</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, January 02, 2004 > 5:08
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [LARTC] Load balancing > with
failover</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Hi all,</FONT></DIV>
<DIV><FONT face=Arial size=2>i have network setup with 3 gateways > and a large
number of intranet nodes,</FONT></DIV>
<DIV><FONT face=Arial size=2>i want to do automatic load balancing > with
failover,</FONT></DIV>
<DIV><FONT face=Arial size=2>i have put following ip rules and
routes,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial > size=2> ip
rule add prio 222 table > 222<BR> ip
route add default table 222 proto staticQuoted 1 line
\<BR> &n> bsp;
nexthop via $GWE1 dev $IFE1
Quoted 1 line
\<BR> &n> bsp;
nexthop via $GWE2 dev $IFE2 \</FONT></DIV>
<DIV><FONT face=ArialQuoted 1 line
size=2> &nbs> p;
nexthop via $GWE2 dev $IFE3 \<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Now, i also want to do > failover,</FONT></DIV> <DIV><FONT face=Arial size=2>but the point is that what shall i > need to do about deleting the route cache as soon as some gateway becomes dead or > unavailable,</FONT></DIV>
<DIV><FONT face=Arial size=2>what the system will do on its own > and what we need to do for this,</FONT></DIV>
<DIV><FONT face=Arial size=2>i need a help,</FONT></DIV> <DIV><FONT face=Arial size=2>please guide me,</FONT></DIV> <DIV><FONT face=Arial size=2>thanx in advance,</FONT></DIV> <DIV><FONT face=Arial size=2>Regards,</DIV></FONT>
<DIV><FONT face=Arial size=2> </DIV></FONT>
<DIV><FONT face=ArialQuoted 1 line
size=2>----------------------------------------------------------------> <BR>Tushar
Thakker<BR>Elitecore Technologies Ltd.<BR>Ph: 9824080066 / 6405600
Quoted 1 line
Ext-535<BR>--------------------------------------------------------------> --<BR>Life
gives all that one deserves, but not all that one
Quoted 1 line
desires...<BR>-----------------------------------------------------------> -----</FONT></DIV></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_003F_01C3D11F.8F463440--
--__--__--
Message: 3
Reply-To: "Jurrie Overgoor" <[email protected]>
From: "Jurrie Overgoor" <[email protected]>
To: "Anderson O Muniz" <[email protected]>, <[email protected]>
Subject: Re: [LARTC] Load balancing with failover
Date: Fri, 2 Jan 2004 16:59:56 +0100Quoted 2 lines
Put a script to monitor a gateway with crond job and if it fails automatically change to gateway 2, you gotta it?
Does that address the problem of routes being cached?
Greetz -- Jurrie
[email protected]--__--__--
Message: 4
Subject: Re: [LARTC] Load balancing with failover
From: Eric Leblond <[email protected]>
To: Tushar Thakker <[email protected]>
Cc: [email protected]
Organization: Regit.org
Date: Fri, 02 Jan 2004 17:02:21 +0100--=-xCixgWwoczboLryEiCKO
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: quoted-printableQuoted 4 lines · Tushar Thakker
Hi all,
i have network setup with 3 gateways and a large number of intranet nodes,
i want to do automatic load balancing with failover,One find way to do this is to use a combination of :
- nth :
http://www.netfilter.org/documentation/pomlist/pom-base.html#nth
- condition :
http://www.netfilter.org/documentation/pomlist/pom-extra.html#condition
- CONNMARK :
http://www.netfilter.org/documentation/pomlist/pom-extra.html#CONNMARK
- iproute2the first three are patch available in patch-o-matic from netfilter, see provided link for explanation.
The idea is the following :
let say that we've got a link A at 512 and a link B at 1024 kbits. I want to have twice the number of connection on B as on A to really use link B so i set a counter with 3 slots, I fed slots 0 and 2 to B and slots 1 to A.
iptables -t mangle -A FORWARD -m state --state NEW NEW -m nth --counter1 \ --every 3 --packet 0 -j MARK --set-mark 0x1 iptables -t mangle -A FORWARD -m state --state NEW -m nth --counter 1 \ --every 3 --packet 1 -j MARK --set-mark 0x2 iptables -t mangle -A FORWARD -m state --state NEW -m nth --counter 1 \ --every 3 --packet 1 -j MARK --set-mark 0x1You need to restore and save the mark with connmark to have mark follow connection and tcp session coming from the same IP.
Next route mark
0x1on link B and route0x2on link A (use ip rules and diferrent routing tables)Here you've got a good load-balancing.
Quoted 114 lines
Next thing use condition on each line to have packet being marked only if the corresponding link is detected as UP (else marked it with the other link mark if it is itself not down). To test if the link is up you'll have to write a simple daemon which ping gateway and set the corresponding condition to 0 or 1 if link is down or up.
BR,
Signature · 97 lines
Eric Leblond NuFW, Now User Filtering Works (http://www.nufw.org) --=-xCixgWwoczboLryEiCKO Content-Type: application/pgp-signature; name=signature.asc Content-Description: Ceci est une partie de message =?ISO-8859-1?Q?numériquement?= =?ISO-8859-1?Q?_signée.?> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQA/9ZYMnxA7CdMWjzIRAq03AJ41R8cCIgsPr4wBQn2qk2o/Z6MzCwCbBSMG Iz0Kdgvz86Q8a4ZXUQBbJvw> =/X/i -----END PGP SIGNATURE----- --=-xCixgWwoczboLryEiCKO-- --__--__-- Message: 5 From: "Barry Rooney" <[email protected]> To: <[email protected]> Date: Fri, 2 Jan 2004 22:01:56 -0000 Subject: [LARTC] Bandwidth Analysis This is a multi-part message in MIME format. ------=_NextPart_000_001A_01C3D17C.09674AA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi All, Can anyone recommend an opensource bandwidth monitoring tool that can > plot throughtput and breakdown into sockets/services for proving the performance of my qdiscs? Many thanks Barry. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.555 / Virus Database: 347 - Release Date: 23/12/2003 ------=_NextPart_000_001A_01C3D17C.09674AA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; > charset=iso-8859-1"> <META content="MSHTML 6.00.2800.1276" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>Hi All,</FONT></DIV> <DIV><FONT face=Arial size=2>Can anyone recommend an opensource > bandwidth monitoring tool that can plot throughtput and breakdown into sockets/services</FONT></DIV> <DIV><FONT face=Arial size=2>for proving the performance of my qdiscs?</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Many thanks</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Barry.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2><BR>---<BR>Outgoing mail is certified > Virus Free.<BR>Checked by AVG anti-virus system (<A href="http://www.grisoft.com">http://www.grisoft.com</A>).<BR>Version: > 6.0.555 / Virus Database: 347 - Release Date: > 23/12/2003</FONT></DIV></BODY></HTML> ------=_NextPart_000_001A_01C3D17C.09674AA0-- --__--__-- Message: 6 From: "Roy" <[email protected]> To: <[email protected]> Subject: Re: [LARTC] low delay stuff.. Date: Sat, 3 Jan 2004 02:24:07 +0200 I think all htb shaper is based in this idea shaper do not drop packets it just queues them and dequeues acording priority and bandwitch if there is no space in queue then forwarded packet wil be lost what can you suggest better? what do you mean with "shortened network-path" I think it is exactly bad that htb is optimized for speed and not for functionality.Quoted 6 lines
i was thinking is there a way to include some mechanism for high priority selection&queueing mechnism... so that we can get better support for low-delay traffic..
Every now and then I see a question on the list, how to handle video&audio&game traffic, and no definitive answer to this question.. There has to be solution :"), let me tell i'm not a c-programmer so i
cant
Quoted 2 lines
do that,
Quoted 1 line
but think there is a way to achieve this in not so hard way...my
proposal
Quoted 27 lines
is
Quoted 2 lines
to make something similar to the way cisco do it..i.e. Have one high priority queue/class that have higher priority over the
other classes,
Quoted 1 line
probably we can do this now but it is not made as exception i.e. depends
from
Quoted 3 lines
your setup, what other classes do u have...etc...
My idea is to have an exception for this super class with shortened
"network-path",
Quoted 1 line
so that we get lower possible delays.. i thik in cisco they called it
priority-queue
Quoted 10 lines
Is such thing feasable or it can be acomplished with current qdiscs and work even under heavy load with thousand of classes...
tia
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/--__--__--
Quoted 8 lines
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartcEnd of LARTC Digest
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/