Solved

Round Robin algorithm

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

762 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now