ElasticLoadBalancing LoadBalancer HealthCheck
The HealthCheck property configures health checks for the availability of your EC2 instances.
For more information, see
Configure Health Checks for Your Classic Load Balancer in the User Guide for Classic Load Balancers.
HealthCheck is a property of the AWS::ElasticLoadBalancing::LoadBalancer resource.
Syntax
JSON
{ "HealthyThreshold" :String, "Interval" :String, "Target" :String, "Timeout" :String, "UnhealthyThreshold" :String}
YAML
HealthyThreshold:StringInterval:StringTarget:StringTimeout:StringUnhealthyThreshold:String
Properties
HealthyThreshold-
Specifies the number of consecutive health probe successes required before moving the instance to the Healthy state.
Required: Yes
Type: String
Interval-
Specifies the approximate interval, in seconds, between health checks of an individual instance. Valid values are
5to300. The default is30.Required: Yes
Type: String
Target-
Specifies the instance's protocol and port to check. The protocol can be TCP, HTTP, HTTPS, or SSL. The range of valid ports is 1 through 65535.
Required: Yes
Type: String
Note
For TCP and SSL, you specify a port pair. For example, you can specify
TCP:5000orSSL:5000. The health check attempts to open a TCP or SSL connection to the instance on the port that you specify. If the health check fails to connect within the configured timeout period, the instance is considered unhealthy.For HTTP or HTTPS, you specify a port and a path to ping (
). For example, you can specifyHTTP or HTTPS:port/PathToPingHTTP:80/weather/us/wa/seattle. In this case, an HTTP GET request is issued to the instance on the given port and path. If the health check receives any response other than200 OKwithin the configured timeout period, the instance is considered unhealthy. The total length of the HTTP or HTTPS ping target cannot be more than 1024 16-bit Unicode characters. Timeout-
Specifies the amount of time, in seconds, during which no response means a failed health probe. This value must be less than the value for
Interval.Required: Yes
Type: String
UnhealthyThreshold-
Specifies the number of consecutive health probe failures required before moving the instance to the Unhealthy state.
Required: Yes
Type: String
