mirror of
https://github.com/wassname/ray.git
synced 2026-08-16 11:27:09 +08:00
Add Redis port option to startup script (#232)
* specify redis address when starting head * cleanup * update starting cluster documentation * Whitespace. * Address Philipp's comments. * Change redis_host -> redis_ip_address.
This commit is contained in:
committed by
Robert Nishihara
parent
db7297865f
commit
6ad2b5d87a
@@ -11,18 +11,21 @@ Ubuntu](install-on-ubuntu.md).
|
||||
|
||||
### Starting Ray on each machine.
|
||||
|
||||
On the head node (just choose some node to be the head node), run the following.
|
||||
On the head node (just choose some node to be the head node), run the following,
|
||||
replacing `<redis-port>` with a port of your choice, e.g., `6379`.
|
||||
|
||||
```
|
||||
./ray/scripts/start_ray.sh --head
|
||||
./ray/scripts/start_ray.sh --head --redis-port <redis-port>
|
||||
```
|
||||
|
||||
This will print out the address of the Redis server that was started (and some
|
||||
other address information).
|
||||
The `--redis-port` arugment is optional, and if not provided Ray starts Redis
|
||||
on a port selected at random.
|
||||
In either case, the command will print out the address of the Redis server
|
||||
that was started (and some other address information).
|
||||
|
||||
Then on all of the other nodes, run the following. Make sure to replace
|
||||
`<redis-address>` with the value printed by the command on the head node (it
|
||||
should look something like `123.45.67.89:12345`).
|
||||
should look something like `123.45.67.89:6379`).
|
||||
|
||||
```
|
||||
./ray/scripts/start_ray.sh --redis-address <redis-address>
|
||||
|
||||
Reference in New Issue
Block a user