-
Notifications
You must be signed in to change notification settings - Fork 867
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
docs: Add best practice for reducing memory usage #2545
Conversation
Signed-off-by: William Van Hevelingen <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Codecov ReportBase: 81.66% // Head: 81.66% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## master #2545 +/- ##
=======================================
Coverage 81.66% 81.66%
=======================================
Files 126 126
Lines 19147 19147
=======================================
Hits 15636 15636
Misses 2717 2717
Partials 794 794 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@zachaller Thanks for the review! Let me know if you have questions or suggestions on changing the wording. We could also mention that operators may wish to do the same for Deployments as the argo-controller watches all ReplicaSets on the clusters. One way to avoid this is to use NewCache which I don't think the controller uses. I can open a new issue for this if you think that makes sense. The tigera operator uses NewCache with a filter for NetworkPolicies if you are looking for an example. |
Yea I would love a new issue for looking into using that cache to get an informer that is more limited in scope that say all replicasets to reduce memory usage. Rollouts was created before a lot of the kubebuilder stuff so there is quite a few things done a little lower level but I took a quick peak at that cache package and it looks like I can get an informer still off of it so I would like to spend time looking into that and would use the issue to help track that. |
I think rollouts might need to do something like this instead of the cache
The key being WithTweakListOptions, and we would also probably need to add some managed by label to the rs We might even be able to just use a |
Thanks, I filed #2552 |
Signed-off-by: William Van Hevelingen [email protected]
Checklist:
"fix(controller): Updates such and such. Fixes #1234"
.