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

kubernetes: Optimize computing gloo endpoints #10478

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

davidjumani
Copy link

Description

Optimize computing gloo endpoints by using resource sets to efficiently find resources.

Code changes

Use resourceSets instead of lists find and iterate over lists of resources
Since a lot of the iteration involves iterating over a list to find a NamespacedName resource, opted to use the ResourceSet to efficiently find the resource to avoid unnecessarily iterating over the same list multiple times

Context

This is a simple optimization to reduce CPU utilization
https://github.com/solo-io/solo-projects/issues/7369

@solo-changelog-bot
Copy link

Issues linked to changelog:
https://github.com/solo-io/solo-projects/issues/7369

@davidjumani davidjumani changed the title gateway2: Optimize computing gloo endpoints kubernetes: Optimize computing gloo endpoints Dec 13, 2024
Copy link

github-actions bot commented Dec 13, 2024

Visit the preview URL for this PR (updated for commit f254052):

https://gloo-edge--pr10478-optimize-compute-glo-47q4ra78.web.app

(expires Mon, 23 Dec 2024 13:14:32 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 77c2b86e287749579b7ff9cadb81e099042ef677

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant