我可以为 AWS 负载均衡器添加动态条件以自动添加新实例吗?
Can I add a dynamic condition for AWS load balancer to automatically add new instances?
有没有办法为 EC2 实例分配特定标签以自动附加到 AWS 上的负载均衡器?
我相信我过去曾这样做过,但现在找不到那个选项。
既然你说你过去做过,我相信你正在考虑 EC2 自动缩放组 (ASG) 提供的功能。 ASG 是 EC2 基础设施的一项功能,它可以根据工作负载增加和减少机器数量,或者始终保持一定数量的健康实例 运行(销毁和替换失败的实例)。当 ASG 附加到负载均衡器时,由 ASG 控制的实例会自动从均衡器注册和注销。
Amazon 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.
https://docs.aws.amazon.com/autoscaling/ec2/userguide/attach-load-balancer-asg.html
有没有办法为 EC2 实例分配特定标签以自动附加到 AWS 上的负载均衡器? 我相信我过去曾这样做过,但现在找不到那个选项。
既然你说你过去做过,我相信你正在考虑 EC2 自动缩放组 (ASG) 提供的功能。 ASG 是 EC2 基础设施的一项功能,它可以根据工作负载增加和减少机器数量,或者始终保持一定数量的健康实例 运行(销毁和替换失败的实例)。当 ASG 附加到负载均衡器时,由 ASG 控制的实例会自动从均衡器注册和注销。
Amazon 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.
https://docs.aws.amazon.com/autoscaling/ec2/userguide/attach-load-balancer-asg.html