mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 20:24:03 +08:00
[docs] Improve cluster/docker docs (#3517)
- Surfaces local cluster usage - Increases visability of these instructions - Removes some docker docs (that are really out of scope for Ray documentation IMO) Closes #3517.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
cluster_name: default
|
||||
min_workers: 0
|
||||
max_workers: 0
|
||||
docker:
|
||||
image: ""
|
||||
container_name: ""
|
||||
target_utilization_fraction: 0.8
|
||||
idle_timeout_minutes: 5
|
||||
provider:
|
||||
type: local
|
||||
head_ip: YOUR_HEAD_NODE_HOSTNAME
|
||||
worker_ips: []
|
||||
auth:
|
||||
ssh_user: YOUR_USERNAME
|
||||
ssh_private_key: ~/.ssh/id_rsa
|
||||
head_node: {}
|
||||
worker_nodes: {}
|
||||
file_mounts:
|
||||
"/tmp/ray_sha": "/YOUR/LOCAL/RAY/REPO/.git/refs/heads/YOUR_BRANCH"
|
||||
setup_commands: []
|
||||
head_setup_commands: []
|
||||
worker_setup_commands: []
|
||||
setup_commands:
|
||||
- source activate ray && test -e ray || git clone https://github.com/YOUR_GITHUB/ray.git
|
||||
- source activate ray && cd ray && git fetch && git reset --hard `cat /tmp/ray_sha`
|
||||
# - source activate ray && cd ray/python && pip install -e .
|
||||
head_start_ray_commands:
|
||||
- source activate ray && ray stop
|
||||
- source activate ray && ulimit -c unlimited && ray start --head --redis-port=6379 --autoscaling-config=~/ray_bootstrap_config.yaml
|
||||
worker_start_ray_commands:
|
||||
- source activate ray && ray stop
|
||||
- source activate ray && ray start --redis-address=$RAY_HEAD_IP:6379
|
||||
@@ -15,15 +15,12 @@ auth:
|
||||
ssh_private_key: ~/.ssh/id_rsa
|
||||
head_node: {}
|
||||
worker_nodes: {}
|
||||
file_mounts:
|
||||
"/tmp/ray_sha": "/YOUR/LOCAL/RAY/REPO/.git/refs/heads/YOUR_BRANCH"
|
||||
file_mounts: {}
|
||||
setup_commands: []
|
||||
head_setup_commands: []
|
||||
worker_setup_commands: []
|
||||
setup_commands:
|
||||
- source activate ray && test -e ray || git clone https://github.com/YOUR_GITHUB/ray.git
|
||||
- source activate ray && cd ray && git fetch && git reset --hard `cat /tmp/ray_sha`
|
||||
# - source activate ray && cd ray/python && pip install -e .
|
||||
- source activate ray && pip install -U ray
|
||||
head_start_ray_commands:
|
||||
- source activate ray && ray stop
|
||||
- source activate ray && ulimit -c unlimited && ray start --head --redis-port=6379 --autoscaling-config=~/ray_bootstrap_config.yaml
|
||||
|
||||
Reference in New Issue
Block a user