mirror of
https://github.com/wassname/ray.git
synced 2026-08-12 12:20:11 +08:00
[autoscaler][minor] default -> latest_dlami (#6922)
* config * latest * Update python/ray/autoscaler/aws/config.py
This commit is contained in:
@@ -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
|
||||
~~~
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user