ELB & AGS Flashcards
ELB vs ASG
“ELB - distributes the traffic load across available target groups.
ASG - increases or decreases the number of available instances in a group as per the scaling policy.”
On ASG what is the launch configuration?
The template used to launch EC2 instances such as AMI, type, key pair, etc
When can you modify a launch configuration?
only upon creating it. You can use an existing launch configuration as the basis for a new launch configuration.
What are the default metric types for an ASG?
"Application load balancer request count per target Average CPU Utilization Average Network in (and out) Disk reads in (and out) Disk read operations (and writes)"
When does an unhealthy EC2 get spun down and replaced?
After the ELB health check completes and the health check grace period expires
What is the ASG default termination policy?
“Most EC2s with at least one that is not protected
> tie looks for the oldest launch configuration
> tie goes to the next closest billing hour
> tie goes to random between these”
What are the target health status’s?
“initial - load balancer is regerstering the target or performing initinal health check
healthy - target is healthy
unhealthy - target did not respond to a health check or failed one
unused - target is not registered with a target group, the group is not used ina listener rule of target in AZ not enabled for ELB
draining - target is deregistered and connection draining in progress”
What can cause unhealthy status?
"a security group does not allow traffic a NACL does not allow traffic the ping path does not exist the connection times out the target did not return a successful response code"
What is the application load balancer feature?
“ELB feature
Allows developer to configure and route incoming end-user traffic to applications based in the AWS public cloud, pushed across multiple targets in multiple AZs
Cross-zone load balancing is always enabled”
What is the cross-zone load balancing feature?
Allows work loads to be balanced across multiple AZs via nodes that are established in each AZ
What monitoring features can you use with ELB?
“CloudWatch metrics
Access Logs
Request tracking
CloudTrail Logs”
With what identifier do you register a target with an ELB?
“instance - identified by instance ID(different than the ARN)
ip - specified by the IP address of the resource”
ELB vs ALB
“ELB - routes to a particular pool of homogeneous servers
ALB - routes to unique servers based on the content of the request”
Auto scaling groups default wait period?
adding lifecycle hooks to an auto scaling group puts the instance into a weight State before termination. during this way to State you can perform custom activities the default wait period is 1 hour.
what is an auto scaling group cooldown timer
a designated time so the scaling activity may be able to fully take effect and finish its process