Solved

Round Robin algorithm

Posted on 1997-07-17
3
926 Views
Last Modified: 2009-07-29
Does anyone have an example of how to do load balancing for a client/server application among multiple servers?

I don't need code, just details.
0
Comment
Question by:vinniew
3 Comments
 
LVL 5

Expert Comment

by:yonat
ID: 1165262
0
 
LVL 3

Author Comment

by:vinniew
ID: 1165263
It's close, but I'm looking for the other ways to do it.  CORBA isn't easy to work with.
0
 

Accepted Solution

by:
kthorpe earned 50 total points
ID: 1165264
I have developed such a system.
The first question you need to ask yourself is what constitutes
load. You may consider as I did # of connections. I am using IP to implement my client/server app. for load leveling

1. The machines load level must be globally availble when each
connection is made.
2. Each server must indicate to each other server in a group what its load level is. This can be done with a different port for different groups of service. then broadcast load level over the port when it changes
3. Each server knows the load level of every other server in a table.
4. The client may broadcast a message requesting a server, the least loaded server responds with its address. thus providing the information to initiate a socket.

Note item four can be moved as a separate application or service supplied in one of the servers in the service group. this hides some of the specifics from the client. This app would then have to act as a pass through for connections and you lose some of your fault tolerance if your group service server dies.
Contact me with further info at kthorpe@sdt.com
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question