Skip to contentSkip to conversation

load balancing and failover

LARTC Payal Rathod 5 participants 9 messages Feb 9, 2006 – Feb 12, 2006

lore
Share & tools
lore
#0 lore raw

Hi,
A friend of mine has 2 lines of 512kbps terminated in two Linux boxes. He now want to remove those 2 boxes and have some device which will loadbalance the two ISPs and also have a failover arrangement. But he has agreed to give me a chance to do it on Linux for my own satisfication.
Is this easy to do with lartc? How do I go about it exactly? I have very less time to do it since his whole network will be done for that time and I cannot afford to play for long time. Is it worth trying it with lartc for academic sake atleast?
Can someone suggest some easy steps?
With warm regards,
-Payal
p.s. Is lartc.org down?
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#1 lore raw
Quoted 6 lines · Payal Rathod

Hi,
A friend of mine has 2 lines of 512kbps terminated in two Linux boxes. He now want to remove those 2 boxes and have some device which will loadbalance the two ISPs and also have a failover arrangement. But he has agreed to give me a chance to do it on Linux for my own satisfication.

Quoted 8 lines

Is this easy to do with lartc? How do I go about it exactly? I have very less time to do it since his whole network will be done for that time and I cannot afford to play for long time. Is it worth trying it with lartc for academic sake atleast?
Can someone suggest some easy steps?
With warm regards,
-Payal
p.s. Is lartc.org down?

You can try out implementing configuring a load balancing and failover system referring to the following documents:

http://www.ssi.bg/~ja/nano.txt
http://www.ssi.bg/~ja/dgd-usage.txt

You will need to patch and recompile the linux kernel using the "routes" patch given at http://www.ssi.bg/~ja/#routes for dead gateway detection to work.

The load balancing part works fine but dead gateway detection (and hence failover) does not work always. It works best when your first hop gateway is down but may or may not work when a subsequent hop is down. In a recent case, I observed that dead gateway detection and the failover was working very well when one ISP failed but did not happen when the other one went down. So you can try your luck here.

--
Manish Kathuria
http://www.tuxspace.com/

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#2 lore raw
In reply to Payal Rathod
Quoted 5 lines · Manish Kathuria

You can try out implementing configuring a load balancing and failover system referring to the following documents:

http://www.ssi.bg/~ja/nano.txt
http://www.ssi.bg/~ja/dgd-usage.txt

Sigh!!!!!!!! I thought it must be very easy with lartc. Also, I cannot patch the kernel. It is a live system and the person there will definitely kill me if I even ask him.

Payal
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#3 lore raw
In reply to Payal Rathod
Quoted 9 lines · Payal Rathod
Quoted 5 lines · Manish Kathuria

You can try out implementing configuring a load balancing and failover system referring to the following documents:

http://www.ssi.bg/~ja/nano.txt
http://www.ssi.bg/~ja/dgd-usage.txt

Quoted 9 lines

Sigh!!!!!!!! I thought it must be very easy with lartc. Also, I cannot patch the kernel. It is a live system and the person there will definitely kill me if I even ask him.

Payal

.

It is actually easy. The LARTC How To does not take care of failover but load balancing works fine. So if you want just load balancing you can go with it. You can also try out any of the following approaches / scripts:

http://yesican.chsoft.biz/lartc/MultihomedLinuxNetworking.html
http://www.burnpc.com/website.nsf/all/FE5F4F294F508EB786256E600019BC30
http://www.linux.com.lb/wiki/index.pl?node=Load%20Balancing%20Across%20Multiple%20Links
http://www.initzero.it/products/opensource/izbalancing/download/izbalancing
http://routeskeeper.sourceforge.net/Routeskeeper/

But nano.txt is probably the best way out.

You can get hold of a spare system or a hard disk and move it there after you set it up.

--
Manish Kathuria
http://www.tuxspace.com/
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#4 lore raw
In reply to Payal Rathod
Quoted 4 lines · Manish Kathuria

