Currently, Ray does not provide a built-in CLI option to stop a specific Ray cluster or node when multiple Ray clusters are running on the same host; running ray stop will terminate all Ray processes on that node, affecting all clusters indiscriminately. This limitation is well-documented and has been discussed in several issues and forums, with users requesting features like ray stop --address or ray stop --port, but as of now, these options are not implemented in Ray’s CLI (GitHub Issue #54989, GitHub Issue #11509, Discourse thread, FAQ).
The only available workaround is to manually identify and kill the processes associated with the specific Ray cluster you want to stop, for example by grepping for the port or unique command-line arguments used when starting that cluster and killing those processes (e.g., pkill -f “ray.*6379”). However, this is not officially supported and can be error-prone (GitHub Issue #11509). Would you like more detail on how to do this safely?
Sources:
Hint: Mention @RunLLM in the post for followups.