一个 Auto Scaling 组的 AWS 多个 ELB
AWS multiple ELBs for a Auto Scaling Group
根据 AWS documentation,您可以将多个负载均衡器附加到单个 Auto Scaling 组。我认为 ELB 和 ASG 之间会有 1:1 关系。如果 ASG 缩放哪个 ELB,它会更新 - 全部。
这是如何工作的,用例是什么。
虽然您可以将多个负载均衡器附加到单个 Auto Scaling 组,但它很少被使用,特别是在 AWS 引入了支持路由规则(基于域和路径)并附加多个 SSL 的应用程序负载均衡器 (ALB) 之后单个负载均衡器功能的证书。
例如以前需要它的几个场景(在上面提到的新功能可用之前。)
- 如果您在 EC2 中有多个应用程序 运行(虽然不推荐)并且需要它们自己的 SSL 证书,则需要指向多个负载平衡器。
- 如果您有一个 Application Proxy Auto Scaling Group,它使用自己的 SSL 指向后端服务。
- EC2 内部应用程序的不同路径和端口映射(类似于第 1 点)
查看 AWS 文档,您可以将多个负载均衡器附加到一个 ASG。当 ASG 扩展时,所有负载均衡器都会知道新的 EC2 实例。
Auto Scaling integrates with Elastic Load Balancing to enable you to attach one or more load balancers to an existing Auto Scaling group. After you attach the load balancer, it automatically registers the instances in the group and distributes incoming traffic across the instances
link to above quote can be found here
就缩减而言,如果其中一个负载均衡器报告某个实例不健康,那么该实例将被视为不健康并最终终止。
If you configure your Auto Scaling group to determine health status using both EC2 status checks and Elastic Load Balancing health checks, Auto Scaling considers the instance unhealthy if it fails either the status checks or the health check. 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 Auto Scaling to consider the instance healthy. If one load balancer reports an instance as unhealthy, Auto Scaling replaces the instance, even if other load balancers report it as healthy
Link to above quote can be found here
我希望这能让事情更清楚一些。
根据 AWS documentation,您可以将多个负载均衡器附加到单个 Auto Scaling 组。我认为 ELB 和 ASG 之间会有 1:1 关系。如果 ASG 缩放哪个 ELB,它会更新 - 全部。 这是如何工作的,用例是什么。
虽然您可以将多个负载均衡器附加到单个 Auto Scaling 组,但它很少被使用,特别是在 AWS 引入了支持路由规则(基于域和路径)并附加多个 SSL 的应用程序负载均衡器 (ALB) 之后单个负载均衡器功能的证书。
例如以前需要它的几个场景(在上面提到的新功能可用之前。)
- 如果您在 EC2 中有多个应用程序 运行(虽然不推荐)并且需要它们自己的 SSL 证书,则需要指向多个负载平衡器。
- 如果您有一个 Application Proxy Auto Scaling Group,它使用自己的 SSL 指向后端服务。
- EC2 内部应用程序的不同路径和端口映射(类似于第 1 点)
查看 AWS 文档,您可以将多个负载均衡器附加到一个 ASG。当 ASG 扩展时,所有负载均衡器都会知道新的 EC2 实例。
Auto Scaling integrates with Elastic Load Balancing to enable you to attach one or more load balancers to an existing Auto Scaling group. After you attach the load balancer, it automatically registers the instances in the group and distributes incoming traffic across the instances
link to above quote can be found here
就缩减而言,如果其中一个负载均衡器报告某个实例不健康,那么该实例将被视为不健康并最终终止。
If you configure your Auto Scaling group to determine health status using both EC2 status checks and Elastic Load Balancing health checks, Auto Scaling considers the instance unhealthy if it fails either the status checks or the health check. 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 Auto Scaling to consider the instance healthy. If one load balancer reports an instance as unhealthy, Auto Scaling replaces the instance, even if other load balancers report it as healthy
Link to above quote can be found here
我希望这能让事情更清楚一些。