Repository navigation
Highlights
Ray History Server (beta)
The History Server can now show running RayClusters without proxying to the live cluster. The collector uploads logs periodically while the cluster runs, and the History Server serves running clusters from the object store whenever --enable-live-clusters is disabled (the default). Running clusters are listed in /clusters as soon as the collector starts.
A cached session is refreshed with the new reload button on the cluster selection page (or ?reload=true on the enter_cluster/ endpoint), and automatically when a RayCluster goes from running to dead. This release also adds Oracle Cloud Infrastructure Object Storage as a storage backend (--storage-backend=oci). (#5347, #5463, #5467, #5321)
Try it here: History Server Quick Start Guide.
See ray-cluster.historyserver.yaml for a full example.
Node Label Delivery (alpha)
KubeRay can now deliver the labels of the Kubernetes node a worker Pod is bound to as Ray node labels, so Ray can schedule on real node attributes such as rack, zone, or GPU topology domain instead of synthetic labels. Set workerGroupSpecs[].labelRefs on the RayCluster and allowlist the node label keys on the operator with allowedNodeLabels (Helm value configuration.allowedNodeLabels, or the --allowed-node-labels flag). The feature requires the operator's admission webhooks (webhooks.enabled: true in the kuberay-operator chart, which needs cert-manager and does not work with singleNamespaceInstall) and rayVersion 2.45.0 or later. When installing with Helm, enable the gate in the chart's featureGates value: the Pod webhooks that deliver the labels are registered only then. (#5260, #5329, #5300, #5501)
Try it here:
⚠️ Warning: NodeLabelDelivery is an Alpha feature and is disabled by default. To enable it, set the feature gate on the kuberay-operator:--feature-gates=NodeLabelDelivery=true
Kubernetes Node Event Forwarding (alpha)
The operator can now forward Kubernetes Node events, such as GPU XID errors reported by node-problem-detector, to the RayCluster custom resources whose Pods run on the affected node. The events show up in the Ray Dashboard, so users can tell infrastructure faults from application failures. Enable it with the nodeEventForwarder.enabled Helm value together with the feature gate. Filter the forwarded events with nodeEventForwarder.sources, nodeEventForwarder.reasons, and nodeEventForwarder.types (default Warning only). Node event forwarding is not supported when singleNamespaceInstall is true. (#4978)
Try it here: Enable Ray platform events on Kubernetes.
⚠️ Warning: RayNodeEventForwarder is an Alpha feature and is disabled by default. To enable it, set the feature gate on the kuberay-operator:--feature-gates=RayNodeEventForwarder=true
Idle RayCluster termination
A RayCluster can now suspend or delete itself once it has been idle. Set spec.idleTerminationOptions: once no Ray driver has been connected for timeoutSeconds, the Ray Autoscaler v2 applies policy (Suspend by default, or Delete) to the RayCluster. Before, the autoscaler could scale workers down to zero, but the head Pod kept running and reserving capacity. Requires enableInTreeAutoscaling: true with autoscaler v2, and rayVersion 2.60.0 or later. (#5210)
spec:
enableInTreeAutoscaling: true
# Suspend the RayCluster after no user driver has been attached for 30 seconds.
idleTerminationOptions:
timeoutSeconds: 30
policy: Suspend
autoscalerOptions:
version: v2See ray-cluster.autoscaler-v2-terminate-idle-cluster.yaml for a full example.
Other Notable Features
RayCluster
- Added
scaleStrategy.scaleGateto worker groups. An external controller such as Kueue sets a gate when the group cannot scale up, and the Ray Autoscaler falls back to another worker group immediately instead of waiting for the allocate timeout. (#5094) - KubeRay now sets
RAY_AUTH_MODE=disabledon Ray containers whenspec.authOptions.modeis not set, so clusters keep working with Ray 2.61, which enables token authentication by default. A user-providedRAY_AUTH_MODEenv var is not overridden. (#5496, #5573) workerGroupSpecsis now a map list keyed bygroupName, so Server-Side Apply merges per worker group instead of replacing the whole list. (#4986)- Added the
gcsFaultToleranceOptions.activePassiveHeadOptionsAPI and theGCSFaultToleranceActivePassiveHeadalpha feature gate for active-passive head high availability. This release only adds the API and its validation; the standby head is not provisioned yet. (#4910, #5289)
RayService
- Added
clusterUpgradeOptions.gatewayRefto attach an incremental upgrade to an existing Gateway instead of creating one per RayService. Exactly one ofgatewayClassNameorgatewayRefmust be set. See ray-service.incremental-upgrade-gateway-ref.yaml. (#5018)
RayCronJob
- RayCronJob
jobTemplatenow acceptsmetadata(labels and annotations), which are copied onto each generated RayJob. (#5383)
Operator
- Kubernetes Workload-Aware Scheduling now resizes the gang in place by patching
minCounton the existing Workload and PodGroup, and supports autoscaling RayClusters. (#5266) - The Volcano integration now populates
PodGroup.spec.subGroupPolicyfrom each worker group's replicas, so a worker group below its minimum can no longer be masked by surplus Pods of another group. Requires Volcano v1.14 or later. (#5249) - Grafana dashboards are updated to Ray 2.58. (#5259)
Helm
- The ray-cluster chart now supports
common.envFrom, applied to the Ray container of the head and every worker group. (#5034) - The ray-cluster chart now exposes
authOptionsandupgradeStrategy. (#5197)
History Server
- The collector sidecar image is now configurable on the operator with the
--collector-imageflag or thecollectorImageHelm value, and defaults to the collector image matching the operator version.spec.historyServerOptions.collectorOptions.imageis now optional. (#5207) - Added
spec.historyServerOptions.collectorOptions.securityContextfor the collector sidecar. (#5343)
Notable Bug Fixes
- RayCluster: Fixed a bug where a worker group whose Pod creation failed (for example, rejected by a
ResourceQuota) blocked the reconciliation of every worker group after it. (#5386) - RayCluster: Fixed a bug where suspending a RayCluster left its Volcano PodGroup reserving queue resources. (#5200)
- RayCluster: Fixed a bug where the GCS FT Redis cleanup Job inherited the head Pod's anti-affinity and could not be created on GKE Autopilot. (#5448)
- RayJob: Fixed a bug where the
DeleteSelfdeletion policy was ignored for a RayJob using an existing RayCluster. (#5396) - Operator: Fixed a bug where
logStdoutEncoderandlogFileEncoderset in the--configfile were ignored. (#5322) - Helm: Fixed a bug where
maxReplicas: 0in the ray-cluster chart was rendered as2147483647. (#5481) - kubectl plugin: Fixed a bug where
kubectl ray create workergroupandkubectl ray job submitignored--ray-versionwhen choosing the default image. (#5053) - History Server: Fixed a bug where reading a stored log with a line larger than 64 KiB failed with HTTP 500. (#5483)
Breaking Changes
- RayCronJob:
spec.jobTemplateis now aRayJobTemplateSpec(metadata+spec) instead of a bareRayJobSpec. Move the previousjobTemplatefields underjobTemplate.spec. (#5383) - RayJob: In
HTTPMode, a job that disappears from the head (for example, after the head Pod is recreated) is now markedFailedinstead of being silently resubmitted. SetbackoffLimitabove zero to retry. (#4984) - Kubernetes Workload-Aware Scheduling: the
KubernetesWASintegration now uses thescheduling.k8s.io/v1alpha3API instead ofv1alpha2. Upgrade to Kubernetes 1.37 and serve bothscheduling.k8s.io/v1alpha3andscheduling.k8s.io/v1beta1. (#5266) - History Server: the collector now uploads logs as
<file>.chunks/<offset>objects while the cluster runs, which increases object count and PUT requests. Upgrade the History Server together with the collector so it can read chunked logs. (#5347) - Python client: the distribution package is renamed from
python-clienttokuberay-clientand the import package frompython_clienttokuberay_client. Update your install command and imports. (#5346) - Operator: the unused
deleteRayJobAfterJobFinishesfield is removed from the operatorConfiguration. Remove it from your--configfile. (#5007)
Deprecations
- The
DELETE_RAYJOB_CR_AFTER_JOB_FINISHESenv var is deprecated and will be removed in v1.10.0. Use the RayJobspec.deletionStrategyAPI instead (adeletionRulesentry with theDeleteSelfpolicy). (#5007)
Changelog
Changelog
- 4f79f54 [Release 1.8] update KubeRay version to 1.8.0 (#5576)
- 3e14e48 [release-1.8] Cherry-pick RAY_AUTH_MODE=disabled default for v1.8.0 (#5577)
- dd8a8b8 [release-1.8] cherry picks for v1.8.0 (#5562)
What's Changed
- [History Server] Replace RayCluster with RayJob sample yaml by @machichima in #5150
- [History Server] Anchor the GCS GetContent search at the configured root dir by @stantheman0128 in #5077
- [ray-operator] add sandbox samples by @andrewsykim in #5153
- Was v1alpha2 batch scheduler by @marosset in #4962
- [Sample] Fix samples by @machichima in #5154
- [Flaky Test] Apiserver flaky fix by @machichima in #5177
- [Bug][kubectl-plugin] Check RayJob status after port-forward loss by @400Ping in #5147
- [RayService][Test] Stop propagating proc.returncode in locust_runner.py by @justinyeh1995 in #5117
- [CI][kubectl-plugin] Deflake session reconnect e2e test by @400Ping in #5106
- [Feature] Add resource mapping for Huawei Ascend NPUs by @bakhovaddinov in #5071
- comply the cncf requirements on the maintainers table by @rueian in #5212
- [History Server] Disable live cluster support by default by @win5923 in #5199
- comply the cncf requirements on the security policy by @rueian in #5219
- clarify the security policy and add the report form by @rueian in #5225
- [Doc] Repin ML samples to base ray image with runtime-installed deps by @dstrodtman in #5194
- K8s 1.37 client go / envtest updates by @marosset in #5226
- [Test][Release] Change upgrade test version to test upgrade from 1.6.2 to 1.7.0 by @machichima in #5242
- [docs] refine the community governance docs by @rueian in #5254
- update the Company/Organization column in PEOPLE.md by @rueian in #5258
- example: Add agent-sandbox suspend/resume example with pod snapshots by @vicentefb in #5213
- [History Server] Cache snapshot struct in the session LRU instead of JSON bytes by @machichima in #5208
- History Server: collect rotated Ray logs before overwrite by @AdibaAdi in #5101
- [Grafana] Update dashboards to Ray 2.58 by @kevin85421 in #5259
- feat: add API and webhook validation for GCS active-passive-head by @gangli113 in #4910
- [Test][History Server] Fix Build historyserver flaky unit test: TestShutdown_DrainsRetriedTasks by @markwu7 in #5245
- [Helm][Feat] Expose enableIngress and ingressOptions in the RayCluster chart by @wuallen57730 in #5195
- [Bug][Cleanup] Remove no-op WorkersToDelete resets in RayCluster controller by @markwu7 in #5217
- [Feature] Forward Kubernetes Node infrastructure events to Ray custom resources by @richabanker in #4978
- [Follow-up] feat: address review comments on GCS active-passive-head API by @gangli113 in #5289
- feat: add ScaleGate field to ScaleStrategy for fast fallback on quota exceeded by @gangli113 in #5094
- [TAS][Webhook 1/n] Write topology API backbone by @martinlhw in #5260
- fix(rayjob): prevent transient cluster name for initially suspended jobs (#5293) by @hysuuuu in #5296
- Feat/remove restart policy never if autoscaler v2 by @fscnick in #4816
- [History Server] Cache JSON bytes and share the decoded snapshot via a weak pointer by @machichima in #5285
- K8sJobMode: Honour Ray address overrides in submitter health checks by @shayansadeghieh in #5281
- Updating remaining K8s deps and controller-runtime for v1.37 by @marosset in #5255
- [Helm][Feat] Expose spec.authOptions and spec.upgradeStrategy in RayCluster Helm Chart by @markwu7 in #5197
- Add stale issue/PR bot workflow by @yjaw in #5061
- [Fix] Unmask CI failures and fix ready-endpoints check in TestZeroDowntimeUpgradeAfterOperatorUpgrade by @alkaid040492 in #5320
- [CI] make the Test Python Client operator build retry actually retry by @win5923 in #5306
- [Flaky] history server e2e test remove port forward by @machichima in #5307
- [Fix][Prometheus] Add missing provisioned condition descriptor to Describe() by @Efutrrionpy in #5311
- [Bug] logStdoutEncoder and logFileEncoder setting from
--configare ignored by @Onionssss in #5322 - [History Server][test] Add unit tests for state_transitions by @hysuuuu in #5250
- [Feature][Volcano] Populate SubGroupPolicy from Ray worker replicas by @OneSizeFitsQuorum in #5249
- [CI] [History Server] Build collector and history server images in CI by @CheyuWu in #5248
- helm: support common envFrom for Ray containers by @Smallfu666 in #5034
- Fix outdated comment about Kueue's suspend limitations by @win5923 in #5185
- [Docs] Fix DeletionStrategy godoc rendering in the generated API reference by @ribhavjain in #5182
- [RayJob] Align existing RayCluster sample name by @zhuangzhewei09 in #5170
- [History Server] Add aliyunoss History Server deployment and proxy head samples by @KunWuLuan in #5156
- [History Server][CI] add unit tests for the lineage task summary by @wuallen57730 in #5128
- [Bug][kubectl-plugin] Tear down the port-forward child when a session is terminated by @omkar619-dev in #5181
- [History Server] Rename GetContent first param clusterId -> prefix by @markwu7 in #5068
- [RayService] Assert rollback reason in TestReconcileRollbackState by @zacheryasc in #5076
- [History Server] create helper to extract similar pattern for session node listing by @markwu7 in #5113
- [RayCluster][CI] add e2e test for autoscaler scale-up with mTLS by @wuallen57730 in #5066
- [Bug][kubectl-plugin] Fix log output directory and Ray image defaults by @HsiaoHungKai in #5053
- [Stale bot] disable stale bot for issue by @machichima in #5335
- [CI] [History Server] temp remove history server e2e by @CheyuWu in #5342
- [Buildkite] upload e2e test results to buildkite test suite by @machichima in #5169
- [Docs][Dashboard] Fix the stale dashboard README by @markwu7 in #5187
- [TAS][Webhook] Reshape topology.labelMappings into workerGroupSpecs[].labelRefs by @martinlhw in #5329
- [CI][History Server] Replace MinIO with RustFS for e2e tests by @win5923 in #5357
- [RayService] Support attaching incremental upgrade to an existing Gateway by @ScraperNerd18 in #5018
- [docs] add CNCF sandbox and LF Projects footer, move GOVERNANCE.md to root by @rueian in #5370
- Remove manual client go metrics by @spencer-p in #5385
- [History Server] Bump Ray to 2.58.0 in examples and e2e test data by @wuallen57730 in #5363
- [Docs][History Server] Replace MinIO with RustFS in docs by @fweilun in #5384
- [Docs] Update contributing docs & AI contribution guidance by @machichima in #5399
- [CI] [History Server] Enhance CI ecosystem by @CheyuWu in #5247
- [Feature][History Server] Make the collector image configurable on the operator by @KunWuLuan in #5207
- [TAS][Webhook 2/2] Deliver node labels to Ray workers through admission webhooks by @martinlhw in #5300
- [History Server] Set timeout to 2 minutes for S3 and aliyunoss by @machichima in #5390
- [APIServer] Wait for the terminate-actor job, not the create-actor job by @stantheman0128 in #5103
- [ray-operator] Add spec.idleSuspend and spec.idleTerminationOptions for v1 RayCluster CRD by @justinyeh1995 in #5210
- [Docs] Fix casing and a nonexistent image tag in API doc comments by @dstrodtman in #5432
- [CI] Grant contents write to workflows by @win5923 in #5428
- [History Server] Upload running history server logs by chunk by @machichima in #5347
- [CI] add flaky test workflow bot by @machichima in #5450
- [CI][python-client] Publish kuberay-client to PyPI by @win5923 in #5346
- [ray-operator] Bump golang.org/x/net, golang.org/x/text and cert-manager to fix CVEs by @jhasm in #5486
- [RayCluster][GCS FT] Do not inherit head Pod anti-affinity in the Redis cleanup Job by @sramireddy2 in #5448
- helm: preserve maxReplicas: 0 in the RayCluster chart by @Efutrrionpy in #5481
- [History Server] add reload button in select cluster page by @machichima in #5463
- [RayCluster] [Fix] RayCluster suspend leaks the Volcano PodGroup, leaving queue resources reserved by @CheyuWu in #5200
- [History Server] Auto reload when changing from running to dead cluster by @machichima in #5467
- [History Server] Fix dashboard token login with --proxy-server-url by @Efutrrionpy in #5472
- [Feat][RayCronJob] Include metadata (e.g. labels,annotations) in RayCronJob jobTemplate by @markwu7 in #5383
- historyserver: fix in-cluster service discovery URL format by @hakan-metin in #5351
- [History Server] Refactor get dir helper function by @kash2104 in #5216
- [Feature] Support in-place gang resize for Kubernetes WAS v1alpha3 by @marosset in #5266
- update KubeRay version to 1.8.0-rc.0 by @machichima in #5502
- [release-1.8] cherry picks for v1.8.0 by @machichima in #5562
- [release-1.8] Cherry-pick RAY_AUTH_MODE=disabled default for v1.8.0 by @machichima in #5577
- [Release 1.8] update KubeRay version to 1.8.0 by @machichima in #5576
New Contributors
- @stantheman0128 made their first contribution in #5077
- @bakhovaddinov made their first contribution in #5071
- @AdibaAdi made their first contribution in #5101
- @markwu7 made their first contribution in #5245
- @wuallen57730 made their first contribution in #5195
- @martinlhw made their first contribution in #5260
- @hysuuuu made their first contribution in #5296
- @shayansadeghieh made their first contribution in #5281
- @alkaid040492 made their first contribution in #5320
- @Efutrrionpy made their first contribution in #5311
- @Onionssss made their first contribution in #5322
- @OneSizeFitsQuorum made their first contribution in #5249
- @ribhavjain made their first contribution in #5182
- @zhuangzhewei09 made their first contribution in #5170
- @zacheryasc made their first contribution in #5076
- @ScraperNerd18 made their first contribution in #5018
- @sramireddy2 made their first contribution in #5448
- @hakan-metin made their first contribution in #5351
Full Changelog: v1.7.3...v1.8.0