kedacore / keda

KEDA is a Kubernetes-based Event Driven Autoscaling component. It provides event driven scale for any container running in Kubernetes
https://keda.sh
Apache License 2.0
8.49k stars 1.08k forks source link

Integrate KEDA scale logic with coming HPA scale to zero features #208

Open jeffhollan opened 5 years ago

jeffhollan commented 5 years ago

https://github.com/kubernetes/kubernetes/pull/74526

mikhailshilkov commented 5 years ago

If I read it correctly, the scale to/from zero feature of HPA has been released in 1.16. Does it mean that it will replace the KEDA way of enabling/disabling the deployment any time soon? Does it make the whole controller obsolete?

jeffhollan commented 5 years ago

A few things to note

We should do it but just means one of the things KEDA does today it can offload to HPA, but would still need to do others

mikhailshilkov commented 5 years ago

Yes, I'm not questioning KEDA, I guess the whole controller was an exaggeration but handleScaleLoop can probably go. Thanks for the quick response!

jeffhollan commented 5 years ago

Makes sense. The other thing I want to check out (let me know if others know in meantime) is the polling interval and latency of HPA scaling from 0. In KEDA it’s configurable. Not sure if we’d leave KEDA as an option to still drive if it’s providing some additional features

tomkerkhove commented 4 years ago

We should check how this impacts 2.0 /cc @zroubalik

zroubalik commented 4 years ago

It's still alpha in kubernetes: https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/#feature-gates-for-alpha-or-beta-features (search for HPAScaleToZero). It has to be enabled in the cluster by admin and it is not stable enough to be used by KEDA. We could include this later.

tomkerkhove commented 4 years ago

Sound like a plan!

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

tomkerkhove commented 3 years ago

/keep-alive

JorTurFer commented 1 year ago

Does having this issue open make sense?

tomkerkhove commented 1 year ago

It depends - Do we align or still have our own approach? If the latter, why?

JorTurFer commented 1 year ago

HPA still doesn't support scale to 0, we deactivate the HPA according to official docs, but the scale to zero features aren't available yet in the HPA itself. We do that part with the operator (activation phase)

zroubalik commented 1 year ago

This KEP is still active, https://github.com/kubernetes/enhancements/pull/2022

Let's keep this issue opened to track this effort.

tomkerkhove commented 1 year ago

Ok; I thought this was shipped already.