Files
floci/.github/ci
Priamo Germosen d5c37bf56b feat(elbv2): give load balancers addresses of their own in their VPC (#9947)
With floci.services.elbv2.addresses-in-vpc on, each Application and Network
Load Balancer gets a node in each of its subnets, as Elastic Load Balancing
"creates a load balancer node in each zone that you specify" and a load
balancer "has one IP address per enabled Availability Zone". So two load
balancers can both listen on 443, a TCP listener needs no port of its own on
Floci's address, and a listener on a port Floci holds itself is served too.

- Each node is a relay container at an address EC2 leases from the subnet
  (VpcAddressRelays, with one forward per listener port). It forwards each
  port to a socket of that listener's own on Floci, which serves that
  listener alone: HTTP needs no Host header to pick it, HTTPS terminates
  with the listener's certificates and reloads them when they change, and
  TCP relays as on the shared port.
- ElbV2Service serves the nodes after every change to a load balancer's
  subnets or listeners and at restart, under a per-load-balancer lock, so
  the last change's listeners are the ones served. A node's relay id
  follows from the load balancer and subnet; only its address is kept, on
  the Availability Zone entry, so a restart serves it at the same address.
  SetSubnets removes the nodes of subnets left behind, and a delete removes
  them all.
- Floci's DNS server answers the load balancer's name with its node
  addresses, a node's own <zone>.<name> with that node's, and a Route 53
  alias to the load balancer with its nodes (a Network Load Balancer's
  included), with the 60 second TTL the ELB user guide gives.
- The listener ports on Floci's address keep working as before.

The setting needs Docker-backed VPC networks and does nothing in mock mode.
A Gateway Load Balancer gets no nodes.

Closes #5870
2026-12-01 22:13:32 -04:00
..