Skip to content

[Docs][History Server] Update docs - #65580

Open
machichima wants to merge 6 commits into
ray-project:masterfrom
machichima:hs-docs-update
Open

[Docs][History Server] Update docs#65580
machichima wants to merge 6 commits into
ray-project:masterfrom
machichima:hs-docs-update

Conversation

@machichima

@machichima machichima commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Signed-off-by: machichima <nary12321@gmail.com>
@machichima
machichima requested review from a team and andrewsykim as code owners August 19, 2026 02:49

@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 adds comprehensive documentation for the KubeRay History Server configuration, detailing its environment variables and CLI flags, and updates the event exporter documentation to clarify that setting the exposable event types to ALL requires Ray 2.54.0 or later. The review feedback suggests minor improvements to the newly added documentation, such as removing an unnecessary comma, clarifying the memory eviction trigger, and rephrasing a description to maintain grammatical consistency.

Comment thread doc/source/cluster/kubernetes/user-guides/kuberay-history-server.md Outdated
Comment thread doc/source/cluster/kubernetes/user-guides/kuberay-history-server.md Outdated
Comment thread doc/source/cluster/kubernetes/user-guides/kuberay-history-server.md Outdated
@machichima machichima changed the title [History Server] Update docs [Docs][History Server] Update docs Aug 19, 2026
Signed-off-by: machichima <nary12321@gmail.com>
-
- Yes (all nodes)
- Object storage bucket or account name. For other cloud providers, use `S3_BUCKET` or `AZURE_STORAGE_ACCOUNT`.
- Object storage bucket or container name. For other cloud providers, use `S3_BUCKET` or `AZURE_STORAGE_CONTAINER`.

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.


- **RAY_DASHBOARD_AGGREGATOR_AGENT_EVENTS_EXPORT_ADDR**: HTTP endpoint URL (e.g., `http://localhost:8080/events`)
- **RAY_DASHBOARD_AGGREGATOR_AGENT_EXPOSABLE_EVENT_TYPES**: Comma-separated list of event types to expose
- **RAY_DASHBOARD_AGGREGATOR_AGENT_EXPOSABLE_EVENT_TYPES**: Comma-separated list of event types to expose. Set it to ``ALL`` to expose every event type, supported in Ray 2.54.0 and later.

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.

Also update here as we are updating RAY_DASHBOARD_AGGREGATOR_AGENT_EXPOSABLE_EVENT_TYPES content in doc/source/cluster/kubernetes/user-guides/kuberay-history-server.md to make it consistent

@machichima

Copy link
Copy Markdown
Contributor Author

cc @chiayi @win5923 to take a look

Comment thread doc/source/cluster/kubernetes/user-guides/kuberay-history-server.md Outdated
Comment thread doc/source/cluster/kubernetes/user-guides/kuberay-history-server.md Outdated
@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 Aug 19, 2026
Co-authored-by: Jun-Hao Wan <ken0979172817@gmail.com>
Signed-off-by: Nary Yeh <60069744+machichima@users.noreply.github.com>

Signed-off-by: machichima <nary12321@gmail.com>

@chiayi chiayi 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.

Just one small thing from me. Else LGTM!

- `--runtime-class-name`
- `--storage-backend`
- Yes (all nodes)
- Storage backend type (`gcs`, `s3`, `azureblob`, `aliyunoss`). The `--runtime-class-name` flag is specific to the collector storage backend.

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.

--runtime-class-name is still in the description here.

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.

updated! Thank you!

@rueian rueian self-assigned this Aug 21, 2026
Signed-off-by: machichima <nary12321@gmail.com>

@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 (style, grammar, conventions) — Anyscale docs team

Reviewed by Douglas Strodtman (Anyscale docs team) with Claude Code assisting; I've read and stand behind everything here. Scope is prose and docs conventions only — technical accuracy stays with the KubeRay and Ray Core maintainers, who've already approved.

The new History Server configuration section is clean and well-structured. The variable table is consistent, it follows the Kubernetes object-name conventions (UpperCamelCase, no backticks in prose), and the sizing note lands the soft-cap-versus-Pod-limit distinction well. The earlier review threads all look applied at HEAD, so nothing here reopens them.

Two optional grammar nits on changed lines, both click-to-apply. Neither is blocking.

Otherwise this reads well from the docs side.

* -
- `--use-auth-token-mode`
- `false`
- Enable Ray dashboard token authentication mode for proxying to live RayClusters that have auth enabled. When enabled, the History Server reads each cluster's auth token from its Kubernetes Secret and injects it as an `x-ray-authorization` header on proxied requests, stripping any client-supplied value. This requires extra RBAC to read those Secrets, see [`service_account_auth_token_mode.yaml`](https://github.com/ray-project/kuberay/blob/master/historyserver/config/service_account_auth_token_mode.yaml). Kubernetes-delegated token auth (`enableK8sTokenAuth`) isn't supported.

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.

Small nit: ..., see [...] joins two independent clauses. Ray's style guide favors splitting over a comma join and capitalizes See at the start of a reference.

Suggested change
- Enable Ray dashboard token authentication mode for proxying to live RayClusters that have auth enabled. When enabled, the History Server reads each cluster's auth token from its Kubernetes Secret and injects it as an `x-ray-authorization` header on proxied requests, stripping any client-supplied value. This requires extra RBAC to read those Secrets, see [`service_account_auth_token_mode.yaml`](https://github.com/ray-project/kuberay/blob/master/historyserver/config/service_account_auth_token_mode.yaml). Kubernetes-delegated token auth (`enableK8sTokenAuth`) isn't supported.
- Enable Ray dashboard token authentication mode for proxying to live RayClusters that have auth enabled. When enabled, the History Server reads each cluster's auth token from its Kubernetes Secret and injects it as an `x-ray-authorization` header on proxied requests, stripping any client-supplied value. This requires extra RBAC to read those Secrets. See [`service_account_auth_token_mode.yaml`](https://github.com/ray-project/kuberay/blob/master/historyserver/config/service_account_auth_token_mode.yaml). Kubernetes-delegated token auth (`enableK8sTokenAuth`) isn't supported.


- **RAY_DASHBOARD_AGGREGATOR_AGENT_EVENTS_EXPORT_ADDR**: HTTP endpoint URL (e.g., `http://localhost:8080/events`)
- **RAY_DASHBOARD_AGGREGATOR_AGENT_EXPOSABLE_EVENT_TYPES**: Comma-separated list of event types to expose
- **RAY_DASHBOARD_AGGREGATOR_AGENT_EXPOSABLE_EVENT_TYPES**: Comma-separated list of event types to expose. Set it to ``ALL`` to expose every event type, supported in Ray 2.54.0 and later.

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.

Small nit: the trailing supported in Ray 2.54.0 and later reads as modifying "event type" rather than the ALL value. Splitting it into its own sentence keeps the version note attached to ALL.

Suggested change
- **RAY_DASHBOARD_AGGREGATOR_AGENT_EXPOSABLE_EVENT_TYPES**: Comma-separated list of event types to expose. Set it to ``ALL`` to expose every event type, supported in Ray 2.54.0 and later.
- **RAY_DASHBOARD_AGGREGATOR_AGENT_EXPOSABLE_EVENT_TYPES**: Comma-separated list of event types to expose. Set it to ``ALL`` to expose every event type. ``ALL`` is supported in Ray 2.54.0 and later.

@rueian rueian added the go add ONLY when ready to merge, run all tests label Aug 24, 2026
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.

5 participants