Load Balancing Algorithms
Load Balancing Algorithms
- In Round robin requests are sent in sequence eg req1 to server1, req2 to server2, req3 to server3 and etc
- It can potentially overload servers if they are not properly monitored.
- In Sticky RR It tries to send subsequent requests from the same user to the same server
- Uneven loads can easily occur for newly arriving users are very high are assigned randomly
- Weighted RR allows admins to assign different weights or priorities to different servers.
- Servers with higher weights will receive a proportionally high number of requests.
- Weights must be manually configured by admins
- Hash function often uses clients IP address for determining where to route each request.
- Selecting optimal hashing is challenging
Dynamic Algorithms adapt in real time by taking active performance metrics and server conditions into account when distributing the requests.
It sends each new request to the server currently with least number of active connections or open requests.
- It sends incoming requests to the server with lowest current latency or fastest response time
- It requires constant monitoring which significantly overhead and introduces complexity
Comments
Post a Comment