From b3b294e3ade50a3162429b1cc5365e83916f2cf7 Mon Sep 17 00:00:00 2001 From: Richard Liaw Date: Thu, 19 Jan 2017 13:59:54 -0800 Subject: [PATCH] updated cluster documentation (#216) --- doc/using-ray-on-a-cluster.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/doc/using-ray-on-a-cluster.md b/doc/using-ray-on-a-cluster.md index a9d426c25..53bceffed 100644 --- a/doc/using-ray-on-a-cluster.md +++ b/doc/using-ray-on-a-cluster.md @@ -27,7 +27,10 @@ should look something like `123.45.67.89:12345`). ``` ./ray/scripts/start_ray.sh --redis-address ``` - +To specify the number of processes to start, use the flag `--num-workers`, as follows: +``` +./ray/scripts/start_ray.sh --num-workers +``` Now we've started all of the Ray processes on each node Ray. This includes - Some worker processes on each machine. @@ -36,11 +39,7 @@ Now we've started all of the Ray processes on each node Ray. This includes - One Redis server (on the head node). - One global scheduler (on the head node). -Later when you want to stop the Ray processes, run `./ray/scripts/stop_ray.sh` -on each node. - -That should start up all of the Ray processes. To run some commands, start up -Python on one of the nodes in the cluster, and do the following. +To run some commands, start up Python on one of the nodes in the cluster, and do the following. ```python import ray @@ -57,6 +56,10 @@ def f(x): ray.get([f.remote(f.remote(f.remote(0))) for _ in range(1000)]) ``` +### Stopping Ray +When you want to stop the Ray processes, run `./ray/scripts/stop_ray.sh` +on each node. + ### Copying Application Files to Other Nodes (Experimental) If you're running an application that imports Python files that are present