mirror of
https://github.com/wassname/ray.git
synced 2026-09-09 11:32:43 +08:00
Move global state API out of global_state object. (#4857)
This commit is contained in:
committed by
Philipp Moritz
parent
ea8d7b4dc0
commit
6703519144
@@ -60,7 +60,7 @@ Python script with the following:
|
||||
.. code-block:: bash
|
||||
|
||||
RAY_RAYLET_GDB=1 RAY_RAYLET_TMUX=1 python
|
||||
|
||||
|
||||
You can then list the ``tmux`` sessions with ``tmux ls`` and attach to the
|
||||
appropriate one.
|
||||
|
||||
@@ -71,14 +71,14 @@ allow core dump files to be written.
|
||||
|
||||
Inspecting Redis shards
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
To inspect Redis, you can use the ``ray.experimental.state.GlobalState`` Python
|
||||
API. The easiest way to do this is to start or connect to a Ray cluster with
|
||||
``ray.init()``, then query the API like so:
|
||||
To inspect Redis, you can use the global state API. The easiest way to do this
|
||||
is to start or connect to a Ray cluster with ``ray.init()``, then query the API
|
||||
like so:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
ray.init()
|
||||
ray.worker.global_state.client_table()
|
||||
ray.nodes()
|
||||
# Returns current information about the nodes in the cluster, such as:
|
||||
# [{'ClientID': '2a9d2b34ad24a37ed54e4fcd32bf19f915742f5b',
|
||||
# 'EntryType': 0,
|
||||
|
||||
Reference in New Issue
Block a user