[autoscaler] Azure deployment fixes (#11613)

Co-authored-by: Richard Liaw <rliaw@berkeley.edu>
This commit is contained in:
Scott Graham
2020-10-27 15:27:18 -07:00
committed by GitHub
co-authored by Richard Liaw
parent 293483ed0b
commit c4ae94d60b
14 changed files with 108 additions and 77 deletions
+4 -7
View File
@@ -48,7 +48,7 @@ AWS/GCP/Azure
See :ref:`aws-cluster` for recipes on customizing AWS clusters.
.. group-tab:: Azure
First, install the Azure CLI (``pip install azure-cli azure-core``) then login using (``az login``).
First, install the Azure CLI (``pip install azure-cli``) then login using (``az login``).
Set the subscription to use from the command line (``az account set -s <subscription_id>``) or by modifying the provider section of the config provided e.g: `ray/python/ray/autoscaler/azure/example-full.yaml`
@@ -65,10 +65,7 @@ AWS/GCP/Azure
# Get a remote screen on the head node.
$ ray attach ray/python/ray/autoscaler/azure/example-full.yaml
# test ray setup
# enable conda environment
$ exec bash -l
$ conda activate py37_tensorflow
$ python -c 'import ray; ray.init()'
$ python -c 'import ray; ray.init(address="auto")'
$ exit
# Tear down the cluster.
$ ray down ray/python/ray/autoscaler/azure/example-full.yaml
@@ -83,8 +80,8 @@ AWS/GCP/Azure
:target: https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fray-project%2Fray%2Fmaster%2Fdoc%2Fazure%2Fazure-ray-template.json
:alt: Deploy to Azure
Once the template is successfully deployed the deployment output page provides the ssh command to connect and the link to the JupyterHub on the head node (username/password as specified on the template input).
Use the following code in a Jupyter notebook to connect to the Ray cluster.
Once the template is successfully deployed the deployment Outputs page provides the ssh command to connect and the link to the JupyterHub on the head node (username/password as specified on the template input).
Use the following code in a Jupyter notebook (using the conda environment specified in the template input, py37_tensorflow by default) to connect to the Ray cluster.
.. code-block:: python