58 lines
2.0 KiB
YAML
58 lines
2.0 KiB
YAML
# Unique identifier for the head node and workers of this cluster.
|
|
cluster_name: nightly-cpu-minimal-centralus
|
|
max_workers: 2
|
|
idle_timeout_minutes: 5
|
|
|
|
# Cloud-provider specific configuration.
|
|
provider:
|
|
type: azure
|
|
# https://azure.microsoft.com/en-us/global-infrastructure/locations
|
|
location: centralus
|
|
resource_group: ray-nightly-cpu-minimal-centralus
|
|
cache_stopped_nodes: False
|
|
|
|
auth:
|
|
ssh_user: ubuntu
|
|
ssh_private_key: "~/.ssh/ray-autoscaler-tests-ssh-key"
|
|
ssh_public_key: "~/.ssh/ray-autoscaler-tests-ssh-key.pub"
|
|
|
|
available_node_types:
|
|
ray.head.default:
|
|
resources: {"CPU": 2}
|
|
node_config:
|
|
azure_arm_parameters:
|
|
vmSize: Standard_D2s_v3
|
|
imagePublisher: microsoft-dsvm
|
|
imageOffer: ubuntu-2204
|
|
imageSku: 2204-gen2
|
|
imageVersion: latest
|
|
ray.worker.default:
|
|
min_workers: 2
|
|
max_workers: 2
|
|
resources: {"CPU": 2}
|
|
node_config:
|
|
azure_arm_parameters:
|
|
vmSize: Standard_D2s_v3
|
|
imagePublisher: microsoft-dsvm
|
|
imageOffer: ubuntu-2204
|
|
imageSku: 2204-gen2
|
|
imageVersion: latest
|
|
|
|
# Note: The Ubuntu 22.04 dsvm image has a few venvs already configured but
|
|
# they all contain python modules that are not compatible with Ray at the moment.
|
|
setup_commands:
|
|
- (which conda && echo 'eval "$(conda shell.bash hook)"' >> ~/.bashrc) || true
|
|
- conda tos accept
|
|
- conda create -n ray-env python=3.10 -y
|
|
- conda activate ray-env && echo 'conda activate ray-env' >> ~/.bashrc
|
|
- which ray || pip install -U "ray[default] @ https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-3.0.0.dev0-cp310-cp310-manylinux2014_x86_64.whl"
|
|
|
|
file_mounts_sync_continuously: False
|
|
|
|
file_mounts: {
|
|
"~/.ssh/ray-autoscaler-tests-ssh-key.pub": "~/.ssh/ray-autoscaler-tests-ssh-key.pub"
|
|
}
|
|
|
|
head_setup_commands:
|
|
- pip install azure-core==1.35.0 azure-identity==1.23.1 azure-mgmt-compute==35.0.0 azure-mgmt-network==29.0.0 azure-mgmt-resource==24.0.0 azure-common==1.1.28 msrest==0.7.1 msrestazure==0.6.4.post1
|