ray/ci/asan_tests/ray-project/cluster.yaml
2020-07-28 10:44:06 -07:00

51 lines
1.7 KiB
YAML

# This file is generated by `ray project create`.
# A unique identifier for the head node and workers of this cluster.
cluster_name: asan_python_tests
# 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
# Cloud-provider specific configuration.
provider:
type: aws
region: us-west-2
availability_zone: us-west-2a
head_node:
InstanceType: m5.4xlarge
ImageId: ami-0d1cd67c26f5fca19 # Default Ubuntu 18.04 AMI.
# Set primary volume to 50 GiB
BlockDeviceMappings:
- DeviceName: /dev/sda1
Ebs:
VolumeSize: 50
# How Ray will authenticate with newly launched nodes.
auth:
ssh_user: ubuntu
setup_commands:
# Install basics.
- sudo apt-get update -q
- sudo apt-get install -y -q build-essential curl unzip
# Install Anaconda.
- wget -q https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh
- bash Anaconda3-5.0.1-Linux-x86_64.sh -b -p $HOME/anaconda3 || true
- echo 'export PATH="$HOME/anaconda3/bin:$PATH"' >> ~/.bashrc
- pip install -U pip || true
- conda uninstall -y terminado || true
- pip install terminado || true
# Clone Ray.
- cd $HOME; rm -rf $HOME/ray; git clone https://github.com/ray-project/ray || true
# Install Node.js in order to build the dashboard.
- curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash
- sudo apt-get install -y nodejs || true
- cd ray/python/ray/dashboard/client; npm ci; npm run build
# Set up Ray dependencies.
- which bazel || bash -c "cd $HOME/ray; ci/travis/install-bazel.sh"
# Command to start ray on the head node. You don't need to change this.
head_start_ray_commands: []