Amazon web services 如何设置AWS上ALB的排放超时
我正在查看这些针对经典负载平衡器的说明: 我想为我们的ALB运行此命令:Amazon web services 如何设置AWS上ALB的排放超时,amazon-web-services,load-balancing,amazon-elb,Amazon Web Services,Load Balancing,Amazon Elb,我正在查看这些针对经典负载平衡器的说明: 我想为我们的ALB运行此命令: aws elb modify-load-balancer-attributes --load-balancer-name ikg-api-stage-lb --load-balancer-attributes '{"ConnectionDraining":{"Enabled":true,"Timeout":300}}' 但当我运行它时,我得到: 调用时发生错误(LoadBalancerNotFound) Modif
aws elb modify-load-balancer-attributes --load-balancer-name ikg-api-stage-lb --load-balancer-attributes '{"ConnectionDraining":{"Enabled":true,"Timeout":300}}'
但当我运行它时,我得到:
调用时发生错误(LoadBalancerNotFound)
ModifyLoadBalancerAttributes操作:没有活动负载
名为“ikg api阶段lb”的平衡器
可能是因为该命令仅适用于ALB的经典LBs?,您需要将此值应用于与ALB关联的目标组,以便他们可以在目标的注销过程中设置执行连接排空。所以会是这样的
aws elbv2 modify-target-group-attributes --target-group-arn arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067 --attributes Key=deregistration_delay.timeout_seconds,Value=600
参考-