# How to use a particular node for ray serve?

**URL:** <https://discuss.ray.io/t/how-to-use-a-particular-node-for-ray-serve/7548>\
**Category:** Ray Serve\
**Created:** [September 14, 2022, 12:43am UTC](https://discuss.ray.io/t/how-to-use-a-particular-node-for-ray-serve/7548 "2022-09-14T00:43:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![plum9](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@plum9](https://discuss.ray.io/u/plum9)\
**Post date:** [September 14, 2022, 12:43am UTC](https://discuss.ray.io/t/how-to-use-a-particular-node-for-ray-serve/7548/1 "2022-09-14T00:43:30Z")

</div>

**How severe does this issue affect your experience of using Ray?**

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

Hi,  
I have a ray cluster on AWS with multiple node types like V100s, A10Gs, etc.  
I want to understand a way in which I can define ray serve to use a particular worker node. For example, if the name of the worker node is “my\_a10g\_node”, how can I use it? I looked through the custom resource but didn’t understand how to use it with Ray serve.

Any examples of usage will be helpful.

---

<div class="post-metadata">

**Author:** ![architkulkarni](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/architkulkarni/32/10_2.png) [@architkulkarni](https://discuss.ray.io/u/architkulkarni)\
**Post date:** [September 14, 2022, 11:23pm UTC](https://discuss.ray.io/t/how-to-use-a-particular-node-for-ray-serve/7548/2 "2022-09-14T23:23:05Z")

</div>

Hi @plum9, does using `ray_actor_options` work, together with custom resources? [Scaling and Resource Allocation — Ray 2.0.0](https://docs.ray.io/en/latest/serve/scaling-and-resource-allocation.html?highlight=ray_actor_options#resource-management-cpus-gpus)

[https://docs.ray.io/en/latest/ray-core/configure.html#configuring-ray](https://docs.ray.io/en/latest/ray-core/configure.html#configuring-ray)

So you could run `ray start --resources='{"a10g": 1}'` on your special node when starting Ray, and then pass in the resource requirement to Serve deployment as follows:

```auto
@serve.deployment(ray_actor_options={"resources": {"a10g": 0.1}})
def func_1(*args):
    return do_something_with_my_a10g_node()

```
