Ensure only 1 actor runs on a node at a time

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.

Hello everyone!

I have a requirement where I need to send an actor to every node, but it can only be 1 actor at a time. This is because the actor will be completing a task that will use up all of the memory of the node it is on. Only when I get the results from the task that the actor completes can I then send a new actor to that node.

I am not sure how I can go about doing this. Does anyone have any suggestions?

There’s an example here of adding resource constraints on actors which might fit your usecase: Memory Management — Ray 1.13.0

In this case, you’d want to set the memory to be the amount of memory on each of your nodes.