# Autoscaler does not scale in ray1.4 with 0 CPUs allocated head node

**URL:** <https://discuss.ray.io/t/autoscaler-does-not-scale-in-ray1-4-with-0-cpus-allocated-head-node/3027>\
**Category:** Kubernetes\
**Created:** [July 26, 2021, 9:23pm UTC](https://discuss.ray.io/t/autoscaler-does-not-scale-in-ray1-4-with-0-cpus-allocated-head-node/3027 "2021-07-26T21:23:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asm582](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/asm582/32/669_2.png) [@asm582](https://discuss.ray.io/u/asm582)\
**Post date:** [July 26, 2021, 9:23pm UTC](https://discuss.ray.io/t/autoscaler-does-not-scale-in-ray1-4-with-0-cpus-allocated-head-node/3027/1 "2021-07-26T21:23:52Z")

</div>

Hello,

In order to avoid scheduling tasks on the head node, it is recommended to set CPU:0 in rayResources. When minWorkers is set to 0 with 0 CPUs assigned to the ray head node, we see that autoscaling does not happen.

Is this the expected behavior?

documentation here: [Ray Deployment Guide — Ray v2.0.0.dev0](https://docs.ray.io/en/master/cluster/guide.html)

cc @Dmitri

Thanks

---

<div class="post-metadata">

**Author:** ![Dmitri](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/dmitri/32/657_2.png) [@Dmitri](https://discuss.ray.io/u/Dmitri)\
**Post date:** [July 27, 2021, 1:40am UTC](https://discuss.ray.io/t/autoscaler-does-not-scale-in-ray1-4-with-0-cpus-allocated-head-node/3027/2 "2021-07-27T01:40:34Z")

</div>

It’s a known issue: [[k8s][autoscaler][core] { "CPU": 0 } is not working for avoid task scheduling in rayHeadType Pod · Issue #16935 · ray-project/ray · GitHub](https://github.com/ray-project/ray/issues/16935)  
I’m hoping to address it in the not-too-distant future.
