Skip to content

[core] (5/n) [Removing GCS Centralized Scheduling] Moving gcs_actor_* into a separate module#60188

Merged
edoakes merged 29 commits intomasterfrom
irabbani/remove-centralized-actor-scheduling-5
Jan 17, 2026
Merged

[core] (5/n) [Removing GCS Centralized Scheduling] Moving gcs_actor_* into a separate module#60188
edoakes merged 29 commits intomasterfrom
irabbani/remove-centralized-actor-scheduling-5

Conversation

@israbbani
Copy link
Contributor

@israbbani israbbani commented Jan 15, 2026

This PR stacks on #60121.

This is 5/N in a series of PRs to remove Centralized Actor Scheduling by the GCS (introduced in #15943). The feature is off by default and no longer in use or supported.

In this PR,

  • Moving the gcs_actor_* files into a separate bazel module /ray/gcs/actor/
  • Moves the LocalLeaseManager into /ray/raylet/scheduling with its friends
  • Enabling cpplint

Pure refactoring. No logic changes.

Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
…ub.com:ray-project/ray into irabbani/remove-centralized-actor-scheduling-1
Signed-off-by: irabbani <irabbani@anyscale.com>
…abbani/remove-centralized-actor-scheduling-2
Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
…from the GCS (#60019)

This PR stacks on #60008.

This is 3/N in a series of PRs to remove Centralized Actor Scheduling by
the GCS (introduced in #15943).
The feature is off by default and no longer in use or supported.

In this PR, I remove GC requests published globally from the GCS to all
Raylets through the RaySyncer. This feature was introduced as part of
Centralized Scheduling through GCS in
#28663.

The implementation used to check to see if there were pending leases for
two consecutive intervals (of 10s) each from the ClusterLeaseManager in
the GCS. If so, the GCS would trigger GlobalGC. Therefore, with GCS
Centralized Scheduling disabled, the GCS would never send GlobalGC
requests. It's safe to delete now.

I've also moved the Throttler from util to the raylet package and made
it's visibility private.

---------

Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Removes the GCS's dependency on LocalLeaseManager.
Moves the LocalLeaseManager into the raylet/scheduling package.
The LocalLeaseManager is now private to the raylet.

Signed-off-by: irabbani <irabbani@anyscale.com>
…aseManager from GCS. (#60008)

This PR stacks on #59979. 

This is 2/N and 3/N (#60019) in a series of PRs to remove Centralized
Actor Scheduling by the GCS (introduced in #15943). The feature is off
by default and no longer in use or supported.

In this PR, 

1. I remove use of the ClusterLeaseManager (from the Raylet's scheduler)
in the GCS.
2. I remove GC requests published globally from the GCS to all Raylets
through the RaySyncer. This feature was introduced as part of
Centralized Scheduling through GCS in
#28663.
3. I've moded the Throttler from util to the raylet package and made
it's visibility private.

The GC implementation used to check to see if there were pending leases
for two consecutive intervals (of 10s) each from the ClusterLeaseManager
in the GCS. If so, the GCS would trigger GlobalGC. Therefore, with GCS
Centralized Scheduling disabled, the GCS would never send GlobalGC
requests. It's safe to delete now.

---------

Signed-off-by: irabbani <irabbani@anyscale.com>
…ng-1

Signed-off-by: Ibrahim Rabbani <irabbani@anyscale.com>
…abbani/remove-centralized-actor-scheduling-4

Signed-off-by: Ibrahim Rabbani <irabbani@anyscale.com>
…abbani/remove-centralized-actor-scheduling-4
Signed-off-by: irabbani <irabbani@anyscale.com>
…ub.com:ray-project/ray into irabbani/remove-centralized-actor-scheduling-4
…ng-4

Signed-off-by: Ibrahim Rabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Moving the gcs_actor_* code into a separate bazel package.
Adding a README.md for documentation.
Enabling cpplint.

Signed-off-by: irabbani <irabbani@anyscale.com>
@israbbani israbbani added core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests labels Jan 15, 2026
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

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 is a refactoring effort to move GCS actor-related files into a separate Bazel module, which is a good step for modularity. The changes mostly consist of moving files and updating include paths and build configurations. The changes are generally correct and align with the PR's goal. I've found one critical issue with a typo in an include path that would break the build, and one minor style issue in a new mock file that should be addressed for code cleanliness. Please see the detailed comments below.

Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Base automatically changed from irabbani/remove-centralized-actor-scheduling-4 to master January 15, 2026 22:56
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@edoakes you're welcome

@israbbani israbbani marked this pull request as ready for review January 16, 2026 01:52
@israbbani israbbani requested a review from a team as a code owner January 16, 2026 01:52
Copy link
Collaborator

@edoakes edoakes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix DCO

@israbbani
Copy link
Contributor Author

Fixed DCO. It keeps breaking on merge commits that are done through github.

…ove-centralized-actor-scheduling-5

Signed-off-by: irabbani <irabbani@anyscale.com>
@edoakes edoakes enabled auto-merge (squash) January 16, 2026 23:50
@edoakes edoakes merged commit 59a06fc into master Jan 17, 2026
7 checks passed
@edoakes edoakes deleted the irabbani/remove-centralized-actor-scheduling-5 branch January 17, 2026 00:41
limarkdcunha pushed a commit to limarkdcunha/ray that referenced this pull request Jan 18, 2026
… into a separate module (ray-project#60188)

This PR stacks on ray-project#60121.

This is 5/N in a series of PRs to remove Centralized Actor Scheduling by
the GCS (introduced in ray-project#15943).
The feature is off by default and no longer in use or supported.

In this PR,

- Moving the gcs_actor_* files into a separate bazel module
`/ray/gcs/actor/`
- Moves the LocalLeaseManager into `/ray/raylet/scheduling` with its
friends
- Enabling cpplint

Pure refactoring. No logic changes.

---------

Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: Ibrahim Rabbani <irabbani@anyscale.com>
Co-authored-by: Lonnie Liu <95255098+aslonnie@users.noreply.github.com>
Signed-off-by: Limark Dcunha <limarkdcunha@gmail.com>
jinbum-kim pushed a commit to jinbum-kim/ray that referenced this pull request Jan 29, 2026
… into a separate module (ray-project#60188)

This PR stacks on ray-project#60121.

This is 5/N in a series of PRs to remove Centralized Actor Scheduling by
the GCS (introduced in ray-project#15943).
The feature is off by default and no longer in use or supported.

In this PR,

- Moving the gcs_actor_* files into a separate bazel module
`/ray/gcs/actor/`
- Moves the LocalLeaseManager into `/ray/raylet/scheduling` with its
friends
- Enabling cpplint

Pure refactoring. No logic changes.

---------

Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: Ibrahim Rabbani <irabbani@anyscale.com>
Co-authored-by: Lonnie Liu <95255098+aslonnie@users.noreply.github.com>
Signed-off-by: jinbum-kim <jinbum9958@gmail.com>
ryanaoleary pushed a commit to ryanaoleary/ray that referenced this pull request Feb 3, 2026
… into a separate module (ray-project#60188)

This PR stacks on ray-project#60121.

This is 5/N in a series of PRs to remove Centralized Actor Scheduling by
the GCS (introduced in ray-project#15943).
The feature is off by default and no longer in use or supported.

In this PR,

- Moving the gcs_actor_* files into a separate bazel module
`/ray/gcs/actor/`
- Moves the LocalLeaseManager into `/ray/raylet/scheduling` with its
friends
- Enabling cpplint

Pure refactoring. No logic changes.

---------

Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: Ibrahim Rabbani <irabbani@anyscale.com>
Co-authored-by: Lonnie Liu <95255098+aslonnie@users.noreply.github.com>
peterxcli pushed a commit to peterxcli/ray that referenced this pull request Feb 25, 2026
… into a separate module (ray-project#60188)

This PR stacks on ray-project#60121.

This is 5/N in a series of PRs to remove Centralized Actor Scheduling by
the GCS (introduced in ray-project#15943).
The feature is off by default and no longer in use or supported.

In this PR,

- Moving the gcs_actor_* files into a separate bazel module
`/ray/gcs/actor/`
- Moves the LocalLeaseManager into `/ray/raylet/scheduling` with its
friends
- Enabling cpplint

Pure refactoring. No logic changes.

---------

Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: Ibrahim Rabbani <irabbani@anyscale.com>
Co-authored-by: Lonnie Liu <95255098+aslonnie@users.noreply.github.com>
Signed-off-by: peterxcli <peterxcli@gmail.com>
peterxcli pushed a commit to peterxcli/ray that referenced this pull request Feb 25, 2026
… into a separate module (ray-project#60188)

This PR stacks on ray-project#60121.

This is 5/N in a series of PRs to remove Centralized Actor Scheduling by
the GCS (introduced in ray-project#15943).
The feature is off by default and no longer in use or supported.

In this PR,

- Moving the gcs_actor_* files into a separate bazel module
`/ray/gcs/actor/`
- Moves the LocalLeaseManager into `/ray/raylet/scheduling` with its
friends
- Enabling cpplint

Pure refactoring. No logic changes.

---------

Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: Ibrahim Rabbani <irabbani@anyscale.com>
Co-authored-by: Lonnie Liu <95255098+aslonnie@users.noreply.github.com>
Signed-off-by: peterxcli <peterxcli@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants