Skip to content

Cherry-pick #755: Split launch batches rejected for exceeding the network interfaces allowed per RunInstances request - #760

Open
github-actions[bot] wants to merge 1 commit into
developfrom
cherry-pick/pr-755-to-develop
Open

github-actions[bot] wants to merge 1 commit into
developfrom
cherry-pick/pr-755-to-develop

Conversation

@github-actions

@github-actions github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Automated cherry-pick of #755 to develop.

Included PRs:

…lowed per RunInstances request

EC2 RunInstances rejects a request when the total number of network interfaces per instance exceeds 5000.

With the default launch_max_batch_size of 500, every instance type with more than 10 network interfaces exceeds it. For example, PC configures 17 interfaces on p6-b300.48xlarge. CreateFleet is not affected, because EC2 Fleet splits its own launches internally.

When a batch of more than 50 nodes fails with AttachmentLimitExceeded, retry it and the remaining
batches of the compute resource at half the size.

Tests:
* Unit tests with RunInstances mocked to enforce the per-request limit: 600 nodes with 17 network
  interfaces launch as 500 (rejected), 250, 250, 100 for both best-effort and all-or-nothing, and
  a single instance over the limit fails all 500 nodes in 20 calls.
* Reproduced the failure on PC 3.16.2 (c6g.16xlarge, 15 interfaces through RunInstances overrides,
  500 static nodes).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick Cherry-pick PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant