Skip to content

[doc][History server] Update History server documentation - #65139

Merged
andrewsykim merged 1 commit into
ray-project:masterfrom
chiayi:history-server-doc
Aug 5, 2026
Merged

andrewsykim merged 1 commit into
ray-project:masterfrom
chiayi:history-server-doc

Conversation

@chiayi

@chiayi chiayi commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

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:
image

image

@chiayi
chiayi requested review from a team and andrewsykim as code owners July 30, 2026 23:06

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment on lines +40 to +48
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>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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.

Suggested change
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>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@chiayi
chiayi force-pushed the history-server-doc branch from 3a4aad8 to f0e929c Compare July 30, 2026 23:12
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 \

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can link to the featureGate doc page once it's there.

@ray-gardener ray-gardener Bot added docs An issue or change related to documentation core Issues that should be addressed in Ray Core community-contribution Contributed by the community labels Jul 31, 2026
@machichima

Copy link
Copy Markdown
Contributor

cc @win5923 and @JiangJiaWei1103 to also have a look

Comment on lines 9 to 11
@@ -12,222 +12,272 @@ The Ray History Server project is currently in **alpha** and subject to breaking

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove this warning? We are promoting to Beta stage

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment on lines +36 to +48
## 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>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done PTAL

* `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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we group env vars by option and not optional so that it's clearer?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I separated the env vars into different sections. PTAL!

@rueian rueian self-assigned this Jul 31, 2026
@chiayi
chiayi force-pushed the history-server-doc branch 3 times, most recently from 1b93c75 to db4e061 Compare July 31, 2026 18:10

@machichima machichima left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm good with that. Let me try to show the file architecture.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>

@machichima machichima added the go add ONLY when ready to merge, run all tests label Aug 1, 2026
@machichima

Copy link
Copy Markdown
Contributor

cc @andrewsykim for final pass

Comment on lines +104 to +105
* **History Server Image**: `quay.io/kuberay/historyserver:latest` (or `:nightly`)
* **Collector Image**: `quay.io/kuberay/collector:latest` (or `:nightly`)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* **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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we are expecting this to work after release

@chiayi chiayi Aug 3, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@chiayi
chiayi force-pushed the history-server-doc branch 2 times, most recently from e75a50b to 78ff6ba Compare August 3, 2026 17:38

@dstrodtman dstrodtman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.Terms rule flags Namespace at 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.

  1. L153, STORAGE_BACKEND (or --runtime-class-name flag). runtime-class-name collides 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?

  2. L169, EVENTS_PORT "defaults to 8080, e.g. 8084". Why does the example diverge from the default? And does 8080 collide with the History Server service port used at L250?

  3. L286, rayjob-10k-no-boilerplate-dn5kz. Reads like the name of an internal test run. A neutral example name might be less distracting.

  4. 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?

  5. 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.

  6. 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.

Comment on lines +11 to +21
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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
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.

Comment on lines +25 to +29
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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
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.

Comment on lines +55 to +57
## 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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
## 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).

Comment on lines +59 to +63
### 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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Suggested change
### 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).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"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.

Suggested change
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}
```

Comment on lines +242 to +256
## 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
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
## 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"
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This drops the comma that separated the two objects, which makes the sample output invalid JSON. Readers do paste these blocks into a parser.

Suggested change
}
},

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.

Comment on lines +311 to +316
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"`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
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"`.

Comment on lines +342 to +352
### 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:

![Ray History Server Select Cluster UI Page](images/kuberay-historyserver-select-cluster.png)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
### 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:
![Ray History Server Select Cluster UI Page](images/kuberay-historyserver-select-cluster.png)
### 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.
![Cluster selection page listing stored Ray cluster sessions, each row showing a cluster name, namespace, status, creation timestamp, and an Open Dashboard button](images/kuberay-historyserver-select-cluster.png)

@dstrodtman

Copy link
Copy Markdown
Contributor

Two follow-ups on my review above, after reading back through the earlier threads on this PR.

First, a scope confirmation. I reviewed commit 78ff6bab, which is still HEAD, and all 19 of my inline comments resolve against it. Because the branch is a single force-pushed commit, a lot of the review history above points at line numbers that no longer exist, so I want to be explicit that I was reading the current state and not an earlier revision. Where @andrewsykim, @machichima, and @win5923 asked for changes that @chiayi has already applied, my comments are styling the applied text, not reopening the request. In particular, my comment on the /tmp/ray volume paragraph preserves @machichima's correction that events don't travel through that volume. That's a factual point I'd have gotten wrong on my own.

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.

@chiayi
chiayi force-pushed the history-server-doc branch from 78ff6ba to 0a16d71 Compare August 3, 2026 22:02
@chiayi

chiayi commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor Author

@dstrodtman Thank you for the detailed review and comments! I applies a lot of those changes PTAL. And to answer your questions:

L169, EVENTS_PORT "defaults to 8080, e.g. 8084". Why does the example diverge from the default? And does 8080 collide with the History Server service port used at L250?

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.

L286, rayjob-10k-no-boilerplate-dn5kz. Reads like the name of an internal test run. A neutral example name might be less distracting.

Updated the examples!

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?

Moved to the end of the guide. PTAL!

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.

As suggested, I updated it to become a list table. PTAL!

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.

Updated! Thank you!

whether to announce beta before the KubeRay API is also beta.

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.
@machichima @andrewsykim Please let me know if you have strong thoughts about this.

@machichima

Copy link
Copy Markdown
Contributor

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

@machichima

Copy link
Copy Markdown
Contributor

Related to: #65139 (comment)
Not directly related to docs: Right now we only have flag --runtime-class-name, and have both STORAGE_BACKEND and RUNTIME_CLASS_NAME env var. Could we fully remove name "runtime class name" and just leave STORAGE_BACKEND and --storage-backend?

https://github.com/ray-project/kuberay/blob/7af74cb9cb296b841bde1de8d7315a304d66fa93/historyserver/cmd/collector/main.go?plain=1#L40

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used another picture!

└── <job_id>/
└── <node_id>-<date_hour> # Job event logs
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the description after the file structure

Comment on lines +291 to +294
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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the nl

@chiayi
chiayi force-pushed the history-server-doc branch from 0a16d71 to 7b66dd4 Compare August 4, 2026 05:50

@machichima machichima left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andrewsykim
andrewsykim merged commit 54b5773 into ray-project:master Aug 5, 2026
6 checks passed
dstrodtman added a commit that referenced this pull request Aug 10, 2026
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]>
dstrodtman added a commit that referenced this pull request Aug 10, 2026
…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]>
Artimislyy pushed a commit to Artimislyy/ray that referenced this pull request Aug 11, 2026
…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]>
Artimislyy pushed a commit to Artimislyy/ray that referenced this pull request Aug 11, 2026
…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]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
…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]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
…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]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
…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]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Contributed by the community core Issues that should be addressed in Ray Core docs An issue or change related to documentation go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants