如何像ansible中的负载均衡器目标组的AWS控制台中那样配置慢启动持续时间?
我当前正在使用elb目标组模块从ansible:https://docs.ansible.com/ansible/latest/modules/elb_target_group_module.html
而且我想按如下所述设置慢启动:https://docs.aws.amazon.com/en_en/elasticloadbalancing/latest/application/load-balancer-target-groups.html#slow-start-mode
例如:
# Create a target group with instance targets
- elb_target_group:
name: mytargetgroup
protocol: http
port: 81
vpc_id: vpc-01234567
slow_start_duration: 30
health_check_path: /
successful_response_codes: "200,250-260"
targets:
- Id: i-01234567
Port: 80
- Id: i-98765432
Port: 80
state: present
wait_timeout: 200
wait: True
进入目标组的“描述”选项卡,向下滚动:编辑属性。在那里,您将拥有Slow start duration。