Setting up Health Checks
Learn what health checks are and how they help with scalability and high availability.
We briefly talked about the output of the create-load-balancer
command and that it contained some information regarding health checks. Let’s take a look at it again. This was the output from the create-load-balancer
command:
Press + to interact
{"TargetGroups": [{"TargetGroupArn": "arn:aws:elasticloadbalancing:us-east-2:970721244190:targetgroup/wordpress-instances/f90da387759cfd22","TargetGroupName": "wordpress-instances","Protocol": "HTTP","Port": 80,"VpcId": "vpc-0b9d694685a2ca2ee","HealthCheckProtocol": "HTTP","HealthCheckPort": "traffic-port","HealthCheckEnabled": true,"HealthCheckIntervalSeconds": 30,"HealthCheckTimeoutSeconds": 5,"HealthyThresholdCount": 5,"UnhealthyThresholdCount": 2,"HealthCheckPath": "/","Matcher": {"HttpCode": "200"},"TargetType": "instance","ProtocolVersion": "HTTP1","IpAddressType": "ipv4"}]}
As we can see, there is a whole section related to health checks, even though we didn’t configure ...
Get hands-on with 1400+ tech skills courses.