具有多个负载均衡器的健康检查类型 ELB
Health Check Type ELB with multiple Load Balancers
假设我有两个负载平衡器,它们指向同一个服务器组但针对不同的服务(例如 Web 和内部队列)。两者都设置为 Health Check Type = ELB。
根据 AWS documentation 如果实例变得不健康,它将被终止并替换。
如果一个实例在两个 ELB 中只有一个变得不健康,会发生什么情况,它是否仍会被终止和替换?
是的。
https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-add-elb-healthcheck.html
Note that if you attach multiple load balancers to an Auto Scaling group, all of them must report that the instance is healthy in order for it to consider the instance healthy. If one load balancer reports an instance as unhealthy, the Auto Scaling group replaces the instance, even if other load balancers report it as healthy.
假设我有两个负载平衡器,它们指向同一个服务器组但针对不同的服务(例如 Web 和内部队列)。两者都设置为 Health Check Type = ELB。
根据 AWS documentation 如果实例变得不健康,它将被终止并替换。
如果一个实例在两个 ELB 中只有一个变得不健康,会发生什么情况,它是否仍会被终止和替换?
是的。
https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-add-elb-healthcheck.html
Note that if you attach multiple load balancers to an Auto Scaling group, all of them must report that the instance is healthy in order for it to consider the instance healthy. If one load balancer reports an instance as unhealthy, the Auto Scaling group replaces the instance, even if other load balancers report it as healthy.