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

Improve CPU consumption by skipping populateReferencedKubernetesServices logic when egress enforcement is disabled #538

Merged
merged 2 commits into from
Dec 22, 2024

Conversation

omris94
Copy link
Contributor

@omris94 omris94 commented Dec 22, 2024

Description

When building serviceEffectivePolicies - populateReferencedKubernetesServices logic is the heaviest part regarding CPU consumption. This logic is relevant only for egress policies (to work around AWS CNI limitation). Therefore, in this PR we changed it so it will only run if egress is enabled.

@omris94 omris94 requested a review from amitlicht December 22, 2024 10:28
@omris94 omris94 changed the title CPU consumption improvement - Run populateReferencedKubernetesServices only if egress is enabled Improve CPU consumption by skipping populateReferencedKubernetesServices logic when egress enforcement is disabled Dec 22, 2024
@omris94 omris94 merged commit 7021dc9 into main Dec 22, 2024
20 checks passed
@omris94 omris94 deleted the omris/populate-referanced-services-only-if-egress branch December 22, 2024 11:00
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants