There are 10 servers of a particular organization . Give some load-balancing algorithm for it. Also consider a case where 1 of the server takes 10 sec to process a request and other takes only 1 sec. So, how will you manage this bottleneck?
|
|
|||||||||
|
|
There are several ways of doing so but one of the best way is LOAD BALANCING BY COST.
In this type of balancing we assign a cost to each connection from client to server on the basis of the |
|||||||||
|
|
May be a simple solution is: Out of every 10 tasks, assign the 1st one to the server that takes 10 sec. The next 9 tasks goes to the server that takes 1 sec. Of course, here I assume tasks are coming in at 1 sec intervals as an assumption. With that assumption and above approach both the servers are fully utilized. |
|||
|
|