fix(elbv2): admit new targets after one successful health check (#6507)

* fix(elbv2): admit new targets after one successful health check

Preserve recovery thresholds and verify initial admission against a real HTTP target.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* fix(elbv2): scope initial health admission to application targets

Preserve network and gateway target-group health thresholds.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* fix(elbv2): retain initial health checking reason

Preserve the intermediate reason for network and gateway targets below their success threshold.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
This commit is contained in:
Andre Kurait authored and GitHub committed 2026-10-25 09:30:22 -04:00
1 parent 4244e64833
commit 985a2ea949
4 files changed
+158 -6

No files matched your search

+1
View File
@@ -102,6 +102,7 @@ Gateway Load Balancer listeners require omitted `Port` and `Protocol` fields on
- Gateway listeners require `Protocol` and `Port` to be omitted on create and modify. Their control-plane response reports `GENEVE` without a port. CloudFormation preserves omitted gateway listener settings on create and update; other load balancer types retain their existing `HTTP` and port 80 defaults.
- Instance targets are resolved through EC2 instance private addresses so local load balancer traffic can reach containers.
- Target health starts in `initial` state with reason `Elb.RegistrationInProgress` and is updated by Floci's health checker when monitoring is active.
- A newly registered Application Load Balancer target (HTTP/HTTPS target group or Lambda target) becomes healthy after its first successful check. Network and Gateway target groups retain `HealthyThresholdCount` for initial admission. The threshold applies to every group when recovering from `unhealthy`.
- Health checks probe the target group's `HealthCheckPort` when it is a port number, and each target's own port when it is `traffic-port` (the default).
- Each `CreateListener` automatically creates an immutable default rule (`priority=default`, `isDefault=true`). This rule cannot be deleted; use `ModifyListener` to change its action.
- Rule priorities are unique per listener: `CreateRule` and `SetRulePriorities` only reject a priority held by another rule on the same listener. `SetRulePriorities` is atomic: all priority assignments are validated before any change is committed.