Repository navigation
[doc][History server] Update History server documentation - #65139
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the KubeRay History Server documentation to align with v1.7 features, such as zero-boilerplate setup, on-demand session loading, and unified workload support. It also updates the setup instructions, environment variables, RBAC configurations, and verification steps. The review feedback correctly identifies that the environment variable KSA is used in the RBAC configuration but is missing from the defined environment variables list, which would cause envsubst to fail, and suggests removing unused variables GSA_NAME and GSA_EMAIL.
| export PROJECT_ID=<PROJECT_ID> | ||
| export PROJECT_NUMBER=<PROJECT_NUMBER> | ||
| export REGION=<REGION> | ||
| export GKE_CLUSTER_NAME=<GKE_CLUSTER_NAME> | ||
| export GCS_BUCKET=<GCS_BUCKET_HERE> | ||
| export GSA_NAME=<GSA_NAME> | ||
| export GSA_EMAIL="${GSA_NAME}@${PROJECT_ID}.iam.gserviceaccount.com" | ||
| export NAMESPACE=<NAMESPACE> | ||
| export RAY_CLUSTER=<RAY_CLUSTER_NAME> |
There was a problem hiding this comment.
The environment variable KSA is used in the RBAC configuration (line 116) but is not defined in this list of environment variables. If a user runs the commands, envsubst will replace ${KSA} with an empty string, causing the ClusterRoleBinding to be invalid.
Additionally, GSA_NAME and GSA_EMAIL are defined here but are never used anywhere else in this document. Removing them reduces clutter and avoids confusion.
| export PROJECT_ID=<PROJECT_ID> | |
| export PROJECT_NUMBER=<PROJECT_NUMBER> | |
| export REGION=<REGION> | |
| export GKE_CLUSTER_NAME=<GKE_CLUSTER_NAME> | |
| export GCS_BUCKET=<GCS_BUCKET_HERE> | |
| export GSA_NAME=<GSA_NAME> | |
| export GSA_EMAIL="${GSA_NAME}@${PROJECT_ID}.iam.gserviceaccount.com" | |
| export NAMESPACE=<NAMESPACE> | |
| export RAY_CLUSTER=<RAY_CLUSTER_NAME> | |
| export PROJECT_ID=<PROJECT_ID> | |
| export PROJECT_NUMBER=<PROJECT_NUMBER> | |
| export REGION=<REGION> | |
| export GKE_CLUSTER_NAME=<GKE_CLUSTER_NAME> | |
| export GCS_BUCKET=<GCS_BUCKET_HERE> | |
| export KSA=<KUBERNETES_SERVICE_ACCOUNT_NAME> | |
| export NAMESPACE=<NAMESPACE> | |
| export RAY_CLUSTER=<RAY_CLUSTER_NAME> |
There was a problem hiding this comment.
So we are assuming that users will follow the guide to configure storage: https://docs.ray.io/en/latest/cluster/kubernetes/user-guides/gke-gcs-bucket.html#create-a-kubernetes-service-account which will include setting the KSA variable.
3a4aad8 to
f0e929c
Compare
| To enable automatic collector sidecar injection in KubeRay v1.7+, enable the feature gate when installing the operator: | ||
| ```sh | ||
| helm install kuberay-operator \ | ||
| --set featureGates.RayClusterHistoryServer=true \ |
There was a problem hiding this comment.
let's keep the official documentation without the feature gate, I would hope it's still relatively simple with all the changes done on the collector. We can have a separate section at the bottom for this feature or save it for v1.8 docs
There was a problem hiding this comment.
I think we can link to the featureGate doc page once it's there.
|
cc @win5923 and @JiangJiaWei1103 to also have a look |
| @@ -12,222 +12,272 @@ The Ray History Server project is currently in **alpha** and subject to breaking | |||
There was a problem hiding this comment.
Can we remove this warning? We are promoting to Beta stage
There was a problem hiding this comment.
@andrewsykim Please correct me if I'm wrong, but as our discussion we don't want to announce it as Beta until everything is in beta ie the KubeRay API as well right?
There was a problem hiding this comment.
Correction, I think I misunderstood. The discussion was for the api and not for the history server. We should label the history server as beta.
| ## Environment Variables used | ||
|
|
||
| This guide uses the following environment variables: | ||
| ```sh | ||
| export RAY_CLUSTER=raycluster-historyserver | ||
| export NAMESPACE=default | ||
| export REGION=<REGION> | ||
| export GCS_BUCKET=<GCS_BUCKET_HERE> | ||
| export PROJECT_ID=<PROJECT_ID> | ||
| export PROJECT_NUMBER=<PROJECT_NUMBER> | ||
| export REGION=<REGION> | ||
| export GKE_CLUSTER_NAME=<GKE_CLUSTER_NAME> | ||
| export GCS_BUCKET=<GCS_BUCKET_HERE> | ||
| export GSA_NAME=<GSA_NAME> | ||
| export GSA_EMAIL="${GSA_NAME}@${PROJECT_ID}.iam.gserviceaccount.com" | ||
| export NAMESPACE=<NAMESPACE> | ||
| export RAY_CLUSTER=<RAY_CLUSTER_NAME> |
There was a problem hiding this comment.
We also export env var in some of the following sections. Could we remove this section, and do export XXX=.... in each section below so that user knows exactly where those env vars are for.
| * `RAY_DASHBOARD_AGGREGATOR_AGENT_EVENTS_EXPORT_ADDR`: Target HTTP endpoint for the collector's event server (e.g. `"http://localhost:8084/v1/events"`). | ||
| * `RAY_DASHBOARD_AGGREGATOR_AGENT_EXPOSABLE_EVENT_TYPES`: Comma-separated list of event types collected (e.g. `"TASK_DEFINITION_EVENT,TASK_LIFECYCLE_EVENT,ACTOR_TASK_DEFINITION_EVENT,TASK_PROFILE_EVENT,DRIVER_JOB_DEFINITION_EVENT,DRIVER_JOB_LIFECYCLE_EVENT,ACTOR_DEFINITION_EVENT,ACTOR_LIFECYCLE_EVENT,NODE_DEFINITION_EVENT,NODE_LIFECYCLE_EVENT"`). | ||
|
|
||
| #### Collector Container Environment Variables |
There was a problem hiding this comment.
Could we group env vars by option and not optional so that it's clearer?
There was a problem hiding this comment.
I separated the env vars into different sections. PTAL!
1b93c75 to
db4e061
Compare
machichima
left a comment
There was a problem hiding this comment.
Overall LGTM! Just two comments
| Once the Ray Cluster terminates, the collector populates the object store with latest events and logs. You can run `gsutil ls -r gs://${GCS_BUCKET}` to list the current objects. | ||
| Once the Ray Cluster terminates, the collector populates object storage with the latest events and logs. You can run `gsutil ls -r gs://${GCS_BUCKET}` to list the current objects in storage. | ||
|
|
||
| The result looks something similar to this: |
There was a problem hiding this comment.
Would it be better to also show the file architecture here? It may be hard for users to know the log architecture by looking at this output. And we can make this example output shorter (just as reference)
There was a problem hiding this comment.
I'm good with that. Let me try to show the file architecture.
There was a problem hiding this comment.
PTAL: I changed it into this:
gs://${GCS_BUCKET}/${RAY_ROOT_DIR}/
├── cluster-metadata/
│ └── <owner_kind_or_raycluster>/
│ └── <namespace>_<cluster_name>/
│ └── <session_name> # Cluster metadata JSON
└── cluster-history/
└── <OwnerKind>/
└── <namespace>/
└── <cluster_name>/
└── <session_name>/
├── logs/
│ └── <node_id>/
│ ├── dashboard_agent.log
│ ├── raylet.out
│ └── ...
├── node_events/
│ └── <node_id>-<date_hour> # Node event logs
└── job_events/
└── <job_id>/
└── <node_id>-<date_hour>
|
cc @andrewsykim for final pass |
| * **History Server Image**: `quay.io/kuberay/historyserver:latest` (or `:nightly`) | ||
| * **Collector Image**: `quay.io/kuberay/collector:latest` (or `:nightly`) |
There was a problem hiding this comment.
| * **History Server Image**: `quay.io/kuberay/historyserver:latest` (or `:nightly`) | |
| * **Collector Image**: `quay.io/kuberay/collector:latest` (or `:nightly`) | |
| * **History Server Image**: `quay.io/kuberay/historyserver:nightly` | |
| * **Collector Image**: `quay.io/kuberay/collector:nightly` |
Quay publish only nightly and per_commit SHAs, I think use latest cannot work.
There was a problem hiding this comment.
I think we are expecting this to work after release
There was a problem hiding this comment.
I think to avoid any confusion, lets keep it as just nightly for the time being until history server is officially released with 1.7? WDYT, or we can treat it as prepping for the release?
There was a problem hiding this comment.
Yes we can do that. After release we can change it to the release version (rather than latest) to ensure user can always reproduce when following the docs
e75a50b to
78ff6ba
Compare
dstrodtman
left a comment
There was a problem hiding this comment.
Docs review from the Anyscale docs team. I ran this pass myself with assistance from Claude Code, and I've read and stand behind every comment here.
Scope note up front: this is a style, grammar, and docs-convention review only. I'm not the authority on whether the described behavior is correct, and I defer to the KubeRay maintainers for final approval on anything technical. Treat the technical questions at the end as questions, not blockers I'm asserting. If a docs sign-off is useful once the content questions settle, I'm happy to stamp the docs side.
Thanks for taking this on. The rewrite is a real improvement over the old page, and the technical content holds up where I could check it. I verified RAY_DASHBOARD_AGGREGATOR_AGENT_EXPOSABLE_EVENT_TYPES (python/ray/dashboard/modules/aggregator/publisher/configs.py:42), RAY_DASHBOARD_AGGREGATOR_AGENT_EVENTS_EXPORT_ADDR (python/ray/dashboard/modules/aggregator/aggregator_agent.py:58), and RAY_enable_ray_event (src/ray/common/ray_config_def.h:633, default false) against the tree, and the old ..._PUBLISHER_HTTP_ENDPOINT_EXPOSABLE_EVENT_TYPES name is indeed gone. The rename is correct.
Everything below is measured against the Ray documentation style guide. The inline comments carry suggested edits you can accept directly. A few classes of issue repeat across the page, so I've grouped those here rather than commenting 20 times.
Worth a look before merge
The first two here are for the maintainers to rule on rather than me. I'm raising them because a reader would notice, not because I know the answer.
The page never states a KubeRay version requirement. This PR removes "introduced in KubeRay v1.6," and the description says the goal is to reflect KubeRay v1.7+ behavior, but Prerequisites lists only Ray v2.55. A reader on KubeRay 1.6 gets no signal that the RBAC resource names, the storage layout, and the /enter_cluster route shape all changed. Adding a minimum KubeRay version to Prerequisites would fix that.
Removing the alpha warning is a stability claim. Dropping the {warning} about alpha status and breaking changes asserts the project has moved past alpha. If that's accurate, great. If the stability status hasn't actually changed, the warning should stay, since publishing prebuilt images doesn't by itself imply a stability guarantee.
Invalid JSON in the sample output. Inline at L293, which also covers a second one at L307.
Cross-references instead of hardcoded docs.ray.io URLs
L53 and L57 link to docs.ray.io/en/latest/.... This is more than a style preference: /en/latest/ pins readers to the last tagged release rather than the docs they're reading, and hardcoded URLs rot silently on a page move instead of failing the build. myst_heading_anchors = 3 is set in doc/source/conf.py and both targets are .md sources, so a relative link with a heading anchor works and is verified by the build. Suggestions inline. L7's Ray Dashboard link has the same problem, though it predates this PR.
Capitalization consistency
Where Kubernetes has its own convention, defer to it. Kubernetes documentation capitalizes API object kinds, so Pod, Namespace, ServiceAccount, ClusterRole, and ClusterRoleBinding are correct as written, and Ray's "lowercase generic nouns" rule isn't meant to override that. The only ask here is internal consistency: the page currently has "RayCluster Pod" (L119) next to "pods" (L179). Pick the Kubernetes form and use it throughout.
Two related notes:
- The KubeRay components aren't Kubernetes objects, so Ray's rule does apply to them. Use "collector" lowercase, and "Ray History Server" or "History Server" as the component name, rather than alternating with "history server" (L244, L246, L248, L253).
- Vale's
Vale.Termsrule flagsNamespaceat L165 and wants lowercase. That one's describing a field's value rather than naming the API kind, so lowercase reads right there. Worth knowing the two conventions genuinely collide on that word.
Sentence-case headings
The style guide requires sentence case for every heading. Vale can't catch these, because .vale.ini sets Google.Headings = No. Most are handled in the inline suggestions; these four aren't:
- L31:
## Create GKE Cluster with Workload Identity Enabled->## Create a GKE cluster with Workload Identity enabled - L65:
## Set up Role-Based Access Control (RBAC)->## Set up role-based access control (RBAC) - L144:
#### Collector Container Environment Variables->#### Collector container variables - L206:
### Storage Layout->### Storage layout
L51's ## Install KubeRay Operator -> ## Install the KubeRay operator predates this PR, if you want to sweep it while you're here.
Three headings also use & (L55, L131, L175). The guide asks for words rather than symbols in prose. Covered in the inline suggestions.
Remaining mechanical items
e.g. -> for example. L150, L158, L161, and L169 in the collector variables block. L313 already writes "for example," so the page is currently inconsistent with itself. The inline suggestions handle L141, L142, and L172.
Contractions. L158 "do not require" -> "don't require".
via -> with. L149, "populated from status.podIP via the Kubernetes Downward API".
Missing front matter description. The style guide asks every page to carry one for search results and social previews. Since this is close to a full rewrite, it's a good moment to add it above the (kuberay-history-server)= label:
---
myst:
html_meta:
description: "Set up the Ray History Server with KubeRay to access logs, events, and the Ray Dashboard for RayCluster, RayJob, and RayService workloads after they terminate."
---Blank line before fenced code blocks. Inconsistent through the page: present at L108 and L121, absent at L179, L186, L192, L248, L282, and L332. Worth normalizing.
<GCS_BUCKET_HERE>. The angle brackets already mark it as a placeholder, so "HERE" is redundant. <gcs-bucket> matches the convention in the style guide.
Questions rather than findings
These are judgment calls, and several are technical rather than editorial, so they're for you and the KubeRay maintainers to settle. I'd rather ask than assert.
-
L153,
STORAGE_BACKEND(or--runtime-class-nameflag).runtime-class-namecollides with the Kubernetes RuntimeClass concept, so it reads like it configures scheduling rather than storage. This carried over from the old page, so I assume it's the real upstream flag name. Is it worth a short parenthetical noting the two are unrelated? -
L169,
EVENTS_PORT"defaults to8080, e.g.8084". Why does the example diverge from the default? And does 8080 collide with the History Server service port used at L250? -
L286,
rayjob-10k-no-boilerplate-dn5kz. Reads like the name of an internal test run. A neutral example name might be less distracting. -
L59, "Data Retention" placement. It's conceptual guidance sitting inside a setup step, which interrupts the procedure. Would it work better as its own section near the end of the page?
-
L131-L173, the environment variable reference. Roughly 40 lines of reference material in the middle of a deploy procedure, reaching H4 depth. The style guide treats H4 as a signal to split. Two options: move it to a reference section at the end of the page, or split it to its own page and link from here. Related:
**Required on All Nodes:**and its siblings at L157, L160, and L164 are bold text standing in for headings. A{list-table}with variable, requirement, and description columns would carry the same grouping without either the bold or another heading level. -
L9,
## Ray History Server. An H2 that repeats the page title, now holding "what is this" content.## What is the Ray History Server?would match the guide's question-heading convention for conceptual sections.
| The Ray History Server is a component in KubeRay used to access and debug Ray workload resources (`RayCluster`, `RayJob`, `RayService`) even after their termination. | ||
|
|
||
| The Ray History Server consists of two main components: | ||
| 1. **Collector**: Runs as a sidecar container on Ray nodes to collect and export events and logs to object storage. | ||
| 2. **History Server**: A standalone deployment that fetches cluster sessions from storage on demand and serves the Ray Dashboard API. | ||
|
|
||
| The Ray History Server consists of two main containers: | ||
| 1. Collector - lives on the Ray nodes and collects/exports the necessary events and logs. | ||
| 2. History Server - standalone deployment that reconstructs and serves the Ray endpoints. | ||
| ### Key Features | ||
|
|
||
| * **On-Demand Session Loading**: Delivers fast History Server startup by parsing historical cluster sessions lazily on demand when accessed, keeping memory usage stable and bounded. | ||
| * **Efficient Storage Footprint**: Compresses log and event streams in object storage to lower cloud storage costs and speed up data transfer. | ||
| * **Unified Workload Support**: Provides historical debugging and log access across `RayCluster`, `RayJob`, and `RayService` resources. |
There was a problem hiding this comment.
The style guide asks writers to cut benefits lists: "If a feature is worth recommending, recommend it directly. Don't follow 'This approach provides:' with a list of adjectives." It also asks for precise comparisons, and "Efficient Storage Footprint" doesn't name a measure.
Two claims in this list are real and load-bearing, so I've folded them into the component descriptions where a reader will actually need them: compression on the collector side, and lazy session parsing on the History Server side. "Unified Workload Support" duplicates the sentence directly above it.
Also: number every ordered-list item 1., since MyST renders them in source order and that makes inserting a step a one-line edit.
| The Ray History Server is a component in KubeRay used to access and debug Ray workload resources (`RayCluster`, `RayJob`, `RayService`) even after their termination. | |
| The Ray History Server consists of two main components: | |
| 1. **Collector**: Runs as a sidecar container on Ray nodes to collect and export events and logs to object storage. | |
| 2. **History Server**: A standalone deployment that fetches cluster sessions from storage on demand and serves the Ray Dashboard API. | |
| The Ray History Server consists of two main containers: | |
| 1. Collector - lives on the Ray nodes and collects/exports the necessary events and logs. | |
| 2. History Server - standalone deployment that reconstructs and serves the Ray endpoints. | |
| ### Key Features | |
| * **On-Demand Session Loading**: Delivers fast History Server startup by parsing historical cluster sessions lazily on demand when accessed, keeping memory usage stable and bounded. | |
| * **Efficient Storage Footprint**: Compresses log and event streams in object storage to lower cloud storage costs and speed up data transfer. | |
| * **Unified Workload Support**: Provides historical debugging and log access across `RayCluster`, `RayJob`, and `RayService` resources. | |
| The Ray History Server is a KubeRay component for accessing and debugging Ray workload resources after they terminate. It supports `RayCluster`, `RayJob`, and `RayService`. | |
| The Ray History Server has two parts: | |
| 1. **Collector**: runs as a sidecar container on Ray nodes and exports events and logs to object storage, compressing both streams before upload. | |
| 1. **History Server**: a standalone deployment that serves the Ray Dashboard API. It parses a stored cluster session only when you open that session, so memory use stays bounded and startup time doesn't grow with the number of stored sessions. |
| Make sure that you have done the following: | ||
|
|
||
| * Have [helm](https://helm.sh/docs/intro/install/) installed and updated | ||
| * Access and permissions to the Google Cloud project and the `gcloud` command-line tool. | ||
| * Docker or similar container building tool | ||
| * Minimum Ray Version installed: v2.55 | ||
| * A Kubernetes cluster. This guide uses GKE and `gcloud`, but the concepts apply to other Kubernetes distributions. | ||
| * Have [helm](https://helm.sh/docs/intro/install/) installed and updated. | ||
| * Minimum Ray version installed: v2.55. |
There was a problem hiding this comment.
Three small things in this list:
- The items aren't parallel. Two are noun phrases and one starts with the imperative "Have."
- The lead-in "Make sure that you have done the following:" fits imperatives but not noun phrases. Rewording the lead-in is the smaller change.
- Helm is a proper noun, so the link text should be "Helm."
This is also the natural home for the minimum KubeRay version. Which version introduced the resource names and routes this page now documents? I'd add it as a fourth bullet.
| Make sure that you have done the following: | |
| * Have [helm](https://helm.sh/docs/intro/install/) installed and updated | |
| * Access and permissions to the Google Cloud project and the `gcloud` command-line tool. | |
| * Docker or similar container building tool | |
| * Minimum Ray Version installed: v2.55 | |
| * A Kubernetes cluster. This guide uses GKE and `gcloud`, but the concepts apply to other Kubernetes distributions. | |
| * Have [helm](https://helm.sh/docs/intro/install/) installed and updated. | |
| * Minimum Ray version installed: v2.55. | |
| This guide requires the following: | |
| * A Kubernetes cluster. This guide uses GKE and `gcloud`, but the steps apply to other Kubernetes distributions. | |
| * [Helm](https://helm.sh/docs/intro/install/), installed and updated. | |
| * Ray 2.55 or later. |
| ## Install KubeRay Operator | ||
|
|
||
| Follow [Deploy a KubeRay operator](https://docs.ray.io/en/latest/cluster/kubernetes/getting-started/kuberay-operator-installation.html#step-2-install-kuberay-operator) to install the latest stable KubeRay operator from the Helm repository. | ||
| Follow [Deploy a KubeRay operator](https://docs.ray.io/en/latest/cluster/kubernetes/getting-started/kuberay-operator-installation.html#step-2-install-kuberay-operator) to install the latest KubeRay operator from the Helm repository. |
There was a problem hiding this comment.
Prefer a relative link with a heading anchor over a hardcoded docs.ray.io/en/latest/ URL. The build resolves and verifies it, so a page move fails CI instead of silently producing a 404, and readers on /en/master/ stay on the build they're reading rather than jumping to the last release.
I also dropped "latest," since the linked page pins a specific operator version and the word goes stale.
| Follow [Deploy a KubeRay operator](https://docs.ray.io/en/latest/cluster/kubernetes/getting-started/kuberay-operator-installation.html#step-2-install-kuberay-operator) to install the latest KubeRay operator from the Helm repository. | |
| Follow [Install KubeRay operator](../getting-started/kuberay-operator-installation.md#step-2-install-kuberay-operator) to install the KubeRay operator from the Helm repository. |
| ## Configure Google Cloud Storage & Workload Identity Permissions | ||
|
|
||
| Because the Ray History Server is in alpha, public container images aren't currently provided. You must build the component images from source and push them to your own registry. For a complete walk-through, refer to the [this guide](https://github.com/ray-project/kuberay/blob/master/historyserver/docs/image-build-push-guide.md). Future KubeRay releases offer pre-built base images for this feature. | ||
| Configure Google Cloud Storage bucket access and Workload Identity IAM permissions for your GKE cluster by following the [Configure GKE with Google Cloud Storage](https://docs.ray.io/en/latest/cluster/kubernetes/user-guides/gke-gcs-bucket.html#create-a-kubernetes-service-account) guide. |
There was a problem hiding this comment.
Same cross-reference change as above, plus sentence case and & -> "and" in the heading.
I dropped "IAM" because Vale's Google.Acronyms rule flags it and the sentence reads fine without it. Restore it if you think the distinction between bucket-level access and IAM bindings matters to the reader here.
| ## Configure Google Cloud Storage & Workload Identity Permissions | |
| Because the Ray History Server is in alpha, public container images aren't currently provided. You must build the component images from source and push them to your own registry. For a complete walk-through, refer to the [this guide](https://github.com/ray-project/kuberay/blob/master/historyserver/docs/image-build-push-guide.md). Future KubeRay releases offer pre-built base images for this feature. | |
| Configure Google Cloud Storage bucket access and Workload Identity IAM permissions for your GKE cluster by following the [Configure GKE with Google Cloud Storage](https://docs.ray.io/en/latest/cluster/kubernetes/user-guides/gke-gcs-bucket.html#create-a-kubernetes-service-account) guide. | |
| ## Configure Google Cloud Storage and Workload Identity permissions | |
| Configure Google Cloud Storage bucket access and Workload Identity permissions for your GKE cluster. See [Create a Kubernetes service account](gke-gcs-bucket.md#create-a-kubernetes-service-account). |
| ### Data Retention | ||
|
|
||
| This section goes through the process of setting up necessary cluster roles and permissions for history server | ||
| The Ray History Server does not provide native support for data retention or log purging, as retention requirements vary by user and deployment environment. To manage log expiration and control storage costs, configure object lifecycle policies directly using your cloud storage provider's management features. | ||
|
|
||
| ### Configure Role-based access control for Ray History Server | ||
| For Google Cloud Storage (GCS), refer to the [GCS Object Lifecycle Management documentation](https://cloud.google.com/storage/docs/lifecycle) for instructions on setting up automated lifecycle rules for your bucket. |
There was a problem hiding this comment.
Sentence case in the heading, "does not" -> "doesn't", "as" -> "because" for the causal clause, "refer to" -> "See", and dropping "directly," which the style guide lists as filler.
I kept the "(GCS)" definition because later sections use the bare acronym.
Separately, and as a question rather than a request: this section is conceptual guidance sitting between two setup steps, which breaks the flow of the procedure. Would it read better as its own section near the end of the page?
| ### Data Retention | |
| This section goes through the process of setting up necessary cluster roles and permissions for history server | |
| The Ray History Server does not provide native support for data retention or log purging, as retention requirements vary by user and deployment environment. To manage log expiration and control storage costs, configure object lifecycle policies directly using your cloud storage provider's management features. | |
| ### Configure Role-based access control for Ray History Server | |
| For Google Cloud Storage (GCS), refer to the [GCS Object Lifecycle Management documentation](https://cloud.google.com/storage/docs/lifecycle) for instructions on setting up automated lifecycle rules for your bucket. | |
| ### Data retention | |
| The Ray History Server doesn't purge data or enforce a retention window, because retention requirements vary by deployment. To manage log expiration and control storage costs, configure object lifecycle policies with your cloud storage provider. | |
| For Google Cloud Storage (GCS), see [Object Lifecycle Management](https://cloud.google.com/storage/docs/lifecycle). |
There was a problem hiding this comment.
I think that makes sense. Let's move this section to near the end of the page.
| ``` | ||
|
|
||
| gs://BUCKET/log/raycluster-historyserver_NAMESPACE/session_2026-02-20_13-03-16_320452_1/job_events/: | ||
| You can run `gsutil ls -r gs://${GCS_BUCKET}` (or `gcloud storage ls --recursive gs://${GCS_BUCKET}`) to list the objects in storage: |
There was a problem hiding this comment.
"You can run X to list the objects" -> the imperative, per the guide's instruction voice.
I also dropped the gsutil variant. Google has deprecated gsutil in favor of gcloud storage, and L193 already uses gcloud storage, so offering both here is inconsistent within the page and points readers at the legacy tool first.
| You can run `gsutil ls -r gs://${GCS_BUCKET}` (or `gcloud storage ls --recursive gs://${GCS_BUCKET}`) to list the objects in storage: | |
| To list the objects in storage, run the following command: | |
| ```sh | |
| gcloud storage ls --recursive gs://${GCS_BUCKET} | |
| ``` |
| ## Access Terminated RayCluster using Ray Dashboard | ||
|
|
||
| To view terminated Ray clusters, setup a local Ray Dashboard that uses the history server endpoint as the backend. | ||
|
|
||
| ### Port Forward the history server | ||
|
|
||
| For the local Ray Dashboard to access the history server, you have to port forward the history server service. | ||
| For the local Ray Dashboard to access the history server, port forward the history server service: | ||
| ```sh | ||
| kubectl port-forward svc/historyserver 8080:30080 | ||
| ``` | ||
|
|
||
| You can verify the history server API directly by querying the cluster list endpoint: | ||
| ```sh | ||
| curl -s http://localhost:8080/clusters | ||
| ``` |
There was a problem hiding this comment.
Sentence case in both headings, "setup" -> "set up" for the verb, "Port Forward" -> "Port-forward", imperative instead of "You can verify," and blank lines before the fenced blocks.
I also settled on "History Server" throughout rather than alternating with "history server." See the main review comment.
Note L244 and L246 predate this PR, so skip them if you'd rather keep the diff tight.
| ## Access Terminated RayCluster using Ray Dashboard | |
| To view terminated Ray clusters, setup a local Ray Dashboard that uses the history server endpoint as the backend. | |
| ### Port Forward the history server | |
| For the local Ray Dashboard to access the history server, you have to port forward the history server service. | |
| For the local Ray Dashboard to access the history server, port forward the history server service: | |
| ```sh | |
| kubectl port-forward svc/historyserver 8080:30080 | |
| ``` | |
| You can verify the history server API directly by querying the cluster list endpoint: | |
| ```sh | |
| curl -s http://localhost:8080/clusters | |
| ``` | |
| ## Access a terminated RayCluster from the Ray Dashboard | |
| To view terminated Ray clusters, set up a local Ray Dashboard that uses the History Server as its backend. | |
| ### Port-forward the History Server | |
| For the local Ray Dashboard to reach the History Server, port-forward its service: | |
| ```sh | |
| kubectl port-forward svc/historyserver 8080:30080 | |
| ``` | |
| Query the cluster list endpoint to verify the History Server API: | |
| ```sh | |
| curl -s http://localhost:8080/clusters | |
| ``` |
| "createTimeStamp": 1785258471, | ||
| "ownerKind": "rayjob", | ||
| "ownerName": "rayjob-10k-no-boilerplate" | ||
| } |
There was a problem hiding this comment.
This drops the comma that separated the two objects, which makes the sample output invalid JSON. Readers do paste these blocks into a parser.
| } | |
| }, |
One more in the same block, which I can't attach a suggestion to because it sits outside the diff: L307 has a trailing comma before the closing ], so the JSON stays invalid even once this one is restored. It predates the PR, but it's worth changing }, to } by hand while you're already editing this block.
| The `/enter_cluster` endpoint sets session cookies so the local Ray Dashboard knows which cluster to display. The endpoint structure follows the format `/enter_cluster/{namespace}/{resourceType}/{resourceName}/{session}`: | ||
|
|
||
| * **`{namespace}`**: The Kubernetes namespace of the workload (for example, `default`). | ||
| * **`{resourceType}`**: The resource type, supporting `raycluster`, `rayjob`, or `rayservice`. | ||
| * **`{resourceName}`**: The name of the target resource. | ||
| * **`{session}`** *(optional)*: The specific session ID (such as `session_2026-02-20_13-03-16_320452_1`), `"latest"` to resolve the most recent session, or `"live"` for an active cluster. If omitted, it defaults to `"latest"`. |
There was a problem hiding this comment.
The style guide says don't bold inline code, since the code styling already sets it apart. These are definition-list terms, so the plain backticked form is the right one.
I also unpacked the parentheticals into sentences, moved "(optional)" to the start of the description where it's easier to spot, and used "such as" rather than a bare parenthetical for the example session ID.
| The `/enter_cluster` endpoint sets session cookies so the local Ray Dashboard knows which cluster to display. The endpoint structure follows the format `/enter_cluster/{namespace}/{resourceType}/{resourceName}/{session}`: | |
| * **`{namespace}`**: The Kubernetes namespace of the workload (for example, `default`). | |
| * **`{resourceType}`**: The resource type, supporting `raycluster`, `rayjob`, or `rayservice`. | |
| * **`{resourceName}`**: The name of the target resource. | |
| * **`{session}`** *(optional)*: The specific session ID (such as `session_2026-02-20_13-03-16_320452_1`), `"latest"` to resolve the most recent session, or `"live"` for an active cluster. If omitted, it defaults to `"latest"`. | |
| The `/enter_cluster` endpoint sets session cookies so the local Ray Dashboard knows which cluster to display. It takes the form `/enter_cluster/{namespace}/{resourceType}/{resourceName}/{session}`: | |
| * `{namespace}`: The Kubernetes namespace of the workload, such as `default`. | |
| * `{resourceType}`: The resource type. One of `raycluster`, `rayjob`, or `rayservice`. | |
| * `{resourceName}`: The name of the target resource. | |
| * `{session}`: Optional. The session ID, such as `session_2026-02-20_13-03-16_320452_1`. Use `"latest"` for the most recent session, or `"live"` for an active cluster. Defaults to `"latest"`. |
| ### Select Cluster UI Page | ||
|
|
||
| Alternatively, you can navigate directly to the Ray History Server cluster selection UI page at `/select_cluster`: | ||
|
|
||
| ```text | ||
| http://localhost:8265 | ||
| http://localhost:8265/select_cluster | ||
| ``` | ||
|
|
||
| This page displays an interactive overview of all historical cluster sessions, including cluster names, namespaces, session statuses, creation timestamps, and an **Open Dashboard** action button to launch and switch between sessions: | ||
|
|
||
|  |
There was a problem hiding this comment.
Sentence case in the heading, imperative instead of "you can navigate," and "directly" dropped as filler.
The alt text is the main thing here. The style guide asks for alt text that describes what the image shows, and "Ray History Server Select Cluster UI Page" restates the heading, so a screen reader user gets nothing the surrounding prose didn't already give them.
I also split the long sentence at L350, which was carrying five coordinated items plus a description of the button.
| ### Select Cluster UI Page | |
| Alternatively, you can navigate directly to the Ray History Server cluster selection UI page at `/select_cluster`: | |
| ```text | |
| http://localhost:8265 | |
| http://localhost:8265/select_cluster | |
| ``` | |
| This page displays an interactive overview of all historical cluster sessions, including cluster names, namespaces, session statuses, creation timestamps, and an **Open Dashboard** action button to launch and switch between sessions: | |
|  | |
| ### Cluster selection page | |
| Alternatively, navigate to the History Server cluster selection page: | |
| ```text | |
| http://localhost:8265/select_cluster | |
| ``` | |
| This page lists every stored cluster session with its name, namespace, status, and creation timestamp. Each row has an **Open Dashboard** button that switches the Ray Dashboard to that session. | |
|  |
|
Two follow-ups on my review above, after reading back through the earlier threads on this PR. First, a scope confirmation. I reviewed commit Second, I filed one thing that's already an open maintainer thread, and I should not have raised it cold. My review body flags the removed alpha warning as a stability claim. I've since found that @machichima asked to remove it ("we are promoting to Beta stage"), that @andrewsykim asked to hold the KubeRay v1.7-specific content until it graduates to beta, and that @chiayi has an unanswered question sitting on that thread: whether to announce beta before the KubeRay API is also beta. That's the same question I asked, already better-informed, and it's squarely a maintainer decision. So treat my version as a vote that the answer should be visible on the page rather than as an independent objection. Whichever way it lands, a reader arriving cold needs some signal about stability, and right now the page carries none. That also revises my "no KubeRay version requirement" point. I framed it as a straightforward gap, but if you're deliberately keeping v1.7-specific APIs out until they're beta, then what the minimum version should say is genuinely more subtle than I made it sound. I'll defer to whatever you settle on in that thread. Everything else in my review is style and docs-convention only, and none of it should block you. As I said up top, the KubeRay maintainers own the technical call here. Happy to stamp the docs side once the content questions settle, and happy to re-review after the next push. |
78ff6ba to
0a16d71
Compare
|
@dstrodtman Thank you for the detailed review and comments! I applies a lot of those changes PTAL. And to answer your questions:
This is a good point, this was a setting from alpha it does collide with the service port. We should definitely default this to 8084. Will open a bug fix for this.
Updated the examples!
Moved to the end of the guide. PTAL!
As suggested, I updated it to become a list table. PTAL!
Updated! Thank you!
I think we should treat the kuberay history server API and the history server component as two different things. So while the history server component can be in beta, the kuberay history server api can be marked as alpha. |
Yes, agree that we can treat them separately |
|
Related to: #65139 (comment) |
There was a problem hiding this comment.
Could we have this image with higher quality? On the docs it is unclear
There was a problem hiding this comment.
Used another picture!
| └── <job_id>/ | ||
| └── <node_id>-<date_hour> # Job event logs | ||
| ``` | ||
|
|
There was a problem hiding this comment.
| For `RayJob` and `RayService`, the paths carry an extra `<owner_name>` segment, and the | |
| `cluster-metadata` directory name joins the owner name into the underscore-separated key. | |
And add brief description
There was a problem hiding this comment.
Added the description after the file structure
| gs://BUCKET/log/cluster-metadata/raycluster/NAMESPACE_raycluster-historyserver/session_2026-02-20_13-03-16_320452_1 | ||
| gs://BUCKET/log/cluster-history/RayCluster/NAMESPACE/raycluster-historyserver/session_2026-02-20_13-03-16_320452_1/logs/0a46878b6f144cdb0ed62e9871caaeb16083547bf34acb5025832ace/dashboard_agent.log | ||
| gs://BUCKET/log/cluster-history/RayCluster/NAMESPACE/raycluster-historyserver/session_2026-02-20_13-03-16_320452_1/node_events/0a46878b6f144cdb0ed62e9871caaeb16083547bf34acb5025832ace-2026-02-20-13 | ||
| gs://BUCKET/log/cluster-history/RayCluster/NAMESPACE/raycluster-historyserver/session_2026-02-20_13-03-16_320452_1/job_events/AQAAAA==/0a46878b6f144cdb0ed62e9871caaeb16083547bf34acb5025832ace-2026-02-20-13 |
There was a problem hiding this comment.
| gs://BUCKET/log/cluster-metadata/raycluster/NAMESPACE_raycluster-historyserver/session_2026-02-20_13-03-16_320452_1 | |
| gs://BUCKET/log/cluster-history/RayCluster/NAMESPACE/raycluster-historyserver/session_2026-02-20_13-03-16_320452_1/logs/0a46878b6f144cdb0ed62e9871caaeb16083547bf34acb5025832ace/dashboard_agent.log | |
| gs://BUCKET/log/cluster-history/RayCluster/NAMESPACE/raycluster-historyserver/session_2026-02-20_13-03-16_320452_1/node_events/0a46878b6f144cdb0ed62e9871caaeb16083547bf34acb5025832ace-2026-02-20-13 | |
| gs://BUCKET/log/cluster-history/RayCluster/NAMESPACE/raycluster-historyserver/session_2026-02-20_13-03-16_320452_1/job_events/AQAAAA==/0a46878b6f144cdb0ed62e9871caaeb16083547bf34acb5025832ace-2026-02-20-13 | |
| gs://BUCKET/log/cluster-metadata/raycluster/NAMESPACE_raycluster-historyserver/session_2026-02-20_13-03-16_320452_1 | |
| gs://BUCKET/log/cluster-history/raycluster/NAMESPACE/raycluster-historyserver/session_2026-02-20_13-03-16_320452_1/0a46878b6f144cdb0ed62e9871caaeb16083547bf34acb5025832ace/logs/dashboard_agent.log | |
| gs://BUCKET/log/cluster-history/raycluster/NAMESPACE/raycluster-historyserver/session_2026-02-20_13-03-16_320452_1/0a46878b6f144cdb0ed62e9871caaeb16083547bf34acb5025832ace/node_events/0a46878b6f144cdb0ed62e9871caaeb16083547bf34acb5025832ace-2026-02-20-13 | |
| gs://BUCKET/log/cluster-history/raycluster/NAMESPACE/raycluster-historyserver/session_2026-02-20_13-03-16_320452_1/0a46878b6f144cdb0ed62e9871caaeb16083547bf34acb5025832ace/job_events/AQAAAA==/0a46878b6f144cdb0ed62e9871caaeb16083547bf34acb5025832ace-2026-02-20-13 |
Update to the correct format
| http://localhost:8265/select_cluster | ||
| ``` | ||
|
|
||
| This page lists every stored cluster session with its name, namespace, status, and creation timestamp. Each row has an **Open Dashboard** button that switches the Ray Dashboard to that session. |
There was a problem hiding this comment.
| This page lists every stored cluster session with its name, namespace, status, and creation timestamp. Each row has an **Open Dashboard** button that switches the Ray Dashboard to that session. | |
| This page lists every stored cluster session with its name, namespace, status, and creation timestamp. Each row has an **Open Dashboard** button that switches the Ray Dashboard to that session. | |
nit
Signed-off-by: Aaron Liang <[email protected]>
0a16d71 to
7b66dd4
Compare
Resolves the kuberay-history-server.md description conflict in favor of master's version, added by #65139 when the History Server team updated that page. The branch's description scoped the page to GKE and Google Cloud Storage; master's covers RayCluster, RayJob, and RayService, which matches the page's actual scope. Signed-off-by: Douglas Strodtman <[email protected]>
…65115) ## Summary Completes the page-description work [#64330](#64330) started, so that **every page listed in `llms.txt` carries a curated description**. #64330 (merged) described the 94 pages that made up the index when it listed only each section's landing page plus its direct toctree children. The generator in [#64458](#64458) makes the index complete — every in-scope page under its section — so the index now carries ~630 entries, and the ~400 that #64330 didn't cover fall back to a truncated first paragraph. That fallback is often actively bad for an agent routing on it. Of the 397 undescribed pages: | Fallback problem | Pages | Example | |---|---:|---| | No paragraph at all | 22 | `cluster/kubernetes/troubleshooting` | | Pointer prose | 34 | `cluster/cli` → "This section contains commands for managing Ray clusters." | | Restates the title | 117 | every `ray-core/patterns/*` anti-pattern page | | Under 70 chars | 170 | `data/inspecting-data` → "Inspect Datasets to better understand your data." | ## Changes - **368 pages get a curated description**, following the convention #64330 established: `myst: html_meta: description:` front matter for `.md` (164 files), and a `.. meta::` directive for `.rst` (204 files). The `.rst` block is placed after any leading docinfo field list (`:orphan:` and friends) but **before** any `.. _label:` target, so the label still resolves to the section title. - **31 pages are excluded instead** (`conf.py`). These are thin API-reference hub pages — a title plus an autosummary table, under 40 words of real prose — whose per-symbol targets are already excluded by the existing `*/api/doc/*` patterns. Also `data/api/_autogen` (no title at all) and two `*_regression_example` literalinclude stubs with zero prose. A description on any of these could only restate its title. Style follows the same house rule as #64330: 130–150 characters, front-loading what distinguishes the page, no "Ray X is a…" restatement of the link title. Mean length 122 chars, none over 160. Substantial API-reference pages were **kept and described**, not excluded — `tune/api/schedulers` (965 words of prose), `tune/api/env`, `tune/api/trainable`, `serve/api/index`, `data/api/expressions` are exactly what a coding agent wants. **Result: 479 in-scope pages described, 31 excluded, 0 relying on first-paragraph fallback.** ## Relationship to other PRs Independent of **#64458** (the generator). Descriptions are page front matter and work with the current third-party `sphinx-llms-txt` on master as well as the in-repo generator. The one file both touch is `doc/source/conf.py`: this PR appends a `llms_txt_exclude += [...]` block below the existing list rather than editing the list literal, which is what #64458 rewrites, so the two shouldn't collide. Either can merge first. Not a duplicate: `gh pr list --state open` finds no other PR adding page descriptions or `html_meta` blocks. #64330, the only prior art, is merged. ## Rebased on master Merged master to clear a conflict. Two pages shifted: - `cluster/kubernetes/user-guides/kuberay-history-server.md` no longer appears in this diff. #65139 described that page independently while this branch was open, and its description is the better one: this branch's scoped the page to GKE and Google Cloud Storage, where master's covers RayCluster, RayJob, and RayService, which is the page's actual scope. Resolved in favor of master. - `ray-observability/user-guides/jax-tpu-profiling.md` is newly described. It landed on master after this branch was cut and was the one in-scope page still falling back to a truncated first paragraph. Net file count is 368 newly described pages plus `conf.py`, plus one re-key: `ray-core/scheduling/labels.md` carried a bare top-level `description:` in its front matter, the only such file in the tree. Sphinx emits no meta description from that key, so despite looking described the page fed neither the HTML meta tag nor `llms.txt`. The text is unchanged; only the key moves under `myst.html_meta`. That page was already counted as described, so the totals above don't move. ## Testing Local verification (no Ray build required — these are doc source edits): ``` $ python3 doc/test_no_new_rst.py # exit 0 (no new .rst files; all 204 are edits) $ vale doc/source/data doc/source/ray-overview/examples 174 alerts, 0 error-level, 0 on the added lines identical to the master baseline (174 alerts) — this change adds no Vale alerts $ python3 -c "import ast; ast.parse(open('doc/source/conf.py').read())" # conf.py parses ``` Plus scripted checks over all 370 changed files: - All 164 `.md` front-matter blocks parse as YAML and expose `myst.html_meta.description`. - All 204 `.rst` files: `.. meta::` precedes any `.. _label:`, and any docinfo field list still precedes the `.. meta::` block. - Re-running the in-scope inventory: 510 pages, 479 described, 31 excluded, **0 gaps**. - The 31 entries added to `llms_txt_exclude` match the computed exclude set exactly. The `-W` docs build is the real end-to-end gate and runs in CI here. ## AI assistance Drafted with Claude Code: the descriptions were generated from each page's title, headings, and lead prose, and applied by script. Per `AGENTS.md`, this needs a human pass over the content before it's ready for review — **opening as a draft for that reason**. The mechanical placement is verified by the checks above; what needs human eyes is whether each description is accurate and useful for its page. --------- Signed-off-by: Ronny Roland <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Douglas Strodtman <[email protected]>
…t#65139) ## Description This PR updates the KubeRay History Server user guide (`doc/source/cluster/kubernetes/user-guides/kuberay-history-server.md`) to reflect KubeRay v1.7+ changes. ## Related issues N/A ## Additional information Local view: <img width="1985" height="759" alt="image" src="https://github.com/user-attachments/assets/ec03b587-cb38-4c0e-bb40-c3e3bfde518a" /> <img width="1961" height="1120" alt="image" src="https://github.com/user-attachments/assets/6eac8b4d-a32b-418c-b72a-6840c67f77ea" /> Signed-off-by: Aaron Liang <[email protected]>
…ay-project#65115) ## Summary Completes the page-description work [ray-project#64330](ray-project#64330) started, so that **every page listed in `llms.txt` carries a curated description**. ray-project#64330 (merged) described the 94 pages that made up the index when it listed only each section's landing page plus its direct toctree children. The generator in [ray-project#64458](ray-project#64458) makes the index complete — every in-scope page under its section — so the index now carries ~630 entries, and the ~400 that ray-project#64330 didn't cover fall back to a truncated first paragraph. That fallback is often actively bad for an agent routing on it. Of the 397 undescribed pages: | Fallback problem | Pages | Example | |---|---:|---| | No paragraph at all | 22 | `cluster/kubernetes/troubleshooting` | | Pointer prose | 34 | `cluster/cli` → "This section contains commands for managing Ray clusters." | | Restates the title | 117 | every `ray-core/patterns/*` anti-pattern page | | Under 70 chars | 170 | `data/inspecting-data` → "Inspect Datasets to better understand your data." | ## Changes - **368 pages get a curated description**, following the convention ray-project#64330 established: `myst: html_meta: description:` front matter for `.md` (164 files), and a `.. meta::` directive for `.rst` (204 files). The `.rst` block is placed after any leading docinfo field list (`:orphan:` and friends) but **before** any `.. _label:` target, so the label still resolves to the section title. - **31 pages are excluded instead** (`conf.py`). These are thin API-reference hub pages — a title plus an autosummary table, under 40 words of real prose — whose per-symbol targets are already excluded by the existing `*/api/doc/*` patterns. Also `data/api/_autogen` (no title at all) and two `*_regression_example` literalinclude stubs with zero prose. A description on any of these could only restate its title. Style follows the same house rule as ray-project#64330: 130–150 characters, front-loading what distinguishes the page, no "Ray X is a…" restatement of the link title. Mean length 122 chars, none over 160. Substantial API-reference pages were **kept and described**, not excluded — `tune/api/schedulers` (965 words of prose), `tune/api/env`, `tune/api/trainable`, `serve/api/index`, `data/api/expressions` are exactly what a coding agent wants. **Result: 479 in-scope pages described, 31 excluded, 0 relying on first-paragraph fallback.** ## Relationship to other PRs Independent of **ray-project#64458** (the generator). Descriptions are page front matter and work with the current third-party `sphinx-llms-txt` on master as well as the in-repo generator. The one file both touch is `doc/source/conf.py`: this PR appends a `llms_txt_exclude += [...]` block below the existing list rather than editing the list literal, which is what ray-project#64458 rewrites, so the two shouldn't collide. Either can merge first. Not a duplicate: `gh pr list --state open` finds no other PR adding page descriptions or `html_meta` blocks. ray-project#64330, the only prior art, is merged. ## Rebased on master Merged master to clear a conflict. Two pages shifted: - `cluster/kubernetes/user-guides/kuberay-history-server.md` no longer appears in this diff. ray-project#65139 described that page independently while this branch was open, and its description is the better one: this branch's scoped the page to GKE and Google Cloud Storage, where master's covers RayCluster, RayJob, and RayService, which is the page's actual scope. Resolved in favor of master. - `ray-observability/user-guides/jax-tpu-profiling.md` is newly described. It landed on master after this branch was cut and was the one in-scope page still falling back to a truncated first paragraph. Net file count is 368 newly described pages plus `conf.py`, plus one re-key: `ray-core/scheduling/labels.md` carried a bare top-level `description:` in its front matter, the only such file in the tree. Sphinx emits no meta description from that key, so despite looking described the page fed neither the HTML meta tag nor `llms.txt`. The text is unchanged; only the key moves under `myst.html_meta`. That page was already counted as described, so the totals above don't move. ## Testing Local verification (no Ray build required — these are doc source edits): ``` $ python3 doc/test_no_new_rst.py # exit 0 (no new .rst files; all 204 are edits) $ vale doc/source/data doc/source/ray-overview/examples 174 alerts, 0 error-level, 0 on the added lines identical to the master baseline (174 alerts) — this change adds no Vale alerts $ python3 -c "import ast; ast.parse(open('doc/source/conf.py').read())" # conf.py parses ``` Plus scripted checks over all 370 changed files: - All 164 `.md` front-matter blocks parse as YAML and expose `myst.html_meta.description`. - All 204 `.rst` files: `.. meta::` precedes any `.. _label:`, and any docinfo field list still precedes the `.. meta::` block. - Re-running the in-scope inventory: 510 pages, 479 described, 31 excluded, **0 gaps**. - The 31 entries added to `llms_txt_exclude` match the computed exclude set exactly. The `-W` docs build is the real end-to-end gate and runs in CI here. ## AI assistance Drafted with Claude Code: the descriptions were generated from each page's title, headings, and lead prose, and applied by script. Per `AGENTS.md`, this needs a human pass over the content before it's ready for review — **opening as a draft for that reason**. The mechanical placement is verified by the checks above; what needs human eyes is whether each description is accurate and useful for its page. --------- Signed-off-by: Ronny Roland <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Douglas Strodtman <[email protected]>
…t#65139) ## Description This PR updates the KubeRay History Server user guide (`doc/source/cluster/kubernetes/user-guides/kuberay-history-server.md`) to reflect KubeRay v1.7+ changes. ## Related issues N/A ## Additional information Local view: <img width="1985" height="759" alt="image" src="https://github.com/user-attachments/assets/ec03b587-cb38-4c0e-bb40-c3e3bfde518a" /> <img width="1961" height="1120" alt="image" src="https://github.com/user-attachments/assets/6eac8b4d-a32b-418c-b72a-6840c67f77ea" /> Signed-off-by: Aaron Liang <[email protected]> Signed-off-by: 400Ping <[email protected]>
…ay-project#65115) ## Summary Completes the page-description work [ray-project#64330](ray-project#64330) started, so that **every page listed in `llms.txt` carries a curated description**. ray-project#64330 (merged) described the 94 pages that made up the index when it listed only each section's landing page plus its direct toctree children. The generator in [ray-project#64458](ray-project#64458) makes the index complete — every in-scope page under its section — so the index now carries ~630 entries, and the ~400 that ray-project#64330 didn't cover fall back to a truncated first paragraph. That fallback is often actively bad for an agent routing on it. Of the 397 undescribed pages: | Fallback problem | Pages | Example | |---|---:|---| | No paragraph at all | 22 | `cluster/kubernetes/troubleshooting` | | Pointer prose | 34 | `cluster/cli` → "This section contains commands for managing Ray clusters." | | Restates the title | 117 | every `ray-core/patterns/*` anti-pattern page | | Under 70 chars | 170 | `data/inspecting-data` → "Inspect Datasets to better understand your data." | ## Changes - **368 pages get a curated description**, following the convention ray-project#64330 established: `myst: html_meta: description:` front matter for `.md` (164 files), and a `.. meta::` directive for `.rst` (204 files). The `.rst` block is placed after any leading docinfo field list (`:orphan:` and friends) but **before** any `.. _label:` target, so the label still resolves to the section title. - **31 pages are excluded instead** (`conf.py`). These are thin API-reference hub pages — a title plus an autosummary table, under 40 words of real prose — whose per-symbol targets are already excluded by the existing `*/api/doc/*` patterns. Also `data/api/_autogen` (no title at all) and two `*_regression_example` literalinclude stubs with zero prose. A description on any of these could only restate its title. Style follows the same house rule as ray-project#64330: 130–150 characters, front-loading what distinguishes the page, no "Ray X is a…" restatement of the link title. Mean length 122 chars, none over 160. Substantial API-reference pages were **kept and described**, not excluded — `tune/api/schedulers` (965 words of prose), `tune/api/env`, `tune/api/trainable`, `serve/api/index`, `data/api/expressions` are exactly what a coding agent wants. **Result: 479 in-scope pages described, 31 excluded, 0 relying on first-paragraph fallback.** ## Relationship to other PRs Independent of **ray-project#64458** (the generator). Descriptions are page front matter and work with the current third-party `sphinx-llms-txt` on master as well as the in-repo generator. The one file both touch is `doc/source/conf.py`: this PR appends a `llms_txt_exclude += [...]` block below the existing list rather than editing the list literal, which is what ray-project#64458 rewrites, so the two shouldn't collide. Either can merge first. Not a duplicate: `gh pr list --state open` finds no other PR adding page descriptions or `html_meta` blocks. ray-project#64330, the only prior art, is merged. ## Rebased on master Merged master to clear a conflict. Two pages shifted: - `cluster/kubernetes/user-guides/kuberay-history-server.md` no longer appears in this diff. ray-project#65139 described that page independently while this branch was open, and its description is the better one: this branch's scoped the page to GKE and Google Cloud Storage, where master's covers RayCluster, RayJob, and RayService, which is the page's actual scope. Resolved in favor of master. - `ray-observability/user-guides/jax-tpu-profiling.md` is newly described. It landed on master after this branch was cut and was the one in-scope page still falling back to a truncated first paragraph. Net file count is 368 newly described pages plus `conf.py`, plus one re-key: `ray-core/scheduling/labels.md` carried a bare top-level `description:` in its front matter, the only such file in the tree. Sphinx emits no meta description from that key, so despite looking described the page fed neither the HTML meta tag nor `llms.txt`. The text is unchanged; only the key moves under `myst.html_meta`. That page was already counted as described, so the totals above don't move. ## Testing Local verification (no Ray build required — these are doc source edits): ``` $ python3 doc/test_no_new_rst.py # exit 0 (no new .rst files; all 204 are edits) $ vale doc/source/data doc/source/ray-overview/examples 174 alerts, 0 error-level, 0 on the added lines identical to the master baseline (174 alerts) — this change adds no Vale alerts $ python3 -c "import ast; ast.parse(open('doc/source/conf.py').read())" # conf.py parses ``` Plus scripted checks over all 370 changed files: - All 164 `.md` front-matter blocks parse as YAML and expose `myst.html_meta.description`. - All 204 `.rst` files: `.. meta::` precedes any `.. _label:`, and any docinfo field list still precedes the `.. meta::` block. - Re-running the in-scope inventory: 510 pages, 479 described, 31 excluded, **0 gaps**. - The 31 entries added to `llms_txt_exclude` match the computed exclude set exactly. The `-W` docs build is the real end-to-end gate and runs in CI here. ## AI assistance Drafted with Claude Code: the descriptions were generated from each page's title, headings, and lead prose, and applied by script. Per `AGENTS.md`, this needs a human pass over the content before it's ready for review — **opening as a draft for that reason**. The mechanical placement is verified by the checks above; what needs human eyes is whether each description is accurate and useful for its page. --------- Signed-off-by: Ronny Roland <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Douglas Strodtman <[email protected]> Signed-off-by: 400Ping <[email protected]>
…t#65139) ## Description This PR updates the KubeRay History Server user guide (`doc/source/cluster/kubernetes/user-guides/kuberay-history-server.md`) to reflect KubeRay v1.7+ changes. ## Related issues N/A ## Additional information Local view: <img width="1985" height="759" alt="image" src="https://github.com/user-attachments/assets/ec03b587-cb38-4c0e-bb40-c3e3bfde518a" /> <img width="1961" height="1120" alt="image" src="https://github.com/user-attachments/assets/6eac8b4d-a32b-418c-b72a-6840c67f77ea" /> Signed-off-by: Aaron Liang <[email protected]>
…ay-project#65115) ## Summary Completes the page-description work [ray-project#64330](ray-project#64330) started, so that **every page listed in `llms.txt` carries a curated description**. ray-project#64330 (merged) described the 94 pages that made up the index when it listed only each section's landing page plus its direct toctree children. The generator in [ray-project#64458](ray-project#64458) makes the index complete — every in-scope page under its section — so the index now carries ~630 entries, and the ~400 that ray-project#64330 didn't cover fall back to a truncated first paragraph. That fallback is often actively bad for an agent routing on it. Of the 397 undescribed pages: | Fallback problem | Pages | Example | |---|---:|---| | No paragraph at all | 22 | `cluster/kubernetes/troubleshooting` | | Pointer prose | 34 | `cluster/cli` → "This section contains commands for managing Ray clusters." | | Restates the title | 117 | every `ray-core/patterns/*` anti-pattern page | | Under 70 chars | 170 | `data/inspecting-data` → "Inspect Datasets to better understand your data." | ## Changes - **368 pages get a curated description**, following the convention ray-project#64330 established: `myst: html_meta: description:` front matter for `.md` (164 files), and a `.. meta::` directive for `.rst` (204 files). The `.rst` block is placed after any leading docinfo field list (`:orphan:` and friends) but **before** any `.. _label:` target, so the label still resolves to the section title. - **31 pages are excluded instead** (`conf.py`). These are thin API-reference hub pages — a title plus an autosummary table, under 40 words of real prose — whose per-symbol targets are already excluded by the existing `*/api/doc/*` patterns. Also `data/api/_autogen` (no title at all) and two `*_regression_example` literalinclude stubs with zero prose. A description on any of these could only restate its title. Style follows the same house rule as ray-project#64330: 130–150 characters, front-loading what distinguishes the page, no "Ray X is a…" restatement of the link title. Mean length 122 chars, none over 160. Substantial API-reference pages were **kept and described**, not excluded — `tune/api/schedulers` (965 words of prose), `tune/api/env`, `tune/api/trainable`, `serve/api/index`, `data/api/expressions` are exactly what a coding agent wants. **Result: 479 in-scope pages described, 31 excluded, 0 relying on first-paragraph fallback.** ## Relationship to other PRs Independent of **ray-project#64458** (the generator). Descriptions are page front matter and work with the current third-party `sphinx-llms-txt` on master as well as the in-repo generator. The one file both touch is `doc/source/conf.py`: this PR appends a `llms_txt_exclude += [...]` block below the existing list rather than editing the list literal, which is what ray-project#64458 rewrites, so the two shouldn't collide. Either can merge first. Not a duplicate: `gh pr list --state open` finds no other PR adding page descriptions or `html_meta` blocks. ray-project#64330, the only prior art, is merged. ## Rebased on master Merged master to clear a conflict. Two pages shifted: - `cluster/kubernetes/user-guides/kuberay-history-server.md` no longer appears in this diff. ray-project#65139 described that page independently while this branch was open, and its description is the better one: this branch's scoped the page to GKE and Google Cloud Storage, where master's covers RayCluster, RayJob, and RayService, which is the page's actual scope. Resolved in favor of master. - `ray-observability/user-guides/jax-tpu-profiling.md` is newly described. It landed on master after this branch was cut and was the one in-scope page still falling back to a truncated first paragraph. Net file count is 368 newly described pages plus `conf.py`, plus one re-key: `ray-core/scheduling/labels.md` carried a bare top-level `description:` in its front matter, the only such file in the tree. Sphinx emits no meta description from that key, so despite looking described the page fed neither the HTML meta tag nor `llms.txt`. The text is unchanged; only the key moves under `myst.html_meta`. That page was already counted as described, so the totals above don't move. ## Testing Local verification (no Ray build required — these are doc source edits): ``` $ python3 doc/test_no_new_rst.py # exit 0 (no new .rst files; all 204 are edits) $ vale doc/source/data doc/source/ray-overview/examples 174 alerts, 0 error-level, 0 on the added lines identical to the master baseline (174 alerts) — this change adds no Vale alerts $ python3 -c "import ast; ast.parse(open('doc/source/conf.py').read())" # conf.py parses ``` Plus scripted checks over all 370 changed files: - All 164 `.md` front-matter blocks parse as YAML and expose `myst.html_meta.description`. - All 204 `.rst` files: `.. meta::` precedes any `.. _label:`, and any docinfo field list still precedes the `.. meta::` block. - Re-running the in-scope inventory: 510 pages, 479 described, 31 excluded, **0 gaps**. - The 31 entries added to `llms_txt_exclude` match the computed exclude set exactly. The `-W` docs build is the real end-to-end gate and runs in CI here. ## AI assistance Drafted with Claude Code: the descriptions were generated from each page's title, headings, and lead prose, and applied by script. Per `AGENTS.md`, this needs a human pass over the content before it's ready for review — **opening as a draft for that reason**. The mechanical placement is verified by the checks above; what needs human eyes is whether each description is accurate and useful for its page. --------- Signed-off-by: Ronny Roland <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Douglas Strodtman <[email protected]>
Description
This PR updates the KubeRay History Server user guide (
doc/source/cluster/kubernetes/user-guides/kuberay-history-server.md) to reflect KubeRay v1.7+ changes.Related issues
N/A
Additional information
Local view:
