Last chance! 50% off unlimited learning
Sale ends in
Specifies the health check settings to use when evaluating the health state of your EC2 instances.
elb_configure_health_check(LoadBalancerName, HealthCheck)
[required] The name of the load balancer.
[required] The configuration information.
svc$configure_health_check( LoadBalancerName = "string", HealthCheck = list( Target = "string", Interval = 123, Timeout = 123, UnhealthyThreshold = 123, HealthyThreshold = 123 ) )
For more information, see Configure Health Checks for Your Load Balancer in the Classic Load Balancers Guide.
# NOT RUN {
# This example specifies the health check settings used to evaluate the
# health of your backend EC2 instances.
svc$configure_health_check(
HealthCheck = list(
HealthyThreshold = 2L,
Interval = 30L,
Target = "HTTP:80/png",
Timeout = 3L,
UnhealthyThreshold = 2L
),
LoadBalancerName = "my-load-balancer"
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab