Skip to content

Multi-interface EFA launch fails late at AllocateAddress when the region's Elastic IP limit is reached; preflight could catch it #1233

Closed

Description

@scttfrdmn

Seen: scttfrdmn/adit G2, us-west-2, 2026-10-20, spawn built from #1206. With 8 multi-card instances (one launch Elastic IP each) plus 2 addresses from other work, the 9th c8gn.48xlarge launch reached running and then failed at AllocateAddress (AddressLimitExceeded; the limit is 10 per region). spawn correctly terminated the box, but the instance had already launched and billed, and the only message was the AWS error.

Ask:

  • When the launch will need an Elastic IP (more than one interface), preflight the region's vpc-max-elastic-ips against the addresses in use, and refuse before RunInstances with a clear message, e.g. "10 of 10 Elastic IPs in use in us-west-2".
  • Suggest --efa-interfaces 1, which needs no Elastic IP: with one interface EC2 assigns the public IP itself. That workaround is what I used.

Activity

  1. scttfrdmn commented on Oct 23, 2026

    @scttfrdmn
    ContributorAuthor

    Fixed by #1206 (5253841), released in v0.138.0. This report came from a build of that PR before it merged.

    When --efa uses more than one interface, spawn launch now checks the region's Elastic IP headroom against the vpc-max-elastic-ips quota (L-0263D0A3) before RunInstances. It refuses, with the count in use and a pointer to --efa-interfaces 1, when there are not enough for every instance of the launch (--count):

    • cmd/launch_single.go: preflightElasticIPQuota
    • pkg/aws/eip_quota.go: ElasticIPQuotaInRegion, CheckElasticIPHeadroom

    The preflight is on the spawn launch path. If a job array or sweep with multi-interface EFA hits the same wall, please reopen with the command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions