ELB and ASG Flashcards

1
Q

Availability, Scalability and Elasticity

A

Availability = Running your application in at least two AZs
Scalability = Application can take greater loads either by increasing the size (verticle) or add more instances (horizontal)
Elasticity = Same as horizontal scalability

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

ELB

A

Spread load across more than 1 instance based on incoming traffic
TYPES
1. Application Load Balancer (Layer 7)(HTTP/HTTPS, uses DNS or URL)
2. Network Load Balancer (Layer 4) (TCP/UDP, users Static IP)
3. Gateway Load Balancer (Layer 3, GENEVA, used for intrusion detection and routes to third party security virtual appliances before sending it to EC2)

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

ASG

A

ASG scale out (add) and scale in (remove) the EC2 instance based on load
We have to set minimum and maximum number of EC2 beforehand.

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

ASG Strategies

A

Manual scaling - Update the size manually
Condition based scaling -
1. Simple step scaling
e.g. When all my EC2 instance goes over 70% for five minutes, then add two units to capacity to my ASG
2. Target tracking scaling
e.g. I want the average CPU utilization of all the EC2 instances in my ASG to stay at around 40% on average
3. Scheduled Scaling
e.g. Increase the minimum capacity to 10 EC2 instances in my ASG
at 5pm on Friday
4. Predictive scaling
e.g. using ML to predict the pattern and scale

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