# How can I do load balancing in cluster?

**URL:** <https://discuss.ray.io/t/how-can-i-do-load-balancing-in-cluster/6917>\
**Category:** Ray Clusters\
**Created:** [July 22, 2022, 5:42am UTC](https://discuss.ray.io/t/how-can-i-do-load-balancing-in-cluster/6917 "2022-07-22T05:42:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shyampatel](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@shyampatel](https://discuss.ray.io/u/shyampatel)\
**Post date:** [July 22, 2022, 5:42am UTC](https://discuss.ray.io/t/how-can-i-do-load-balancing-in-cluster/6917/1 "2022-07-22T05:42:43Z")

</div>

- Medium: It contributes to significant difficulty to complete my task, but I can work around it.

I am launching cluster using `cluster.yaml` file in ray. I have three worker nodes. I want to do load balancing between this three worker nodes. For single job, pipeline has multiple actors.

Can someone please help me?

---

<div class="post-metadata">

**Author:** ![ckw017](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/ckw017/32/1683_2.png) [@ckw017](https://discuss.ray.io/u/ckw017)\
**Post date:** [July 22, 2022, 6:31pm UTC](https://discuss.ray.io/t/how-can-i-do-load-balancing-in-cluster/6917/2 "2022-07-22T18:31:41Z")

</div>

If this is related to: [How to assign different custom resources for each worker nodes? - #2 by ckw017](https://discuss.ray.io/t/how-to-assign-different-custom-resources-for-each-worker-nodes/6916/2)

Then that should be able to work for your usecase. Note that you might want to increase the custom resources amount higher if you want to be able to schedule multiple tasks on each node (or alternatively use [fractional resource amounts](https://docs.ray.io/en/latest/serve/core-apis.html#fractional-resources))

---

<div class="post-metadata">

**Author:** ![shyampatel](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@shyampatel](https://discuss.ray.io/u/shyampatel)\
**Post date:** [July 23, 2022, 6:35am UTC](https://discuss.ray.io/t/how-can-i-do-load-balancing-in-cluster/6917/3 "2022-07-23T06:35:16Z")

</div>

Yes, it is related to mention one.

Here, from this question, I would like to know the other strategies which I can implement for load balancing.
