From e0078a0d7823e34511711f655b56e8c2ab2d1c84 Mon Sep 17 00:00:00 2001 From: Richard Liaw Date: Mon, 27 Jan 2020 14:34:07 -0800 Subject: [PATCH] [autoscaler][minor] default -> latest_dlami (#6922) * config * latest * Update python/ray/autoscaler/aws/config.py --- doc/source/autoscaling.rst | 2 +- python/ray/autoscaler/aws/config.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/source/autoscaling.rst b/doc/source/autoscaling.rst index f566b2159..cd6a8e82a 100644 --- a/doc/source/autoscaling.rst +++ b/doc/source/autoscaling.rst @@ -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 `_ 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 `_ for your region. For example, ``head_node: {InstanceType: c5.xlarge, ImageId: latest_dlami}``. GCP ~~~ diff --git a/python/ray/autoscaler/aws/config.py b/python/ray/autoscaler/aws/config.py index efadbdd8b..9d597c345 100644 --- a/python/ray/autoscaler/aws/config.py +++ b/python/ray/autoscaler/aws/config.py @@ -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,