Update the target group health settings for your Network Load Balancer
You can update the target group health settings for your target group as follows.
To update target group health settings using the console
Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/
. -
In the navigation pane, under Load Balancing, choose Target Groups.
-
Choose the name of the target group to open its details page.
-
On the Attributes tab, choose Edit.
-
Check whether cross-zone load balancing is turned on or turned off. Update this setting as needed to ensure that you have enough capacity to handle the additional traffic if a zone fails.
-
Expand Target group health requirements.
-
For Configuration type, we recommend that you choose Unified configuration, which sets the same threshold for both actions.
-
For Healthy state requirements, do one of the following:
-
Choose Minimum healthy target count, and then enter a number from 1 to the maximum number of targets for your target group.
-
Choose Minimum healthy target percentage, and then enter a number from 1 to 100.
-
-
Choose Save changes.
To modify target group health settings using the Amazon CLI
Use the modify-target-group-attributes command. The following example sets the healthy threshold for both unhealthy state actions to 50%.
aws elbv2 modify-target-group-attributes \ --target-group-arn arn:aws-cn:elasticloadbalancing:
region
:123456789012
:targetgroup/my-targets
/73e2d6bc24d8a067
\ --attributes Key=target_group_health.dns_failover.minimum_healthy_targets.percentage,Value=50 \ Key=target_group_health.unhealthy_state_routing.minimum_healthy_targets.percentage,Value=50