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

Disable secret and configmap caching. #28

Merged
merged 1 commit into from
Aug 4, 2023
Merged

Conversation

bigkevmcd
Copy link
Collaborator

@bigkevmcd bigkevmcd commented Aug 3, 2023

This should reduce the memory consumption of the controller.

Same approach (and comment) as weaveworks/gitopssets-controller@943be32

This may help with https://github.com/weaveworks/weave-gitops-interlock/issues/493

This should reduce the memory consumption of the controller.
@bigkevmcd bigkevmcd requested a review from foot August 3, 2023 19:11
@foot
Copy link
Collaborator

foot commented Aug 4, 2023

Makes sense. Surprising that the cache can OOM, like thats gotta be some fairly large / lots and lots of secrets / configmaps.

Does controller-runtime expose those metrics? (cache size etc)

@bigkevmcd
Copy link
Collaborator Author

We can't be sure that it's the cache, the data provided says nothing.

But, dropping the secret caching, we can at least rule that out.

@bigkevmcd bigkevmcd merged commit 163f947 into main Aug 4, 2023
@bigkevmcd bigkevmcd deleted the dont-cache-secrets branch August 4, 2023 08:30
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.

2 participants