LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-05-2008, 11:47 PM   #1
ricky123
LQ Newbie
 
Registered: Dec 2007
Posts: 6

Rep: Reputation: 0
Load Balancing Between Servers


Hi there...

I have a network of 3 servers(LTSP servers)... one of which acts as the DHCP server for the network.

The clients are diskless machines(Thin Clients).

The IP address of the 3 servers are as follows..
192.168.14.1(DHCP+LTSP server)
192.168.14.193(LTSP server)
192.168.15.1(LTSP server)
I'm using ltsp4.2 and openSuSE10.2 on the servers.
Its a Class C network.

Please guide me on how to load balance between these 3 servers(HTTP requests as well as requests for running of softwares by clients).

I tried using Balance NG but cant figure out how to write the bng.conf file.

Also, is there an inbuilt load balancing feature provided by ltsp?

Can Linux Virtual Servers be of any help?? please tell me how to use it if possible.
 
Old 01-06-2008, 12:39 AM   #2
tbelote
Untangle
 
Registered: Jan 2008
Location: Mountain View, CA
Distribution: Ubuntu
Posts: 9

Rep: Reputation: 0
Multiple A records in DNS

An easy solution may be to just setup a DNS A records for each ip address pointing to one name.

Then use that dns name in the root path on the dhcp server and any where else where you specify the address of the LTSP server.

Make sense?
 
Old 01-06-2008, 03:49 AM   #3
ricky123
LQ Newbie
 
Registered: Dec 2007
Posts: 6

Original Poster
Rep: Reputation: 0
thanx .... but could u please tell me the exact procedure?
 
Old 01-06-2008, 06:37 AM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
We don't do other people's homework.
 
Old 01-06-2008, 08:27 AM   #5
esaym
Member
 
Registered: Nov 2006
Distribution: Lots of Debian
Posts: 165

Rep: Reputation: 32
Quote:
Originally Posted by AwesomeMachine View Post
We don't do other people's homework.
And why not?!


Anyway,
I'm not 100% sure but I think the dns way involves starting with a domain name (example.com) and then in the dns config you have it resolve to more than 1 IP address. So then it will kind of round robin the requests. But then you have the problem of trying to keep all the servers in sync with each other.


http://www.google.com/search?hl=en&q...22&btnG=Search
 
Old 01-07-2008, 01:32 AM   #6
tbelote
Untangle
 
Registered: Jan 2008
Location: Mountain View, CA
Distribution: Ubuntu
Posts: 9

Rep: Reputation: 0
dnsmasq

The DNS solution could work if your goal is just to balance the HTTP requests. For load balancing the DHCP server you would need something like the Linux HA project to detect when a server went down and replace it with a different DHCP server.

dnsmasq is an easy to configure DNS and DHCP server:
http://www.novell.com/products/linux...x/dnsmasq.html

Since it sounds like you already have a DHCP server modify /etc/dnsmasq.conf to disable dhcp on your network card:
no-dhcp-interface=eth0

Then add these entries to your /etc/hosts file on the DHCP/DNS server:
192.168.14.1 myltspserver.local
192.168.14.193 myltspserver.local
192.168.15.1 myltspserver.local

If your DHCP server is configured to have the leases use 192.168.14.1 as your DNS server (which it is now a DNS server with dnsmasq), running "host myltspserver.local" should now return the addresses of all three of the HTTP servers. Using myltspserver.local as the hostname for any HTTP service you want load balanced should now work.
 
Old 01-23-2008, 11:24 AM   #7
ricky123
LQ Newbie
 
Registered: Dec 2007
Posts: 6

Original Poster
Rep: Reputation: 0
thanx a lot... can u tell me about installing openmosix on the servers?(same network configuration).
 
Old 01-24-2008, 12:43 AM   #8
tbelote
Untangle
 
Registered: Jan 2008
Location: Mountain View, CA
Distribution: Ubuntu
Posts: 9

Rep: Reputation: 0
I am not very familiar with openmosix. Do you want these computers to function as general purpose desktop type computers part of the day and then an openmosix cluster the rest of the time? This may be somewhat tricky since you may have to compile your own kernel with openmosix to get it to work with a distribution that has all the other applications you want.


I have played around with openmosix a little bit using a live cd:

http://openmosix.sourceforge.net/ins..._clusters.html

If you just have a common application or one special program you want to run on a bunch of computers that are semi dedicated to the cluster then the live CD is a very easy way to go. Some of the live CD distros will be do netbooting for you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux-based load balancers with sticky connections (for balancing Terminal Servers) ? lumix Linux - Networking 2 01-22-2008 01:23 PM
Load Balancing laurent01 Linux - Networking 6 02-22-2006 02:38 PM
Load Balancing? gsibble Linux - Networking 3 12-09-2003 10:39 PM
same: load balancing of mail servers. bswrj Linux - General 1 05-12-2003 07:41 AM
project on Load balancing of Mail servers deepagodkhindi Linux - Newbie 5 04-30-2003 02:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration