Created
April 14, 2020 15:54
-
-
Save bllchmbrs/818102592419a8c752f0ef2e96f0be74 to your computer and use it in GitHub Desktop.
Running your first Distributed Python Application
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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