Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Round Robin algorithm

Posted on 1997-07-17
3
Medium Priority
?
948 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 100 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
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 goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

636 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