Load Balancing !!!!!!! unsolved.

Taking care of your Linux box.
abdul_mateen
Battalion Havaldaar Major
Posts: 267
Joined: Tue Nov 18, 2003 10:28 am
Location: Rampuria Mansion
Contact:

Post by abdul_mateen »

Asslam-u-Alikum,
You have not understand.
I was saying that I have configured the network like larc manual.
But when I download some links are successful to get the bandwidth But some links are not getting the full bandwidth.
My problem is still the #1
Abdul Mateen,
Google Android Developer & Linux Administrator
Addictive Mobility,CA
www.addictivemobility.com.
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

the first step is for you to post your exact configuration. do not paraphrase. do not explain in your own words. post the exact configuration lines, output from iptables -nvL, everything. use the "code" tags.
abdul_mateen
Battalion Havaldaar Major
Posts: 267
Joined: Tue Nov 18, 2003 10:28 am
Location: Rampuria Mansion
Contact:

Post by abdul_mateen »

Asslam-u-Alikum


# ip route add default equalize hexthop via 10.10.0.1 dev eth0 weight 1 nexthop via 192.168.5.1 dev eth1 weight 1

#ip rule add from 192.168.5.2 table T1
#ip rule add from 10.10.1.32 table T2

#ip route add 10.0.0.0/8 src 10.10.0.32 table T2
#ip route add 192..168.5.0 src 192.168.5.2 table T1

this is stated in the larc manual.I have applied it and I have checked that For some sites on d4x It may be working but on the other sites only the one router is working.
Abdul Mateen,
Google Android Developer & Linux Administrator
Addictive Mobility,CA
www.addictivemobility.com.
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

ip route add default equalize hexthop via 10.10.0.1 dev eth0 weight 1 nexthop via 192.168.5.1 dev eth1 weight 1
sigh. when i asked for the exact lines, it's because i wanted to see them, not because i wanted this to be a pointless exercise. "hexthop"?

ok, do this. download this application, and make it executable. edit the file and change the first line to

Code: Select all

#!/usr/bin/env python
run it on some interface, like

Code: Select all

