stackstorm-k8s icon indicating copy to clipboard operation
stackstorm-k8s copied to clipboard

Usage of horizontalPodAutoscaler on st2runner

Open erenatas opened this issue 5 years ago • 2 comments

This is merely a question that I have started to wonder. We should be able to let st2runner dynamically scale its pods during load. HorizontalPodAutoscaler makes a lot of sense I believe. What do you think?

erenatas avatar Feb 21 '20 10:02 erenatas

I think it's a good idea to provide the option to include a HorizontalPodAutoscaler.

I don't think it should be enabled by default, though, because not everyone would want it to autoscale.

Also, I don't think it'd replace deployments: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/ ..so this issue can remove "instead of deployment" from its title.

mickmcgrath13 avatar Feb 21 '20 15:02 mickmcgrath13

excellent idea.. I did create a HPA for an older version of the chart but got some runner weirdness out of stackstorm which on discussion in the slack channel was determined to be a lack of code in the runner to support it. That said I would be interested in having another go at it.. I've included my test hpa.yaml config for you.

HorizontalPodAutoscaler.yaml.txt

chris3081 avatar Mar 07 '22 06:03 chris3081