gpt4 book ai didi

aws-cloudformation - 在 CloudFormation 中为 AWS Load Balancer v2 配置连接耗尽

转载 作者:行者123 更新时间:2023-12-04 22:27:55 25 4
gpt4 key购买 nike

This blog post ( here specifically ) 详细介绍了如何使用 AWS::ElasticLoadBalancing::LoadBalancer 类型为“经典”版本 1 负载均衡器配置连接耗尽,如下所示:

"ElasticLoadBalancer": {
"Type": "AWS::ElasticLoadBalancing::LoadBalancer",
"Properties": {
"ConnectionDrainingPolicy": {
"Enabled": "true",
"Timeout": "300"
},
...
}
}

如何使用类型为 AWS::ElasticLoadBalancingV2::LoadBalancer 的版本 2 负载均衡器来执行此操作?

我的最佳猜测来自 the documentation是我应该使用 LoadBalancerAttributes,但我在 list of attributes here 中找不到与连接耗尽相关的任何内容.

最佳答案

在应用程序负载均衡器(ELB V2)中,它是使用 TargetGroups 配置的和 TargetGroupAttributes称为取消注册延迟,而不是连接耗尽。

deregistration_delay.timeout_seconds - The amount time for ElasticLoad Balancing to wait before changing the state of a deregisteringtarget from draining to unused. The range is 0-3600 seconds. Thedefault value is 300 seconds.

   TargetGroup:
Type: AWS::ElasticLoadBalancingV2::TargetGroup
Properties:
TargetGroupAttributes:
- Key: deregistration_delay.timeout_seconds
Value: '20'

关于aws-cloudformation - 在 CloudFormation 中为 AWS Load Balancer v2 配置连接耗尽,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49257224/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com