./linux-istats.py eth0
and see if its output works. on some systems, if you have ipv6 enabled, you need to edit it and change "lines[6]" to "lines[7]" in two places (it's obvious if you read the file).

open two windows, run linux-istats on eth0 in one window and eth1 in the other, and then try your downloads. what do you see?
abdul_mateen
Battalion Havaldaar Major
Posts: 267
Joined: Tue Nov 18, 2003 10:28 am
Location: Rampuria Mansion
Contact:

Post by abdul_mateen »

I am this output
#./linux-istats.py eth0
Traceback (most recent call last):
File "./linux-istats.py", line 65, in ?
if __name__ == '__main__': main(sys.argv[1:])
File "./linux-istats.py", line 62, in main
doit(args[0])
File "./linux-istats.py", line 28, in doit
basei = long(ltemp[1].replace('bytes:', ''))
ValueError: invalid literal for long(): txqueuelen:1000
Abdul Mateen,
Google Android Developer & Linux Administrator
Addictive Mobility,CA
www.addictivemobility.com.
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

is that after the edit?
abdul_mateen
Battalion Havaldaar Major
Posts: 267
Joined: Tue Nov 18, 2003 10:28 am
Location: Rampuria Mansion
Contact:

Post by abdul_mateen »

the same problem is occuring after editing or non-editing.
Abdul Mateen,
Google Android Developer & Linux Administrator
Addictive Mobility,CA
www.addictivemobility.com.
Xasir
Cadet
Posts: 11
Joined: Thu Jun 26, 2003 2:39 pm
Contact:

What u people telling him

Post by Xasir »

Listen

www.ultramonky.com

use
ldirestord and heartbeat
its easy to configure
abdul_mateen
Battalion Havaldaar Major
Posts: 267
Joined: Tue Nov 18, 2003 10:28 am
Location: Rampuria Mansion
Contact:

Post by abdul_mateen »

are u talking about clustering ?
does clustering solve my problem ?.

If it solves , It would like to know the solution.
Abdul Mateen,
Google Android Developer & Linux Administrator
Addictive Mobility,CA
www.addictivemobility.com.
abdul_mateen
Battalion Havaldaar Major
Posts: 267
Joined: Tue Nov 18, 2003 10:28 am
Location: Rampuria Mansion
Contact:

Post by abdul_mateen »

Asslam-u-Alikum,
dear lambda,
I am using that script after putting down eth0 and it is working then but If I do the eth0 up that script gives the error reported prevoiusly.

Should this script be applied after putting down eth0.
Abdul Mateen,
Google Android Developer & Linux Administrator
Addictive Mobility,CA
www.addictivemobility.com.
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

did you make the change to the "lines" variable like i mentioned?
abdul_mateen
Battalion Havaldaar Major
Posts: 267
Joined: Tue Nov 18, 2003 10:28 am
Location: Rampuria Mansion
Contact:

Post by abdul_mateen »

Thankx,
I have edited it and now it is working and showing the results.But what to do with the results.
Abdul Mateen,
Google Android Developer & Linux Administrator
Addictive Mobility,CA
www.addictivemobility.com.
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

you know, i told you everything you had to do several posts ago. it seems like i should limit my posts to one instruction each.

when i told you to try the istats program, i said three things:

- download it and change the first line
- if it doesn't work, change the lines variable
- tell us what you see when you download.

you did the first one, and then said it didn't work. when you asked again, and i reminded you about the second one, you changed it and got it to work. now you want to know what to do next.

so, i'll repeat what i said up above: run it on both interfaces and tell us what you see when you download.

it has taken us six days to reach this point. six days! if only you'd paid attention.
abdul_mateen
Battalion Havaldaar Major
Posts: 267
Joined: Tue Nov 18, 2003 10:28 am
Location: Rampuria Mansion
Contact:

Post by abdul_mateen »

Name In Out eth0 14210191 2177937
eth0 1584 0
eth0 1761 0
eth0 1002 71
eth0 1290 66
eth0 2136 78
eth0 7855 715
eth0 3569 2514
eth0 18988 792
eth0 8618 264
eth0 9844 520
eth0 9754 330
eth0 7554 264
eth0 7384 264
eth0 8560 264
eth0 9554 330
eth0 7887 264
eth0 8806 264
eth0 10365 330
eth0 9038 318
eth0 26368 73068
eth0 19543 37287
eth0 8107 264
eth0 8093 264
eth0 8690 330
eth0 9620 306
eth0 11161 264
eth0 8456 264
eth0 9971 330
eth0 8771 264
eth0 7750 264
eth0 9191 330
eth0 8452 264
eth0 10293 318
eth0 10782 330
eth0 9425 1421
eth0 8808 318
eth0 10234 330
eth0 8034 360
eth0 7370 264
eth0 11062 624
eth0 8470 264
eth0 9893 264
eth0 8858 264
eth0 10951 330
eth0 9729 548
eth0 8605 264
eth0 12792 669
eth0 9795 264
eth0 8950 264
eth0 9356 330
eth0 7439 264
eth0 11686 306
eth0 8176 264
eth0 9208 330
eth0 12019 2533
eth0 8058 264
eth0 9410 330
eth0 9063 264
eth0 7304 264
eth0 10359 613
eth0 9767 264
eth0 8713 306
eth0 8573 335
eth0 12409 372
eth0 13203 2383
eth0 9738 264
eth0 12255 330
eth0 8888 264
eth0 7872 497
eth0 11702 330
eth0 7754 264
eth0 8225 264
eth0 10985 264
eth0 9030 330
eth0 8931 264





Name In Out veth1 12008165 215947
veth1 3565 66
veth1 1603 0
veth1 1462 0
veth1 10566 330
veth1 11641 264
veth1 8516 264
veth1 5429 132
veth1 2683 0
veth1 1786 0
veth1 1511 42
veth1 2297 0
veth1 3936 0
veth1 3494 0
veth1 2368 0
veth1 2405 0
veth1 2204 0
veth1 2118 0
veth1 1516 0
veth1 3222 0
veth1 2262 0
veth1 3739 0
veth1 2954 0
veth1 3419 0
veth1 3473 0
veth1 2439 0
veth1 4555 0
veth1 3905 0
veth1 2968 0
veth1 1666 0
veth1 1613 0
veth1 5588 0
veth1 1918 0
veth1 1840 0
veth1 14438 396
veth1 3396 66
veth1 1960 0
veth1 3007 0
veth1 1248 0
veth1 2480 42
veth1 3803 0
veth1 2512 0
veth1 2412 0
veth1 4723 0
veth1 5248 0
veth1 3710 0
veth1 4777 0
veth1 2832 0
veth1 1578 0
veth1 4316 0
veth1 1698 0
veth1 2169 0
veth1 4543 0
veth1 1754 0
veth1 2967 0
veth1 4060 0
veth1 1134 0
veth1 1645 0
veth1 3858 0
veth1 1127 0
veth1 1443 0
veth1 4746 0
veth1 1609 0
veth1 2215 0
veth1 4394 0
veth1 1997 0
veth1 2668 0
veth1 4207 0
veth1 942 0
veth1 2825 0
veth1 3486 0
veth1 2471 0
veth1 2698 0
veth1 3676 0
veth1 1966 0
veth1 1831 0
veth1 3404 0
veth1 2457 0
veth1 1416 0
veth1 3554 0
veth1 1589 0
veth1 1262 0
veth1 3756 0
veth1 1517 0
veth1 1585 0
veth1 3818 0
veth1 1765 0
veth1 1240 0
veth1 3771 0
veth1 2017 0
veth1 1851 0
veth1 4566 0
veth1 1918 0
veth1 1743 0
veth1 3509 0
veth1 2421 1131
veth1 2405 0
veth1 3971 0
veth1 1334 0
veth1 1974 0
veth1 4555 0
veth1 2437 0
veth1 1640 0
veth1 3431 0
veth1 2055 0
veth1 2865 0
veth1 3280 0
veth1 2222 0
veth1 2151 0
veth1 4189 0
veth1 2163 0
veth1 2185 0
veth1 3117 0
veth1 1900 0
veth1 1853 0
veth1 3957 0
veth1 2583 0
veth1 1624 0
veth1 2923 66
veth1 1732 0
veth1 1610 0
veth1 3726 0
veth1 2359 0
veth1 1340 0
veth1 3197 1108
veth1 3641 0
veth1 13135 396
veth1 10543 330
veth1 9142 264
veth1 8330 330
veth1 9037 264
veth1 9438 330
veth1 7568 264
veth1 7357 264
veth1 9195 330
veth1 8227 1256
veth1 9431 330
veth1 8570 264
veth1 8797 330
veth1 7942 264
veth1 8184 264
veth1 8836 264
veth1 9419 330
veth1 7807 264
veth1 8608 264
veth1 9543 330
veth1 9018 264
veth1 9576 330
veth1 4363 66
veth1 3032 0
veth1 1672 0
veth1 1972 0
veth1 2401 0
veth1 1147 59
veth1 1760 287
veth1 2941 118
veth1 1707 177
veth1 3181 0
veth1 1726 902
veth1 2765 66
veth1 930 0
veth1 2453 0
veth1 1900 0
veth1 664 0
veth1 3511 0
veth1 2529 0
veth1 1788 0
veth1 2657 0
veth1 2300 0
veth1 2940 0
veth1 2675 0
veth1 2180 0
veth1 1399 0
veth1 2325 0
veth1 2404 0
veth1 2701 0
veth1 3710 1058
veth1 1467 0
veth1 1826 0
veth1 2881 0
veth1 2111 0
veth1 2148 0
veth1 2419 0
veth1 2597 0
veth1 1576 0
veth1 2599 0
veth1 3438 0
veth1 2154 0
veth1 2408 0
veth1 2471 0
veth1 1882 0
veth1 3575 0
veth1 1460 0
veth1 2547 1102
veth1 3498 0
veth1 3264 0
veth1 2201 0
veth1 2013 0
veth1 1621 0
veth1 2288 0
veth1 1488 0
veth1 2122 0
veth1 2776 0
veth1 1693 0
veth1 2203 0
veth1 2332 0
veth1 1996 0
veth1 1910 0
veth1 2988 0
veth1 2522 0
veth1 1309 0
veth1 1808 0
veth1 1869 0
veth1 1890 0
veth1 1085 0
veth1 3487 0
veth1 1680 0
veth1 1799 0
veth1 2170 0
veth1 1689 0
veth1 5108 0
veth1 2593 0
veth1 2104 0
veth1 1482 0
veth1 2458 0
veth1 1632 0
veth1 1690 0
veth1 1806 0
veth1 1903 0
veth1 13641 462
veth1 1296 0
Abdul Mateen,
Google Android Developer & Linux Administrator
Addictive Mobility,CA
www.addictivemobility.com.
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

looks like it uses both links, but mostly the first one. can you try reversing the order of the interfaces on the "ip route" line to see if it changes the behavior?
Post Reply