# My cluster have 7 gpus and 28 cpus and I have started a Raytrain with num\_workers=6, trainer\_resources={"CPU": 4}, resources\_per\_worker={"CPU": 4, "GPU": 1} , I am getting resource request cannot be scheduled warning?

**URL:** <https://discuss.ray.io/t/my-cluster-have-7-gpus-and-28-cpus-and-i-have-started-a-raytrain-with-num-workers-6-trainer-resources-cpu-4-resources-per-worker-cpu-4-gpu-1-i-am-getting-resource-request-cannot-be-scheduled-warning/14980>\
**Category:** Uncategorized\
**Created:** [June 16, 2024, 5:14pm UTC](https://discuss.ray.io/t/my-cluster-have-7-gpus-and-28-cpus-and-i-have-started-a-raytrain-with-num-workers-6-trainer-resources-cpu-4-resources-per-worker-cpu-4-gpu-1-i-am-getting-resource-request-cannot-be-scheduled-warning/14980 "2024-06-16T17:14:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonygracious](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/tonygracious/32/6022_2.png) [@tonygracious](https://discuss.ray.io/u/tonygracious)\
**Post date:** [June 16, 2024, 5:14pm UTC](https://discuss.ray.io/t/my-cluster-have-7-gpus-and-28-cpus-and-i-have-started-a-raytrain-with-num-workers-6-trainer-resources-cpu-4-resources-per-worker-cpu-4-gpu-1-i-am-getting-resource-request-cannot-be-scheduled-warning/14980/1 "2024-06-16T17:14:53Z")

</div>

I have getting the following warning

“(autoscaler +18m43s) Warning: The following resource request cannot be scheduled right now: {‘CPU’: 1.0}. This is likely due to all cluster resources being claimed by actors. Consider creating fewer actors or adding more nodes to this Ray cluster.”

My ray cluster have following setting

"setup\_ray\_cluster(

num\_worker\_nodes=6,  
num\_cpus\_worker\_node=4,  
num\_gpus\_worker\_node=1,  
num\_cpus\_head\_node= 4,  
num\_gpus\_head\_node= 1)"

and RayTrainer have =ScalingConfig(num\_workers=6, trainer\_resources={“CPU”: 4}, use\_gpu=True, resources\_per\_worker={“CPU”: 4, “GPU”: 1})

How can I solve this?

Also, where does the ray training coordinator is running? How is the head node different from the node where trainer coordinator runs?

---

<div class="post-metadata">

**Author:** ![Sam\_Chan](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/sam_chan/32/5011_2.png) [@Sam\_Chan](https://discuss.ray.io/u/Sam_Chan)\
**Post date:** [July 23, 2024, 5:58am UTC](https://discuss.ray.io/t/my-cluster-have-7-gpus-and-28-cpus-and-i-have-started-a-raytrain-with-num-workers-6-trainer-resources-cpu-4-resources-per-worker-cpu-4-gpu-1-i-am-getting-resource-request-cannot-be-scheduled-warning/14980/2 "2024-07-23T05:58:23Z")

</div>

What do you mean by “training coordinator”?

---

<div class="post-metadata">

**Author:** ![tonygracious](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/tonygracious/32/6022_2.png) [@tonygracious](https://discuss.ray.io/u/tonygracious)\
**Post date:** [July 23, 2024, 2:01pm UTC](https://discuss.ray.io/t/my-cluster-have-7-gpus-and-28-cpus-and-i-have-started-a-raytrain-with-num-workers-6-trainer-resources-cpu-4-resources-per-worker-cpu-4-gpu-1-i-am-getting-resource-request-cannot-be-scheduled-warning/14980/3 "2024-07-23T14:01:35Z")

</div>

[https://docs.ray.io/en/latest/train/api/doc/ray.train.ScalingConfig.html](https://docs.ray.io/en/latest/train/api/doc/ray.train.ScalingConfig.html)

training coordinator is mention in the docs
