PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : einpaar stichworte.. Software Load balancing LAN



senseipetz
17.07.04, 16:45
Hat da jemand eine idee... Das ist derzeit das topthema und fast alle distributionen haben ab enterprise edition sowas dabei, aber gibt es etwas für den rest des marktes.. Wenn cih mir die besorgen würde, wäre es so legal, wie das kopieren von MS.

Was ich suche, ist in der Art wie WLBS(Windows Load Balancing Services). Unterm suse gibt es zwei, aber die sind nicht das richtige.. Wondershaper ist fürs internet und auch kein richtiger Load balancer, weil wenn ich surfe und gerade was fettes vom FTP ziehe, geht die leitung für die RestUser in den Keller.. und ANTS scheint mehr so eine Art Job Queue Sharing Manager.. Er verwaltet nur jobs, aber das lan ist kein Job.. Also.. Ideen meine Damen*grinz* sind gefragt...

emba
17.07.04, 18:43
ich lese immer vom projekt "lartc"

der artikel war auch interessant
3. Klaus J. Müller (je)
Verkehrsleitstelle
Erweitertes Routing mit Linux
Praxis,Policy Based Routing mit Linux,Linux 2.2, Extended Routing, Netzwerkbetrieb, Netlink, Policy Based Routing, iproute2, transparenter Proxy, iptables redirect
c't 2/04, Seite 192

greez

senseipetz
17.07.04, 19:01
Lies sich ganz nett, aber ist net so ganz das richtige.. Was ich suche, ist mehr vom Still her:

Client --> Server(default eth=0)
(Server kuckt( if eth0-trafic>80%; then trafic --> eth1;
if eth1-trafic>80%; then trafic --> eth2;
else eth0-trafic<80%; then eth0-trafic -->eth0;
fi
fi)
Server(eth=X) ---> Client;
Ende

Sowas gibt es zumindest für windows... Ich denke mal, dass es so kompliziert ja nicht sein kann... Oder.. denke ich etwas zu simple..

emba
17.07.04, 19:12
hm,

schau dir dann mal das bonding im kernel an

greez

senseipetz
17.07.04, 19:17
etwas einfacher dargestellt ist.. Im Indernet gab es zwar ein haufen *******e, aber nie so eine richtige.. Immer sowas von kompliziert, dass ich im halben system fummeln muss und vielleicht irgendwas verbiege.. Was ich erstmal brauche ist z.B. eine Beschreibung wie bei idealx und samba.. Da kansta erstmal es selber machen schritt für schritt und dann kannst du(wenn man es will) noch selber fummeln..

senseipetz
19.07.04, 13:54
Quelle: list.suse.com
First run Yast2 and configure your ethernet devices as DHCP so they create the
nice ifcfg-eth-id-<mac> files. The reason I used Yast is because it then creates
some UNIQUE id and sets the _nm_name which we are still working on what is used for.


Next modify each of your ifcfg-eth-id-<mac> files that you want to bond, they
are located in /etc/sysconfig/network, and change them from:


BOOTPROTO='dhcp'
MTU=''
REMOTE_IPADDR=''
STARTMODE='onboot'
UNIQUE='gZD2.ZqnB7JKTdX0'
_nm_name='bus-pci-0000:00:0b.0'


to:


BOOTPROTO='none'
STARTMODE='off'
UNIQUE='gZD2.ZqnB7JKTdX0'
_nm_name='bus-pci-0000:00:0b.0'


Be sure to leave the UNIQUE and the _nm_name alone. You can also leave in the
MTU and REMOTE_IPADDR as long as they are not set.


Next in /etc/sysconfig/network edit your ifcfg-bond0 file so it looks like the
following:


BOOTPROTO='static'
BROADCAST='172.16.0.255'
IPADDR='172.16.0.1'
MTU=''
NETMASK='255.255.255.0'
NETWORK='172.16.0.0'
REMOTE_IPADDR=''
STARTMODE='onboot'
BONDING_MASTER='yes'
BONDING_MODULE_OPTS='miimon=100'
BONDING_SLAVE0='eth1'
BONDING_SLAVE1='eth2'



Adjust the IP, BROADCAST, NETMASK, NETWORK accordingly for your configuration.
The new config options as you can see are BONDING_MASTER, BONDING-MODULE_OPTS,
BONDING_SLAVE. The BONDING_MODULE_OPTS is the additional options you want to
pass to the bonding module. You can not pass "max_bonds" as an option. This is
not needed as the ifup script will load the module for each bond needed.


Next is the BONDING_SLAVE. This tells ifup which ethernet devices to enslave to
bond0. So if you wanted to bond 4 ethernet devices you would add:


BONDING_SLAVE2='eth3'
BONDING_SLAVE3='eth4'


This can be a mix-match as well. As you notice I did not use eth0 in my bonding
as it is connected to a LAN and I am using eth1 and eth2 with cross-over cables
to connect to another machine. No need for an expensive gige switch.


If you want multiple bond's just create the individual ifcfg-bond files with
their specific info. Example being ifcfg-bond0, ifcfg-bond1, ifcfg-bond2. The
new ifup script searchs and loads everything needed from within the ifcfg-bond
file.

emba
19.07.04, 14:07
im linux-magazin 7/04 war das auch schön beschrieben

greez