Solved

Round Robin algorithm

Posted on 1997-07-17
3
921 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

776 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