[autoscaler][minor] default -> latest_dlami (#6922)

* config

* latest

* Update python/ray/autoscaler/aws/config.py
This commit is contained in:
Richard Liaw
2020-01-27 14:34:07 -08:00
committed by GitHub
parent a7ecda6017
commit e0078a0d78
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ Test that it works by running the following commands from your local machine:
# Tear down the cluster.
$ ray down ray/python/ray/autoscaler/aws/example-full.yaml
.. tip:: For the AWS node configuration, you can set ``"ImageId: DEFAULT"`` to automatically use the newest `Deep Learning AMI <https://aws.amazon.com/machine-learning/amis/>`_ for your region. For example, ``head_node: {InstanceType: c5.xlarge, ImageId: DEFAULT}``.
.. tip:: For the AWS node configuration, you can set ``"ImageId: latest_dlami"`` to automatically use the newest `Deep Learning AMI <https://aws.amazon.com/machine-learning/amis/>`_ for your region. For example, ``head_node: {InstanceType: c5.xlarge, ImageId: latest_dlami}``.
GCP
~~~
+4 -4
View File
@@ -278,18 +278,18 @@ def _check_ami(config):
# If we do not provide a default AMI for the given region, noop.
return
if config["head_node"].get("ImageId", "").lower() == "DEFAULT":
if config["head_node"].get("ImageId", "").lower() == "latest_dlami":
config["head_node"]["ImageId"] = default_ami
logger.info("_check_ami: head node ImageId specified as 'DEFAULT'. "
logger.info("_check_ami: head node ImageId is 'latest_dlami'. "
"Using '{ami_id}', which is the default {ami_name} "
"for your region ({region}).".format(
ami_id=default_ami,
ami_name=DEFAULT_AMI_NAME,
region=region))
if config["worker_nodes"].get("ImageId", "").lower() == "DEFAULT":
if config["worker_nodes"].get("ImageId", "").lower() == "latest_dlami":
config["worker_nodes"]["ImageId"] = default_ami
logger.info("_check_ami: worker nodes ImageId specified as 'DEFAULT'. "
logger.info("_check_ami: worker nodes ImageId is 'latest_dlami'. "
"Using '{ami_id}', which is the default {ami_name} "
"for your region ({region}).".format(
ami_id=default_ami,