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

Optimization of the Kubernetes client cache #50647

Open
Zagitori opened this issue Apr 23, 2024 · 2 comments
Open

Optimization of the Kubernetes client cache #50647

Zagitori opened this issue Apr 23, 2024 · 2 comments

Comments

@Zagitori
Copy link

Zagitori commented Apr 23, 2024

Hi!

I have several control planes in one kubernetes cluster. Some namespaces are controlled by the first control plane, others by the second control plane.
To implement resource processing restrictions, the ENABLE_ENHANCED_RESOURCE_SCOPING env is set and discoverySelectors are set.
When creating resources (Gateways, EnvoyFilters, Secrets and others) in a namespace controlled by the first CP, the second CP also caches these resources and consumes more memory.

Are there plans to refine the pilot-discovery, allowing you to cache resources only from those namespaces that match the selector?

@howardjohn
Copy link
Member

Not really, the problem is discovery selectors is dynamic. So we need to keep them around in case they are used.

@howardjohn
Copy link
Member

What scale are you at in terms of resources, and the memory usage of them?

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

No branches or pull requests

3 participants