Skip to content

[core] Add lazy resource view subscription feature - #68614

Draft
dancingactor wants to merge 1 commit into
ray-project:masterfrom
dancingactor:lazy-subscription
Draft

dancingactor wants to merge 1 commit into
ray-project:masterfrom
dancingactor:lazy-subscription

Conversation

@dancingactor

@dancingactor dancingactor commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Description

GCS fan-out the cluster resource view only to worker nodes that subscribe to it, instead of to every worker node. The feature is behind a flag

To-do

  1. Open PRs toward the goal: minimize the number of operations that need the cluster resource view, so that fewer nodes need to subscribe to the Ray syncer
    • The most important change: when a raylet receives an actor lease request, it should decide without the cluster resource view.
      This is blocked by the change "Stop scheduling actor leases to nodes with no available resources for the lease", which is in turn blocked by [core][actor scalability] Ensure an actor is always destroyed and not restarted when its PG is removed #67170.
      • Detailed reason:
        • Current: if the receiving node doesn't have resources for the actor lease, the raylet needs the cluster resource view to decide. If the other nodes are also full, the lease waits on this node. If another node has available resources, the raylet rejects the lease so that the owner's raylet schedules it again.
        • Ideal: if the receiving node doesn't have resources for the actor lease, the raylet rejects the request directly.
    • Zero-resource actors with no node contraint now use cluster resource make a useless extra hop, so we should fix this

Design

  • In the current design, a subscription is life-long: once a node needs the cluster resource view, it subscribes to GCS and stays subscribed forever. That makes the subscription trigger the important decision, maybe we need to minimize the trigger. If use cases show that temporary subscriptions work better, we can change the design.

This branch has not been deployed

No deployments
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.

1 participant