Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core][autoscaler] Add idle time information to autoscaler endpoint. #36918

Merged
merged 7 commits into from
Jun 30, 2023

Conversation

rickyyx
Copy link
Contributor

@rickyyx rickyyx commented Jun 28, 2023

Why are these changes needed?

This PR populates the idle_duration_ms for each node, that's part of the cluster resources state.

This allows autosclaer to decide if a node is idle.

This completes #36670, which surfaced idle info from raylet.

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

rickyyx added 2 commits June 28, 2023 20:12
Signed-off-by: rickyyx <rickyx@anyscale.com>
Signed-off-by: rickyyx <rickyx@anyscale.com>
@rickyyx rickyyx requested a review from a team as a code owner June 28, 2023 21:09
@@ -175,41 +175,52 @@ void GcsAutoscalerStateManager::GetPendingResourceRequests(

void GcsAutoscalerStateManager::GetNodeStates(
rpc::autoscaler::ClusterResourceState *state) {
auto populate_node_state = [&](const rpc::GcsNodeInfo &gcs_node_info,
rpc::autoscaler::NodeStatus status) {
auto populate_node_state = [&](const rpc::GcsNodeInfo &gcs_node_info) {
Copy link
Contributor

@scv119 scv119 Jun 29, 2023

Choose a reason for hiding this comment

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

is this change covered by test? (non idle part specifically)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

rickyyx added 5 commits June 29, 2023 18:22
Signed-off-by: rickyyx <rickyx@anyscale.com>
Signed-off-by: rickyyx <rickyx@anyscale.com>
Signed-off-by: rickyyx <rickyx@anyscale.com>
@scv119 scv119 merged commit 7275fad into ray-project:master Jun 30, 2023
arvind-chandra pushed a commit to lmco/ray that referenced this pull request Aug 31, 2023
…ay-project#36918)

This PR populates the `idle_duration_ms` for each node, that's part of the cluster resources state.

This allows autosclaer to decide if a node is idle.

This completes ray-project#36670, which surfaced idle info from raylet.

Signed-off-by: e428265 <arvind.chandramouli@lmco.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.

4 participants