Skip to content

High memory utilization on application controller pods that manage clusters with few apps, but many unrelated resources #21546

Discussion options

You must be logged in to vote

Is this behavior expected? I haven't dug into the code but it seems like the controller queries all resources in the cluster it manages, then filters out resources it cares about based on the apps in that cluster, rather than doing targeted queries against the API.

It is expected. Argo CD knows which resources you have in git, but it doesn't know what resources might be children of those resources. So it has to load every single resource on the cluster, inspect each resource's owner references, and than build a resource tree out of the resources that it can confirm are actually relevant to your Applications.

But you can provide Argo CD with hints. For example, you can use resource.exclu…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aaron-lunsford-even
Comment options

Answer selected by aaron-lunsford-even
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants