Repository navigation
[doc] Batch of small docs fixes - #67257
Conversation
…ments The 2.5 GiB and 1 GiB examples computed 2500 MiB and 1000 MiB. Use exact binary multiples, and state that the memory argument takes bytes. Signed-off-by: Douglas Strodtman <[email protected]>
…yment The application guide covered only Ray Jobs. Link the Serve development workflow and the VM and KubeRay deployment guides from it. Closes #38545 Signed-off-by: Douglas Strodtman <[email protected]>
…ding guide The guide uses a LightningDataModule but never says it works unchanged or points to the comparison with Ray Data. Closes #48024 Signed-off-by: Douglas Strodtman <[email protected]>
The hidden install cell still pinned ax-platform 0.2.4, which predates the Ax 1.0 API that AxSearch now targets (#60522). Pin 1.2.1, the version in tune-requirements.txt, and drop the cell's stale pip output. Closes #54968 Signed-off-by: Douglas Strodtman <[email protected]>
The dashboard access section says manual configuration needs extra setup but only shows the cluster launcher and KubeRay. Add a tab with the SSH port-forwarding command. Closes #37804 Signed-off-by: Douglas Strodtman <[email protected]>
The variable makes Ray report the proxied dashboard URL instead of the head node's address (ray_constants.py, worker.py), but no doc mentions it. Closes #46794 Signed-off-by: Douglas Strodtman <[email protected]>
KubeRay creates <name>-head-svc and <name>-serve-svc only once every Serve application is RUNNING (rayservice_controller.go, reconcileServe and getAndCheckServeStatus). Before that, only the RayCluster's head Service exists, which looked like missing Services in the issue. Closes #50958 Signed-off-by: Douglas Strodtman <[email protected]>
The troubleshooting note hardcoded /usr/local, which is wrong on Apple silicon, where Homebrew installs under /opt/homebrew. Closes #42430 Signed-off-by: Douglas Strodtman <[email protected]>
The autoscaler merges setup_commands into worker_setup_commands (merge_setup_commands in util.py), and a node type's own worker_setup_commands then replaces that merged list wholesale (_get_node_type_specific_fields in autoscaler.py). So the node-type list also drops the general setup_commands, which the reference didn't say. Closes #37831 Signed-off-by: Douglas Strodtman <[email protected]>
…rics persistence Neither quickstart mentions that Ray keeps no logs or metrics after the cluster is gone. Add next steps that link the VM and KubeRay persistence guides. Closes #37631 Signed-off-by: Douglas Strodtman <[email protected]>
The manual setup section mentioned only port 6379. State that nodes need bidirectional access, that several ports default to random values, and link the full ports reference. Closes #24491 Signed-off-by: Douglas Strodtman <[email protected]>
The loading and saving pages labeled their cloud tabs S3, GCS, and Azure Blob Storage. In Ray docs GCS means the Global Control Service, so spell out Google Cloud Storage, and use Amazon S3 to match. Signed-off-by: Douglas Strodtman <[email protected]>
Since #47737, Ray links the libtpu log directory (TPU_LOG_DIR, or /tmp/tpu_logs) into each node's log directory as tpu_logs (node.py), and the log monitor picks those files up (log_monitor.py), so they show up in the dashboard Logs view. Document it in the TPU guide and point to it from the Logs view. Closes #51102 Signed-off-by: Douglas Strodtman <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request makes comprehensive updates to Ray's documentation, covering cluster management, VM configuration, memory scheduling, KubeRay, and observability. Notable additions include instructions for port forwarding, details on the RAY_OVERRIDE_DASHBOARD_URL environment variable, port requirements for on-premises clusters, and TPU logging. The review feedback suggests a minor improvement to include a protocol scheme (e.g., https://) in the example URL for RAY_OVERRIDE_DASHBOARD_URL to make it fully qualified.
| url = "http://localhost:8265" | ||
| ``` | ||
|
|
||
| Ray reports the head node's own dashboard address by default, which users behind the proxy might not be able to reach. To report the proxied URL instead, set the ``RAY_OVERRIDE_DASHBOARD_URL`` environment variable in the process that connects to Ray, for example ``RAY_OVERRIDE_DASHBOARD_URL=www.my-website.com/ray/dashboard/``. Ray then uses that URL when it reports the dashboard address to users, such as in the message it logs when a driver connects. The variable changes only the reported URL. It doesn't change the address the dashboard listens on. |
There was a problem hiding this comment.
The example URL www.my-website.com/ray/dashboard/ is missing a protocol scheme (such as https://). It is highly recommended to include the protocol scheme so that the reported URL is fully qualified and easily recognized as a clickable link by terminal emulators and other tools.
| Ray reports the head node's own dashboard address by default, which users behind the proxy might not be able to reach. To report the proxied URL instead, set the ``RAY_OVERRIDE_DASHBOARD_URL`` environment variable in the process that connects to Ray, for example ``RAY_OVERRIDE_DASHBOARD_URL=www.my-website.com/ray/dashboard/``. Ray then uses that URL when it reports the dashboard address to users, such as in the message it logs when a driver connects. The variable changes only the reported URL. It doesn't change the address the dashboard listens on. | |
| Ray reports the head node's own dashboard address by default, which users behind the proxy might not be able to reach. To report the proxied URL instead, set the ``RAY_OVERRIDE_DASHBOARD_URL`` environment variable in the process that connects to Ray, for example ``RAY_OVERRIDE_DASHBOARD_URL=https://www.my-website.com/ray/dashboard/``. Ray then uses that URL when it reports the dashboard address to users, such as in the message it logs when a driver connects. The variable changes only the reported URL. It doesn't change the address the dashboard listens on. |
|
|
||
| ### Open the ports Ray uses | ||
|
|
||
| Ray needs bidirectional network access between every pair of nodes, not only from the worker nodes to the head node. Each node listens on several ports, and the head node listens on a few more, such as 6379 for the GCS server and 8265 for the dashboard. Several of the per-node ports default to random values, so a firewall that allows only a fixed list of ports blocks them. Either allow all traffic between the cluster's nodes, or pin each port with its `ray start` option and open those ports. For the full list of ports and options, see {ref}`ray-ports`. |
There was a problem hiding this comment.
| Ray needs bidirectional network access between every pair of nodes, not only from the worker nodes to the head node. Each node listens on several ports, and the head node listens on a few more, such as 6379 for the GCS server and 8265 for the dashboard. Several of the per-node ports default to random values, so a firewall that allows only a fixed list of ports blocks them. Either allow all traffic between the cluster's nodes, or pin each port with its `ray start` option and open those ports. For the full list of ports and options, see {ref}`ray-ports`. | |
| Ray needs bidirectional network access between every pair of nodes, not only from the worker nodes to the head node. Each node listens on several ports, and the head node listens on a few more, such as `6379` for the GCS server and `8265` for the dashboard. Several of the per-node ports default to random values, so a firewall that allows only a fixed list of ports blocks them. Either allow all traffic between the cluster's nodes, or pin each port with its `ray start` option and open those ports. For the full list of ports and options, see {ref}`ray-ports`. |
Actually not sure what the style rule is here if there is one. I just am used to putting ports in tix
…ectly The fault-tolerance deprecation section called the argument restore_from_checkpoint. The trainer parameter, and the one that raises the deprecation warning, is resume_from_checkpoint (python/ray/train/v2/api/data_parallel_trainer.py). Signed-off-by: Douglas Strodtman <[email protected]>
The BayesOpt Tune example pinned bayesian-optimization==1.2.0, which uses np.float, removed in NumPy 1.24, so the notebook fails at BayesOptSearch setup. Pin 1.4.0 instead, the version Ray tests against in python/requirements_compiled.txt. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
## Description A batch of 15 small docs fixes. Most close an open docs issue, listed under Related issues. Each fix is its own commit, so a reviewer can drop any one without touching the rest. Batching follows the "No low-value busywork PRs" rule in `AGENTS.md`, which allows mechanical fixes when they're bundled. The changes are prose and one notebook install cell, all under `doc/`. Each fix was checked against the current source on master. | Area | Change | Source checked | |---|---|---| | Core | The memory-aware scheduling examples said 2.5 GiB and 1 GiB but computed 2500 MiB and 1000 MiB. The examples now use exact binary multiples, and the text says `memory` is in bytes. | `ray.remote` docstring in `_private/worker.py` (memory request in bytes) | | Cluster | Link the cluster application guide to the Ray Serve development and deployment guides. | Existing `serve-dev-workflow`, `serve-in-production-deploying`, and `serve-in-production-kubernetes` labels | | Train | Link the Lightning getting-started guide to the PyTorch data loading comparison. | `train-datasets-pytorch` section | | Tune | Pin the hidden install cell of `ax-example.ipynb` to `ax-platform==1.2.1`, the version in `tune-requirements.txt`, and drop the cell's stale pip output. ray-project#60522 moved `AxSearch` to the Ax 1.0 API. | `python/requirements/ml/tune-requirements.txt`, `ax_search.py` | | Train | The fault-tolerance deprecation section called the deprecated argument `restore_from_checkpoint`. The trainer parameter is `resume_from_checkpoint`. | `python/ray/train/v2/api/data_parallel_trainer.py` | | Tune | The BayesOpt example pinned `bayesian-optimization==1.2.0`, which uses `np.float` and fails in `tuner.fit()` on current NumPy. Pin 1.4.0, the version in `python/requirements_compiled.txt`. Executing the notebook with `jupyter nbconvert --execute` on Ray 2.59.0 and NumPy 2.4.6 runs clean with 1.4.0 and reproduces `AttributeError: module 'numpy' has no attribute 'float'` with 1.2.0. | `python/requirements_compiled.txt` | | Cluster | Add a manual-configuration tab with SSH port forwarding to the dashboard access section. | `ray start --dashboard-port`, default 8265 | | Cluster | Document `RAY_OVERRIDE_DASHBOARD_URL` for reverse proxies. | `ray_constants.py`, `worker.py` (`get_dashboard_url` and the connect log) | | Serve | Note that KubeRay creates `<name>-head-svc` and `<name>-serve-svc` only after every Serve application is `RUNNING`. | KubeRay `rayservice_controller.go` (`reconcileServe`, `getAndCheckServeStatus`) | | Cluster | Replace the hardcoded Homebrew Grafana path with `$(brew --prefix)/etc/grafana/grafana.ini`. | The Homebrew `grafana` formula's service passes `--config etc/grafana/grafana.ini` | | Cluster | A node type's `worker_setup_commands` replaces both the general `setup_commands` and `worker_setup_commands`. It doesn't replace only the latter. | `merge_setup_commands` in `autoscaler/_private/util.py`, `_get_node_type_specific_fields` in `autoscaler.py`, `ray-schema.json` | | Cluster | Add next-steps links to log and metrics persistence on the VM and KubeRay quickstarts. | Existing persistence guides | | Cluster | Add a port requirements section to the manual on-premises setup that links the ports reference. | `core/configure.md` ports reference | | Data | Rename the `S3` and `GCS` cloud storage tabs to `Amazon S3` and `Google Cloud Storage`. In Ray docs, GCS means the Global Control Service. | `writing-style.md` term table | | KubeRay | Document where `libtpu` logs appear (`tpu_logs` in the node log directory and the dashboard Logs view). Link to it from the Logs view section. | `_private/node.py` (`_init_temp`), `_private/log_monitor.py`, ray-project#47737 | ## Related issues Closes ray-project#42681 Closes ray-project#38545 Closes ray-project#48024 Closes ray-project#54968 Closes ray-project#37804 Closes ray-project#46794 Closes ray-project#50958 Closes ray-project#42430 Closes ray-project#37831 Closes ray-project#37631 Closes ray-project#24491 Closes ray-project#51102 ## Not a duplicate For each linked issue, `gh pr list --repo ray-project/ray --state open --search "<issue> in:body"` returned no open PRs. A content search turned up three open PRs that edit the same pages: ray-project#66289 (OCI provider), ray-project#66958 (Grafana annotations), and ray-project#66920 (NPU observability). They touch different hunks and don't overlap these changes. The data tab rename has no linked issue, and no open PR touches those tabs. ## Testing - `make -C doc rtd-build` (the RtD-faithful clean build: Python 3.11, `doc/requirements-doc.lock.txt`, `-W --keep-going`): `build succeeded.` with exit code 0 and zero Sphinx warnings. The only `WARNING` lines are two RLlib logger messages printed at import time. - Vale, run on the changed pages and limited to the added lines: no findings remain beyond spelling hits on `proxied` (the page already uses it) and `libtpu`, which is now in backticks. - Pre-commit hooks passed on every commit. - Every `{ref}` target added in this PR resolves to exactly one label under `doc/source/`. - I didn't execute the Ax notebook. Its only change is the hidden install cell. CI already tests the Ax integration at `ax-platform==1.2.1` through `python/ray/tune/examples/ax_example.py`. ## AI assistance Drafted with AI assistance (Claude Code). Each technical claim was checked against the source cited in the table. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Description
A batch of 15 small docs fixes. Most close an open docs issue, listed under Related issues. Each fix is its own commit, so a reviewer can drop any one without touching the rest. Batching follows the "No low-value busywork PRs" rule in
AGENTS.md, which allows mechanical fixes when they're bundled.The changes are prose and one notebook install cell, all under
doc/. Each fix was checked against the current source on master.memoryis in bytes.ray.remotedocstring in_private/worker.py(memory request in bytes)serve-dev-workflow,serve-in-production-deploying, andserve-in-production-kuberneteslabelstrain-datasets-pytorchsectionax-example.ipynbtoax-platform==1.2.1, the version intune-requirements.txt, and drop the cell's stale pip output. #60522 movedAxSearchto the Ax 1.0 API.python/requirements/ml/tune-requirements.txt,ax_search.pyrestore_from_checkpoint. The trainer parameter isresume_from_checkpoint.python/ray/train/v2/api/data_parallel_trainer.pybayesian-optimization==1.2.0, which usesnp.floatand fails intuner.fit()on current NumPy. Pin 1.4.0, the version inpython/requirements_compiled.txt. Executing the notebook withjupyter nbconvert --executeon Ray 2.59.0 and NumPy 2.4.6 runs clean with 1.4.0 and reproducesAttributeError: module 'numpy' has no attribute 'float'with 1.2.0.python/requirements_compiled.txtray start --dashboard-port, default 8265RAY_OVERRIDE_DASHBOARD_URLfor reverse proxies.ray_constants.py,worker.py(get_dashboard_urland the connect log)<name>-head-svcand<name>-serve-svconly after every Serve application isRUNNING.rayservice_controller.go(reconcileServe,getAndCheckServeStatus)$(brew --prefix)/etc/grafana/grafana.ini.grafanaformula's service passes--config etc/grafana/grafana.iniworker_setup_commandsreplaces both the generalsetup_commandsandworker_setup_commands. It doesn't replace only the latter.merge_setup_commandsinautoscaler/_private/util.py,_get_node_type_specific_fieldsinautoscaler.py,ray-schema.jsoncore/configure.mdports referenceS3andGCScloud storage tabs toAmazon S3andGoogle Cloud Storage. In Ray docs, GCS means the Global Control Service.writing-style.mdterm tablelibtpulogs appear (tpu_logsin the node log directory and the dashboard Logs view). Link to it from the Logs view section._private/node.py(_init_temp),_private/log_monitor.py, #47737Related issues
Closes #42681
Closes #38545
Closes #48024
Closes #54968
Closes #37804
Closes #46794
Closes #50958
Closes #42430
Closes #37831
Closes #37631
Closes #24491
Closes #51102
Not a duplicate
For each linked issue,
gh pr list --repo ray-project/ray --state open --search "<issue> in:body"returned no open PRs. A content search turned up three open PRs that edit the same pages: #66289 (OCI provider), #66958 (Grafana annotations), and #66920 (NPU observability). They touch different hunks and don't overlap these changes. The data tab rename has no linked issue, and no open PR touches those tabs.Testing
make -C doc rtd-build(the RtD-faithful clean build: Python 3.11,doc/requirements-doc.lock.txt,-W --keep-going):build succeeded.with exit code 0 and zero Sphinx warnings. The onlyWARNINGlines are two RLlib logger messages printed at import time.proxied(the page already uses it) andlibtpu, which is now in backticks.{ref}target added in this PR resolves to exactly one label underdoc/source/.ax-platform==1.2.1throughpython/ray/tune/examples/ax_example.py.AI assistance
Drafted with AI assistance (Claude Code). Each technical claim was checked against the source cited in the table.
🤖 Generated with Claude Code