Skip to content

Add IPs to existing ENIs first#487

Merged
mogren merged 2 commits intoaws:masterfrom
mogren:add-ips-first
May 31, 2019
Merged

Add IPs to existing ENIs first#487
mogren merged 2 commits intoaws:masterfrom
mogren:add-ips-first

Conversation

@mogren
Copy link
Copy Markdown
Contributor

@mogren mogren commented May 28, 2019

Description of changes:

  • When WARM_IP_TARGET is set, try to allocate all unallocated IPs for the current ENI. If that fails, try to just add 1 IP to an existing ENI before allocating a new ENI.
  • Remove currentMaxAddrsPerENI since it will not change.
  • Only read customNetworkCfg once

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mogren mogren requested review from nckturner and tiffanyfay May 28, 2019 19:20
@mogren mogren force-pushed the add-ips-first branch 2 times, most recently from dec9dc9 to ee2eaa1 Compare May 28, 2019 21:41
Copy link
Copy Markdown
Contributor

@nckturner nckturner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When WARM_IP_TARGET is set, try to allocate that many IPs on the current ENI before allocating a new ENI.

As discussed offline, the problem is at low values of WARM_IP_TARGET, scaling up becomes excruciatingly slow. Perhaps we can try to allocate the full ENI, but if that fails, we can attempt to allocate using progressively smaller step sizes.

@mogren mogren added this to the v1.5 milestone May 29, 2019
If that fails, try to just add 1 IP to the ENI
@mogren mogren merged commit 4a78643 into aws:master May 31, 2019
@mogren mogren deleted the add-ips-first branch May 31, 2019 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants