mirror of
https://github.com/wassname/ray.git
synced 2026-07-13 02:20:40 +08:00
Do not start web UI by default, and remove web UI from documentation. (#554)
This commit is contained in:
committed by
Alexey Tumanov
parent
a74ee52f26
commit
5572561704
@@ -47,30 +47,3 @@ that you've cloned the git repository.
|
||||
.. code-block:: bash
|
||||
|
||||
python test/runtest.py
|
||||
|
||||
|
||||
Optional - web UI
|
||||
-----------------
|
||||
|
||||
Ray's web UI requires **Python 3**. To enable the web UI to work, install these
|
||||
Python packages.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
pip install aioredis asyncio websockets
|
||||
|
||||
Then install `Polymer`_, which also requires `Node.js`_ and `Bower`_.
|
||||
|
||||
.. _`Polymer`: https://www.polymer-project.org/1.0/docs/tools/polymer-cli
|
||||
.. _`Node.js`: https://nodejs.org/en/download/
|
||||
.. _`Bower`: http://bower.io/#install-bower
|
||||
|
||||
Once you've installed Polymer, run the following.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
cd ray/webui
|
||||
bower install
|
||||
|
||||
Then while Ray is running, you should be able to view the web UI at
|
||||
``http://localhost:8080``.
|
||||
|
||||
@@ -52,30 +52,3 @@ that you've cloned the git repository.
|
||||
.. code-block:: bash
|
||||
|
||||
python test/runtest.py
|
||||
|
||||
|
||||
Optional - web UI
|
||||
-----------------
|
||||
|
||||
Ray's web UI requires **Python 3**. To enable the web UI to work, install these
|
||||
Python packages.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
pip install aioredis asyncio websockets
|
||||
|
||||
Then install `Polymer`_, which also requires `Node.js`_ and `Bower`_.
|
||||
|
||||
.. _`Polymer`: https://www.polymer-project.org/1.0/docs/tools/polymer-cli
|
||||
.. _`Node.js`: https://nodejs.org/en/download/
|
||||
.. _`Bower`: http://bower.io/#install-bower
|
||||
|
||||
Once you've installed Polymer, run the following.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
cd ray/webui
|
||||
bower install
|
||||
|
||||
Then while Ray is running, you should be able to view the web UI at
|
||||
``http://localhost:8080``.
|
||||
|
||||
@@ -70,29 +70,3 @@ ray.get([f.remote(f.remote(f.remote(0))) for _ in range(1000)])
|
||||
|
||||
When you want to stop the Ray processes, run `./ray/scripts/stop_ray.sh`
|
||||
on each node.
|
||||
|
||||
### Using the Web UI on a Cluster
|
||||
|
||||
If you followed the instructions for setting up the web UI, then
|
||||
`./ray/scripts/start_ray.sh --head` will attempt to start a Python 3 webserver
|
||||
on the head node. In order to view the web UI from a machine that is not part of
|
||||
the cluster (like your laptop), you can use SSH port forwarding. The web UI
|
||||
requires ports 8080 and 8888, which you can forward using a command like the
|
||||
following.
|
||||
|
||||
```
|
||||
ssh -L 8080:localhost:8080 -L 8888:localhost:8888 ubuntu@<head-node-public-ip>
|
||||
```
|
||||
|
||||
Then you can view the web UI on your laptop by navigating to
|
||||
`http://localhost:8080` in a browser.
|
||||
|
||||
#### Troubleshooting the Web UI
|
||||
|
||||
Note that to use the web UI, additional setup is required. In particular, you
|
||||
must be using Python 3 or you must at least have `python3` on your path.
|
||||
|
||||
If the web UI doesn't work, it's possible that the web UI processes were never
|
||||
started (check `ps aux | grep polymer` and `ps aux | grep ray_ui.py`). If they
|
||||
were started, see if you can fetch the web UI from within the head node (try
|
||||
`wget http://localhost:8080` on the head node).
|
||||
|
||||
@@ -1054,7 +1054,7 @@ def start_ray_head(address_info=None,
|
||||
include_global_scheduler=True,
|
||||
include_log_monitor=True,
|
||||
include_redis=True,
|
||||
include_webui=True,
|
||||
include_webui=False,
|
||||
start_workers_from_local_scheduler=start_workers_from_local_scheduler,
|
||||
num_cpus=num_cpus,
|
||||
num_gpus=num_gpus)
|
||||
|
||||
Reference in New Issue
Block a user