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

Add a new metrics to expose local cached items size #3182

Open
halfcrazy opened this issue Mar 28, 2025 · 1 comment
Open

Add a new metrics to expose local cached items size #3182

halfcrazy opened this issue Mar 28, 2025 · 1 comment

Comments

@halfcrazy
Copy link
Contributor

halfcrazy commented Mar 28, 2025

Backgroud
In controller-runtime, the default behaviour is to cache all data using client.Get unless using a read-only client or custom cache policies, e.g., ClientDisableCacheFor, NewCache. Therefore, using client.Get on a specific pod in a large cluster with many pods may lead to high memory usage.

Proposal
Add a new metric to expose the local cached items' size. Then we can analyze the high memory usage caused by the misuse cache policy.

@halfcrazy
Copy link
Contributor Author

#3054

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