Load Balancing Flashcards

1
Q

What is a load balancer?

A

spreads traffic across a cluster of servers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are some benefits of using a load balancer?

A

improves responsiveness, availability

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Where can I put load balancers?

A
  • between user and web server
  • between web server and internal platform layer
  • between internal platform layer and database
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Least Connection Method

A

directs traffic to server with fewest active connections

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Least Response Time Method

A

directs traffic to server with fewest active connections and lowest average response time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Least Bandwidth Method

A

directs traffic to server that is currently serving the least amount of traffic, measured in mbps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

mbps

A

megabits per second

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Round Robin Method

A

cycles through a list of servers and sends each new request to the next server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Weighted Round Robin Method

A

designed to handle servers with different processing capacity. Servers with higher weights receive new connections first and more connections than those with lower weights

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

IP Hash Method

A

calculates a hash of the IP address to determine which server receives the request

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

When should you use the Least Connection Method?

A

when there are a large number of persistent connections unevenly distributed between the servers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

When should you use the Round Robin Method?

A

when the servers are of equal specification and there are not many persistent connections

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Smart Client

A

add LB algorithm to a client side application or database client

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are some benefits to a Smart Client implementation?

A

It’s easy to implement and manage for small systems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are some tradeoffs with a Smart Client implementation?

A

when the system gets bigger it gets more complex and harder to manage, usually requires a standalone server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Hardware Load Balancer

A

highly performant, hardware solution like Citrix NetScalar, generally used as a first point of contact for user requests and use other approaches for balancing traffic within the network

17
Q

What are some benefits to a Hardware Load Balancer?

A

highly performant

18
Q

What are some tradeoffs with a Hardware Load Balancer?

A

expensive and difficult to configure

19
Q

Software Load Balancer

A

hybrid of a smart client and hardware load balancer. run on the same machine as the client or server application and acts as a proxy, so every request coming into the application will be received and passed to the backend service in an efficient way