Skip to content

Conversation

@win5923
Copy link
Member

@win5923 win5923 commented Jan 15, 2026

Why are these changes needed?

Add TTL-based idle cluster termination

  • Add ttlSecondsAfterIdle field to RayCluster spec to automatically delete clusters that have been idle for a specified duration
  • Idle status is determined by querying the Ray Dashboard /api/component_activities endpoint
  • Skip idle check for RayClusters created by RayJob or RayService to avoid lifecycle management conflicts

Usage

apiVersion: ray.io/v1
kind: RayCluster
metadata:
  name: raycluster-kuberay
spec:
  ttlSecondsAfterIdle: 10
...

Related issue number

Closes #2998

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

Signed-off-by: win5923 <ken89@kimo.com>
Signed-off-by: Jun-Hao Wan <ken89@kimo.com>
@win5923 win5923 force-pushed the terminate-idle-cluster branch from 660e2b1 to 569e91d Compare January 15, 2026 17:07
Signed-off-by: win5923 <ken89@kimo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Terminate idle cluster

1 participant