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

Faster eni scaleup #2744

Merged
merged 1 commit into from
Jan 10, 2024
Merged

Faster eni scaleup #2744

merged 1 commit into from
Jan 10, 2024

Conversation

jchen6585
Copy link
Contributor

@jchen6585 jchen6585 commented Jan 5, 2024

What type of PR is this?

enhancement

Which issue does this PR fix:
N/A

What does this PR do / Why do we need it:
We would previously allocate 1 ENI max per loop: https://github.com/aws/amazon-vpc-cni-k8s/blob/master/pkg/ipamd/ipamd.go#L621-L628

This PR modifies the updateIpPoolIfRequired function to have faster ENI scale up to avoid the 5 second sleep.

If an issue # is not available please add repro steps and logs from IPAMD/CNI showing the issue:

Testing done on this change:

CNI suite: passing
IPAMD suite: passing

Will this PR introduce any new dependencies?:

N/A

Will this break upgrades or downgrades? Has updating a running cluster been tested?:
No, Yes

Does this change require updates to the CNI daemonset config files to work?:

No

Does this PR introduce any user-facing change?:

No


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

@jchen6585 jchen6585 requested a review from a team as a code owner January 5, 2024 20:10
@jchen6585 jchen6585 marked this pull request as draft January 5, 2024 20:10
pkg/ipamd/ipamd.go Outdated Show resolved Hide resolved
@jchen6585 jchen6585 force-pushed the refactor-incDS branch 2 times, most recently from 5acf19f to 91a0731 Compare January 5, 2024 23:52
pkg/ipamd/ipamd.go Outdated Show resolved Hide resolved
@jchen6585 jchen6585 marked this pull request as ready for review January 9, 2024 23:48
pkg/ipamd/ipamd.go Show resolved Hide resolved
@jchen6585 jchen6585 merged commit f91d492 into aws:master Jan 10, 2024
6 checks passed
@orsenthil
Copy link
Member

This change as the cause of performance issue mentioned in #2807 and has been reverted in #2810

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