Reputation: 524
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?
Upvotes: 3
Views: 1846
Reputation: 636
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.
Upvotes: 2
Reputation: 31
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 distance
between them, policies of sub-networks between them, medium of data transmission between them etc. and after doing so we try to relocate/refer the connections to that server which gives the overall minimum cost of the connections.
Upvotes: 3