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][state] Efficient get/list actors with filters on some high-cardinality fields #34348

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

rickyyx
Copy link
Contributor

@rickyyx rickyyx commented Apr 13, 2023

Why are these changes needed?

This improves the state API for listing/getting actors: if filtering by id/state/job, filtering is pushed down to the source (GCS).

Other state API resources will be implemented in a similar way (e.g. tasks/workers).

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 :(

Signed-off-by: rickyyx <[email protected]>
@rickyyx
Copy link
Contributor Author

rickyyx commented Apr 13, 2023

I am planning to do similar things for tasks + workers + objects, and plan to work on other issues before optimizing for other resources, which usually has a lower cardinality I believe (e.g. placement groups, runtime-envs)? cc @rkooo567

@rickyyx rickyyx added the tests-ok The tagger certifies test failures are unrelated and assumes personal liability. label Apr 13, 2023
Copy link
Contributor

@rkooo567 rkooo567 left a comment

Choose a reason for hiding this comment

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

We should probably remove show_dead_jobs option

@rkooo567
Copy link
Contributor

cc @scv119 for the protobuf approval

@rickyyx
Copy link
Contributor Author

rickyyx commented Apr 14, 2023

We should probably remove show_dead_jobs option

Here: #34415

@rkooo567 rkooo567 merged commit 7b92d77 into ray-project:master Apr 17, 2023
vitsai pushed a commit to vitsai/ray that referenced this pull request Apr 17, 2023
…dinality fields ray-project#34348

Signed-off-by: rickyyx <[email protected]>

This improves the state API for listing/getting actors: if filtering by id/state/job, filtering is pushed down to the source (GCS).

Other state API resources will be implemented in a similar way (e.g. tasks/workers).
elliottower pushed a commit to elliottower/ray that referenced this pull request Apr 22, 2023
…dinality fields ray-project#34348

Signed-off-by: rickyyx <[email protected]>

This improves the state API for listing/getting actors: if filtering by id/state/job, filtering is pushed down to the source (GCS).

Other state API resources will be implemented in a similar way (e.g. tasks/workers).

Signed-off-by: elliottower <[email protected]>
ProjectsByJackHe pushed a commit to ProjectsByJackHe/ray that referenced this pull request May 4, 2023
…dinality fields ray-project#34348

Signed-off-by: rickyyx <[email protected]>

This improves the state API for listing/getting actors: if filtering by id/state/job, filtering is pushed down to the source (GCS).

Other state API resources will be implemented in a similar way (e.g. tasks/workers).

Signed-off-by: Jack He <[email protected]>
rkooo567 pushed a commit that referenced this pull request May 5, 2023
…m state api (#34433)

Similar to #34348

This pushes down the below filters to GCS (source-side) filtering.

actor_id
task id
task name
job id
architkulkarni pushed a commit to architkulkarni/ray that referenced this pull request May 16, 2023
…m state api (ray-project#34433)

Similar to ray-project#34348

This pushes down the below filters to GCS (source-side) filtering.

actor_id
task id
task name
job id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests-ok The tagger certifies test failures are unrelated and assumes personal liability.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants