L5 - Autoscaling 2/2 Flashcards
(42 cards)
What are cooldown periods for policies?
- only after this time, breaches are handled again
What does predictive autoscaling have to do with an autoscaling group?
It determines proactively the minimum of the autoscaling group and thus increases resources.
What is a load balancer (LB)?
load balancer = single point of request and it then it is distributed across service instances
When is LB important?
In the case of multiple service instances.
Why do you need a LB to scale out?
Scaling out only works if all replicas are equally busy. LB is required to distribute requests.
goals of LB?
- efficient utilization of a set of resources
- exploit aggregated capacity of replicas to reduce response time and failure rate
- increase availability (LB performs health checks, restarts faulty replicas/instances)
- enables non-disruptive management (in case of provisioning and de-provisioning of resources)
Are there multi-layer LB?
Yes
How is LB implemented?
- instances are allocated to certain VMs by the load balancer
- the VMs are load balanced to servers
- the LBs on different levels should interact with each other and exchange information
What is the difference between static and dynamic LB?
- in static LB there is no feedback (e.g. weighted round robin)
- in dynamic LB there is feedback on the status of the servers
Dynamic LB Diagram
What are the two sub-categories of dynamic LB?
Distributed and non-distributed
What are the two sub-categories of distributed LB?
Cooperative and non-cooperative
What are the two sub-categories of non-distributed LB?
Central and semi-distributed
What is distributed LB?
Nodes collaborate
What is cooperative LB?
- nodes have the same goal (e.g. optimize memory)
What is non-cooperative LB?
- nodes have different goals
What is centralized LB?
- one central LB
What is semi-distributed LB?
Nodes are partitioned and one LB is responsible for partition.
4 approaches for web applications
- round-robin DNS
- DNS delegation
- Client-side random sampling
- Server-side load balancing
Round-robin DNS
- domain name is mapped to multiple IP addresses
- IP addresses are given to clients in RR fashion
name server
Name servers work as a directory that translates domain names into IP addresses.
DNS delegation
- structure domain (e.g. tum.de) in two zones
- each zone has it’s own name server
- DNS request is forwarded to both zones
- the one resolving the address first wins the request
What is DNS?
The Domain Name System (DNS) is the phonebook of the Internet. Humans access information online through domain names, like nytimes.com or espn.com. Web browsers interact through Internet Protocol (IP) addresses. DNS translates domain names to IP addresses so browsers can load Internet resources.
Client-side random sampling
- client receives a list of IP addresses
- it selects randomly one to connect to