[History Server] Add aliyunoss History Server deployment and proxy head samples #5156
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.66) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.66 · 378 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.355
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.066
Real PR Conversation Timeline
1 comments
"Review active on #5156"
general
weight: 0.35
KunWuLuan
Why are these changes needed?
#5150 adds collector-side (write path) samples for the Alibaba Cloud OSS storage backend, but there is no read-side sample showing how to deploy the History Server against the same OSS bucket, and no in-cluster way to browse it without a local Ray installation. This PR adds two manifests under
historyserver/config/:1.
historyserver-aliyunoss.yaml-- History Server Service + Deployment reading from OSS via RRSA (credentials injected by ack-pod-identity-webhook). The header documents the full prerequisites, including a pitfall that costs real debugging time: the RAM role trust policyActionmust bests:AssumeRole(NOTsts:AssumeRoleWithOIDC), andoidc:issis not a valid condition key -- both mistakes fail with an opaqueAuthenticationFail.NoPermission (ImplicitDeny)from STS.2.
ray-proxy-head.yaml-- a single proxy Ray head pod wired to the History Server service viaray start --proxy-server-url, an in-cluster alternative to the localray startflow inDEVELOPMENT.mdStep 6. Browsing the History Server UI then only requireskubectl port-forward pod/ray-proxy-head 8265:8265.Note on
STORAGE_ROOT_DIR: the manifest sets it and documents that images up to v1.7.0-rc.0 do not read this env var (support was added after v1.7.0-rc.0, initially asRAY_ROOT_DIR, since renamed toSTORAGE_ROOT_DIR); it must match the collector-side setting.Related issue number
Closes #5155
Labels
doc-updates-requiredlabel.breaking-changelabel.Checks
- [ ] Unit tests
- [x] Manual tests
- [ ] This PR is not tested :(
Manual test instructions
Validated end to end on an ACK managed cluster (cn-hongkong), KubeRay operator 1.6.2, images
quay.io/kuberay/{historyserver,collector}:v1.7.0-rc.0:1. Enabled RRSA on the cluster, created the RAM role with the trust policy documented in the manifest header, granted it OSS read/write on the test bucket, and installed ack-pod-identity-webhook.
2. Applied
service_account.yaml, annotated thehistoryserverServiceAccount with the RAM role, then appliedhistoryserver-aliyunoss.yaml(viaenvsubst) and therayjob-aliyunoss.yamlsample from #5150.3. After the RayJob succeeded, the collector wrote 276 objects to OSS under
cluster-history/rayjob/default/..., and the History Server/clustersendpoint listed the dead sessions.4. Applied
ray-proxy-head.yaml, rankubectl port-forward pod/ray-proxy-head 8265:8265, and verified in the browser:-
http://localhost:8265/clusterslists sessions through the proxy head (HTTP 200);-
http://localhost:8265/enter_cluster/default/rayjob/rayjob-historyserver-aliyunoss/<session-id>replays the dead session;/api/v0/cluster_metadataand/api/jobs/return the recorded data.