-
Notifications
You must be signed in to change notification settings - Fork 748
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
Conversation
dec9dc9
to
ee2eaa1
Compare
There was a problem hiding this 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.
If that fails, try to just add 1 IP to the ENI
Description of changes:
WARM_IP_TARGET
is set, try to allocate all unallocated IPs for the current ENI. If that fails, try to just add1
IP to an existing ENI before allocating a new ENI.currentMaxAddrsPerENI
since it will not change.customNetworkCfg
onceBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.