All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [LARTC] RE: [LARTC] Load Balance simply doesn´t work...
@ 2004-08-27 10:26 Robert Kurjata
  2004-08-31 15:02 ` Marc-Christian Petersen
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Robert Kurjata @ 2004-08-27 10:26 UTC (permalink / raw)
  To: lartc

Cytowanie Julian Anastasov <ja@ssi.bg>:

> 
> 	Hello,
> 
> On Fri, 27 Aug 2004, favero@grad.ufsc.br wrote:
> 
> > You mean that using NAT its impossible to do load balance or
> > this is the worng command? If its the wrong command, what´s
> > the right one?
> 
> 	Don't disappoint, you can check the following patches
> and howtos:
> 
> http://www.ssi.bg/~ja/#routes
> 
> > Tks A LOT for the response!
> > Fernando Favero
> 
> Regards
> 
> --
> Julian Anastasov <ja@ssi.bg>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> 

Hi, everybody again:)

As this subject comes and goes from time to time, I have some personal
observations. I'm personally using such a solution :)

Although this solution works perfectly (in bigger setup like few hundred
machines) it has some drawbacks. One of the biggest is that some applications
WILL NOT WORK. It doesn't just matter if it is connectionless or not, it just
depends on security flavour used by the internet side application.
For example I've found this:
1. Home Banking - typically online banks are verifying source IP of the
connecting client, so it just breaks almost every connection :(
2. phpBB - depending on setup, this forum also verifies the origin.
etc.

I've found some misunderstanding in letters at the list: If you use Julian's
patches and the script I've proposed single connection goes through single link
only! during single connection source address and source interface will not be
changed. But different connections with the same target can start from different
 interfaces and that is the source of problems mentioned above. If you login
with one source, get the page and in next connection try to get it from another
ip you are lost :(.

But not everything is lost - policy routing comes as a helper. You can route
some applications via only one connection. But this makes things more
complicated as some BW management may be needed, and performance decreases.

I can say that it works, because for me it works with 4 uplinks, but tuning the
correct settings took some time.

From my point of view using equal cost multipath routing blindly without
provider help is a bit complicated thing. But it is some kind of workaround when
you can't buy a bigger, single link.

PS. 
Sorry for this long long letter, but I hope it helps.

PS. 
Julian, thanks for linking my script mpath2.sh from your hotwo, as I haven't
got ocassion earlier :)

-- 
Robert Kurjata     mailto:rkurjata@ire.pw.edu.pl


-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [LARTC] RE: [LARTC] Load Balance simply doesn´t work...
@ 2004-08-26 13:06 Marcos Schonfeld
  2004-08-27  4:47 ` Ming-Ching Tiew
  2004-08-27  6:43 ` Julian Anastasov
  0 siblings, 2 replies; 8+ messages in thread
From: Marcos Schonfeld @ 2004-08-26 13:06 UTC (permalink / raw)
  To: lartc

Hi, I don't share your opinion. In fact, I worked hard to get all this
things working and finally it DOES work. I followed the explanation in
the LARTC-HOWTO in section 4.2:

ip route add $P1_NET dev $IF1 src $IP1 table 10
ip route add default via $P1 table 10
ip route add $P2_NET dev $IF2 src $IP2 table 20
ip route add default via $P2 table 20

ip route add $P1_NET dev $IF1 src $IP1  # This may be not necessary
ip route add $P2_NET dev $IF2 src $IP2  # This may be not necessary

## ip route add default via $P1  ## You don't have to set this default
gw, because you'll be routing accross this gateway instead of doing
load-balance

ip rule add from $IP1 table T1
ip rule add from $IP2 table T2

ip route add default scope global nexthop via $P1 dev $IF1 weight 1 \
	    nexthop via $P2 dev $IF2 weight 1

That's all, the last command is the default mutlipath gateway you will
route packets accross.
 
> 
> i´ve been searching for a load balance solution since a month 
> ago... what i can say is that it simply doesn´t work. I was 
> unable to find one guy that did it with sucess. When "load 
> balance" is the subject of the message on the list, the 
> message is simply ignored.
> So... if it doesn´t work... why LARTC don´t delete it from the 
> HOW TO and answer us with some "it simply doesn´t work... 
> give up man!". This can save the time of a lot of guys, 
> including me....
> Tks anyway
>

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-09-03  8:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-27 10:26 [LARTC] RE: [LARTC] Load Balance simply doesn´t work Robert Kurjata
2004-08-31 15:02 ` Marc-Christian Petersen
2004-08-31 15:32 ` Marc-Christian Petersen
2004-09-01  9:25 ` Marc-Christian Petersen
2004-09-03  8:29 ` Robert Kurjata
  -- strict thread matches above, loose matches on Subject: below --
2004-08-26 13:06 Marcos Schonfeld
2004-08-27  4:47 ` Ming-Ching Tiew
2004-08-27  6:43 ` Julian Anastasov

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.