Feature request: HPA on controllers #2312
Replies: 2 comments 12 replies
-
This is not at all straightforward to implement from today, as Flux controllers are not at present designed to be horizontally scaled. They all implement the same leader election protocol as far as I understand, which means that no matter how you scale the deployments with an HPA, only one instance of a controller will be managing its associated CRD resources at any given time. You can however set You will also need to increase the memory limit if you increased |
Beta Was this translation helpful? Give feedback.
-
Support for horizontal scaling of all Flux controllers with sharding based on label selectors is coming, see fluxcd/pkg#525 |
Beta Was this translation helpful? Give feedback.
-
Hello!
First I would like that we are using Flux more and more and think it is an excellent product.
We have started to come to a part where we are running Flux in multiple clusters with varying load in flux through the amount of Flux Custom Resources in the cluster. It feels like setting individual overrides per cluster for resources is an unwanted pattern. Rather I would like the controllers to scale horizontally based on the load.
The work could be delegated between the workers from the leader to split the load. I understand that the source controller might be hard to scale horizontally but all other controllers should be able to split the workload?
Beta Was this translation helpful? Give feedback.
All reactions