Load Balancing Flashcards
What is a load balancer?
spreads traffic across a cluster of servers
What are some benefits of using a load balancer?
improves responsiveness, availability
Where can I put load balancers?
- between user and web server
- between web server and internal platform layer
- between internal platform layer and database
Least Connection Method
directs traffic to server with fewest active connections
Least Response Time Method
directs traffic to server with fewest active connections and lowest average response time
Least Bandwidth Method
directs traffic to server that is currently serving the least amount of traffic, measured in mbps
mbps
megabits per second
Round Robin Method
cycles through a list of servers and sends each new request to the next server
Weighted Round Robin Method
designed to handle servers with different processing capacity. Servers with higher weights receive new connections first and more connections than those with lower weights
IP Hash Method
calculates a hash of the IP address to determine which server receives the request
When should you use the Least Connection Method?
when there are a large number of persistent connections unevenly distributed between the servers
When should you use the Round Robin Method?
when the servers are of equal specification and there are not many persistent connections
Smart Client
add LB algorithm to a client side application or database client
What are some benefits to a Smart Client implementation?
It’s easy to implement and manage for small systems
What are some tradeoffs with a Smart Client implementation?
when the system gets bigger it gets more complex and harder to manage, usually requires a standalone server