It is actually easy. The LARTC How To does not take care of failover but load balancing works fine. So if you want just load balancing you can go with it. You can also try out any of the following approaches / scripts:

Thanks for the links. They will make excellent reading. He has prper lease lines and so I thought it will be a piece of cake to do it in Linux. Guess I have to eat my words ;)
With warm regards,
-Payal
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#5 lore raw
In reply to Payal Rathod
Quoted 14 lines · Payal Rathod

Hi,
A friend of mine has 2 lines of 512kbps terminated in two Linux boxes. He now want to remove those 2 boxes and have some device which will loadbalance the two ISPs and also have a failover arrangement. But he has agreed to give me a chance to do it on Linux for my own satisfication.
Is this easy to do with lartc? How do I go about it exactly? I have very less time to do it since his whole network will be done for that time and I cannot afford to play for long time. Is it worth trying it with lartc for academic sake atleast?
Can someone suggest some easy steps?
With warm regards,
-Payal

Probably you are in over your head. Have a look at these and decide for yourself:
http://linux-ha.org/

http://www.ssi.bg/~ja/

http://www.geocities.com/mctiew/ffw/dual.htm

http://muse.linuxmafia.org/netsane/

Quoted 1 line

p.s. Is lartc.org down?

No, it just does not resolve. Check this list from a couple of days ago for the IP but it is dynamic so it may have changed since that posting. --
gypsy
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#6 lore raw
In reply to Payal Rathod
Quoted 6 lines · Manish Kathuria
Quoted 5 lines · Payal Rathod
Quoted 3 lines · Manish Kathuria

You can try out implementing configuring a load balancing and failover system referring to the following documents:

Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

http://www.ssi.bg/~ja/nano.txt
http://www.ssi.bg/~ja/dgd-usage.txt

Sigh!!!!!!!! I thought it must be very easy with lartc. Also, I cannot patch the kernel. It is a live system and the person there will definitely kill me if I even ask him.

I made a script that uses a simple conf file and allows quite a lot of work to be done in minutes. You can give it a chance even thought I guess you need a basic knowledge of what you are doing (eg: what 'ip rule' does):
http://www.tksq.org/iprt2

There is also a man page with some examples

I don't even know if other such script exists, so I'm not pretending this is any better that others. It is just wat fitted to my need.

A nice option is to test links using tables to force packets to choose one particular link. In a way this allows for an easy script that tests the link/route (without a kernel patch) and takes decision in case the link is down. To achieve thi I use mangle feature (OUTPUT) + ip rule fwmark.

I wrote to this list some days ago on this purpouse, becouse kernel does not always seem to understand wich ip should attach to the packets (this is my compehension, at least ;-).

sandro
*:-)

Signature · 7 lines
Sandro Dentella  *:-)
e-mail: [email protected] 
http://www.tksql.org                    TkSQL Home page - My GPL work
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
#7 lore raw
In reply to Payal Rathod

On Saturday 11 February 2006 04:08, Sandro Dentella wrote:
<snip>

Quoted 4 lines

I made a script that uses a simple conf file and allows quite a lot of work to be done in minutes. You can give it a chance even thought I guess you need a basic knowledge of what you are doing (eg: what 'ip rule' does):
http://www.tksq.org/iprt2

$ host www.tksq.org
www.tksq.org does not exist, try again
Signature · 7 lines
Jason Boxman
http://edseek.com/ - Linux and FOSS stuff

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
#8 lore raw
In reply to Payal Rathod
Quoted 9 lines · Jason Boxman

On Saturday 11 February 2006 04:08, Sandro Dentella wrote:
<snip>

Quoted 4 lines

I made a script that uses a simple conf file and allows quite a lot of work to be done in minutes. You can give it a chance even thought I guess you need a basic knowledge of what you are doing (eg: what 'ip rule' does):
http://www.tksq.org/iprt2

$ host www.tksq.org
www.tksq.org does not exist, try again

Sorry, tksql:
http://www.tksql.org/iprt2

*:-)
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc