Auto-scaling Flashcards

1
Q

What is a vertical scaling? What are the advantages and disadvantages?

A

(scaling up)It is increasing the capacity of a single service by increasing its resources.
advantages :
No design changes must be done.
easy to replace a resource.
disadvantages:
more powerful resource is more expensive
changing resource leads to interrupts
resource capacity is limited

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

What is a horizontal scaling? What are the advantages and disadvantages?

A

(scaling out)Increase the capacity of a service by adding more instances.
advantages:
no requirement for more powerful resources.
disadvantages:
more resources means more management overhead.
Horizontal scaling requires a distributed software architecture.

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

Name the 3 auto-scalling approaches and explain each.

A

Reactive:
Detect under/over loaded service and scale in and out
Scheduled:
Policy specifies scaling events (timestamp scaling actions) and apply scaling actions at appropriate time.
Predictive:
Predict the future workload and scale ahead of time.

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

What are the goal of load balancing?

A

1.To utilize a set of resources in an efficient way.
2.to use the aggregated capacity of replicas to reduce response time
3.increase availability

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

What are the 2 load balancing types and what is the difference?

A

Static and dynamic load balancing.
Dynamic will report the status.

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

Mention and explain the types of dynamic load balancers.

A

A dynamic load balancer can be distributed or non distributed .
A distributed load balancer is when the nodes collaborate.
There are 2 types of distributed load balancer: Cooperative and non-Cooperative
Cooperative is when they have same goal and non-Cooperative is when they have different goals.

Non-distributed load balancer can be centralized or semi-distributed.
Centralized is one central LB.
semi-distributed is when the nodes are partitioned and one LB is responsible for partition

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

What load balancing algorithm do you know?

A

1.(weighted)Round robin: distributes to servers in round robin
2.(weighted)least connection: distributes to servers with least number of active connections
3.resouce based: CPUload of servers is taken into account
4.weighted response time: the weights are the response time of a health check

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