Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IPs to existing ENIs first #487

Merged
merged 2 commits into from
May 31, 2019
Merged

Add IPs to existing ENIs first #487

merged 2 commits into from
May 31, 2019

Conversation

mogren
Copy link
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
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
ipamd/ipamd.go Outdated Show resolved Hide resolved
ipamd/ipamd.go Outdated Show resolved Hide resolved
ipamd/ipamd.go Outdated Show resolved Hide resolved
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