Add 'ray dashboard' command (#6959)

This commit is contained in:
Alex Wu
2020-02-10 12:55:21 -08:00
committed by GitHub
parent 72c31e3e19
commit 3f99be8dad
5 changed files with 145 additions and 68 deletions
+4
View File
@@ -211,6 +211,8 @@ Port-forwarding applications
If you want to run applications on the cluster that are accessible from a web browser (e.g., Jupyter notebook), you can use the ``--port-forward`` option for ``ray exec``. The local port opened is the same as the remote port.
Note: For Kubernetes clusters, the ``port-forward`` option cannot be used while executing a command. To port forward and run a command you need to call ``ray exec`` twice separately.
.. code-block:: bash
$ ray exec cluster.yaml --port-forward=8899 'source ~/anaconda3/bin/activate tensorflow_p36 && jupyter notebook --port=8899'
@@ -240,6 +242,8 @@ The default idle timeout is 5 minutes. This is to prevent excessive node churn w
Monitoring cluster status
~~~~~~~~~~~~~~~~~~~~~~~~~
The ray also comes with an online dashboard. The dashboard is accessible via HTTP on the head node (by default it listens on ``localhost:8265``). To access it locally, you'll need to forward the port to your local machine. You can also use the built-in ``ray dashboard`` to do this automatically.
You can monitor cluster usage and auto-scaling status by tailing the autoscaling
logs in ``/tmp/ray/session_*/logs/monitor*``.