Hi, Using <job-vertex autoscaler> trough the Flin...
# troubleshooting
h
Hi, Using job-vertex autoscaler trough the Flink Kubernetes operator, I could not figure out if it is possible to achieve a scale-to-zero; does anyone already managed to achieve this, or is a parallelism of 1 the minimum?
g
There is unfortunately no scale to zero capability
h
Many thanks for your reply; do you know by any chance if this feature is on the roadmap? I assume this is somehow related to the fact that K8s HPA cannot scale to zero, but some third parties (e.g. Keda) offer drop-in replacement enabling this feature; I found this PoC, whose author claims he managed to auto-scale using Keda a Flink application deployed through the official Kubernetes operator. I’m wondering if you already experienced such setup on your own and may have some feedbacks?
g
This limitation has nothing to do with k8s or HPAs as that’s not used by the autoscaler. The autoscaler works based on Flink job metrics, such as Kafka connector and operator utilization metrics coming straight from Flink. Since Flink itself does not support to “run” a job with 0 parallelism this by design cannot work at the moment. What we would need is to support a 0 parallelism idle mode in Flink where metrics are still collected (definitely not on the roadmap in any form) or a completely Flink job independent way of collecting autoscaler metrics (not possible by design right now).
So unfortunately the simple answer is that with the current autoscaler design this is not on the roadmap
h
Very clear explanation; thank you.