Skip to content

Instantly share code, notes, and snippets.

@bllchmbrs
Created April 14, 2020 15:54
Show Gist options
  • Save bllchmbrs/818102592419a8c752f0ef2e96f0be74 to your computer and use it in GitHub Desktop.
Save bllchmbrs/818102592419a8c752f0ef2e96f0be74 to your computer and use it in GitHub Desktop.
Running your first Distributed Python Application
# A unique identifier for the head node and workers of this cluster.
cluster_name: basic-ray
# The maximum number of workers nodes to launch in addition to the head
# node. This takes precedence over min_workers. min_workers defaults to 0.
max_workers: 0 # this means zero workers
# Cloud-provider specific configuration.
provider:
type: aws
region: us-west-2
availability_zone: us-west-2a
# How Ray will authenticate with newly launched nodes.
auth:
ssh_user: ubuntu
setup_commands:
- pip install ray[all] torch # We won’t use pytorch.
# However, this and the following line demonstrate that you can specify arbitrary
# startup scripts on the cluster.
- touch /tmp/some_file.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment