ApplicationSet Controller Scaling? #19113
Replies: 4 comments 4 replies
-
The ApplicationSet controller doesn't do any sharding so running multiple controllers won't make the reconciliation any faster. What generators/applicationsets do you see the controller taking most of its time? Have you tried increasing the number of workers? You can set the value EDIT: PR to add an example to the docs - #19166 |
Beta Was this translation helpful? Give feedback.
-
Thanks @rumstead, I was not aware this option existed. That PR should help a lot with discoverability, but to be honest I think the best place to mention it in the https://argo-cd.readthedocs.io/en/stable/operator-manual/high_availability/. Although this is not HA topic but at least I did refer to this doc as a general scalability guide. I am trying |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
In my case with monоrepo approach I have to explicitly list paths for git file generators in ApplicationSet spec pointing to limited set of CLUSTERS/NAMESPACES depending on ApplicationSet like this:
Using With 90 appsets and 1600 paths in total (about 17 paths per one appset) it takes up to 15-20 minutes to catch changes in repo and create new application for example. Applicationset controller doing
Will Now using version 2.6 - considering switching to 2.13 .. |
Beta Was this translation helpful? Give feedback.
-
I tried to search https://github.com/search?q=repo%3Aargoproj%2Fargo-cd+applicationset+scaling&type=issues and I am aware of https://argo-cd.readthedocs.io/en/stable/operator-manual/high_availability/, but I cannot find anything regarding ApplicationSet Controller scaling. I have what I consider a fairly small setup, I've seen much bigger around here, I have about ~20 k8s clusters and only about ~250 ApplicationSets with a total of about ~5k applications. Most of them are span up by ApplicationSets although not all.
It scales pretty well for the most part except for the ApplicationSet controller, which looks like I can't scale horizontally at the moment? It takes it about 5-10 minutes to do a full cycle and reconcile changes to ApplicationSets onto the Applications it manages.
Is there anything I am missing?
Beta Was this translation helpful? Give feedback.
All reactions