11# An unique identifier for the head node and workers of this cluster.
2- cluster_name : default
3-
4- # The minimum number of workers nodes to launch in addition to the head
5- # node. This number should be >= 0.
6- min_workers : 2
7-
8- # The maximum number of workers nodes to launch in addition to the head
9- # node. This takes precedence over min_workers.
10- max_workers : 2
2+ cluster_name : development
113
124# The autoscaler will scale up the cluster faster with higher upscaling speed.
135# E.g., if the task requires adding more nodes then autoscaler will gradually
@@ -27,58 +19,27 @@ provider:
2719# How Ray will authenticate with newly launched nodes.
2820auth :
2921 ssh_user : ubuntu
30- # By default Ray creates a new private keypair, but you can also use your own.
31- # If you do so, make sure to also set "KeyName" in the head and worker node
32- # configurations below.
33- # ssh_private_key: /path/to/your/key.pem
34-
35- # Provider-specific config for the head node, e.g. instance type. By default
36- # Ray will auto-configure unspecified fields such as SubnetId and KeyName.
37- # For more documentation on available fields, see:
38- # http://boto3.readthedocs.io/en/latest/reference/services/ec2.html#EC2.ServiceResource.create_instances
39- head_node :
40- InstanceType : m4.16xlarge
41- ImageId : ami-0def3275 # Default Ubuntu 16.04 AMI.
42-
43- # Set primary volume to 25 GiB
44- BlockDeviceMappings :
45- - DeviceName : /dev/sda1
46- Ebs :
47- VolumeSize : 50
48-
49- # Additional options in the boto docs.
50-
51- # Provider-specific config for worker nodes, e.g. instance type. By default
52- # Ray will auto-configure unspecified fields such as SubnetId and KeyName.
53- # For more documentation on available fields, see:
54- # http://boto3.readthedocs.io/en/latest/reference/services/ec2.html#EC2.ServiceResource.create_instances
55- worker_nodes :
56- InstanceType : m4.16xlarge
57- ImageId : ami-0def3275 # Default Ubuntu 16.04 AMI.
5822
59- # Set primary volume to 25 GiB
60- BlockDeviceMappings :
61- - DeviceName : /dev/sda1
62- Ebs :
63- VolumeSize : 50
64-
65- # Run workers on spot by default. Comment this out to use on-demand.
66- InstanceMarketOptions :
67- MarketType : spot
68- # Additional options can be found in the boto docs, e.g.
69- # SpotOptions:
70- # MaxPrice: MAX_HOURLY_PRICE
71-
72- # Additional options in the boto docs.
73-
74- # Files or directories to copy to the head and worker nodes. The format is a
75- # dictionary from REMOTE_PATH: LOCAL_PATH, e.g.
76- file_mounts : {
77- # "/path1/on/remote/machine": "/path1/on/local/machine",
78- # "/path2/on/remote/machine": "/path2/on/local/machine",
79- }
80-
81- # List of shell commands to run to set up nodes.
23+ # Tell the autoscaler the allowed node types and the resources they provide.
24+ # The key is the name of the node type, which is just for debugging purposes.
25+ # The node config specifies the launch config and physical instance type.
26+ available_node_types :
27+ # Provider-specific config for the head node, e.g. instance type. By default
28+ # Ray will auto-configure unspecified fields such as SubnetId and KeyName.
29+ # For more documentation on available fields, see:
30+ # http://boto3.readthedocs.io/en/latest/reference/services/ec2.html#EC2.ServiceResource.create_instances
31+ ray.head.default :
32+ node_config :
33+ InstanceType : m4.16xlarge
34+ ImageId : ami-0def3275 # Default Ubuntu 16.04 AMI.
35+
36+ # Set primary volume to 25 GiB
37+ BlockDeviceMappings :
38+ - DeviceName : /dev/sda1
39+ Ebs :
40+ VolumeSize : 50
41+
42+ # List of shell commands to install ray from source.
8243setup_commands :
8344 # Consider uncommenting these if you run into dpkg locking issues
8445 # - sudo pkill -9 apt-get || true
@@ -101,12 +62,6 @@ setup_commands:
10162 - pip install boto3==1.4.8 cython==0.29.26 aiohttp grpcio psutil setproctitle
10263 - cd ray/python; pip install -e . --verbose
10364
104- # Custom commands that will be run on the head node after common setup.
105- head_setup_commands : []
106-
107- # Custom commands that will be run on worker nodes after common setup.
108- worker_setup_commands : []
109-
11065# Command to start ray on the head node. You don't need to change this.
11166head_start_ray_commands :
11267 - ray stop
0 commit comments