Skip to content

[core][state] Efficient get/list actors with filters on some high-cardinality fields - #34348

Merged
rkooo567 merged 1 commit into
ray-project:masterfrom
rickyyx:pr-state-api-get-impl
Apr 17, 2023
Merged

rkooo567 merged 1 commit into
ray-project:masterfrom
rickyyx:pr-state-api-get-impl

Conversation

@rickyyx

@rickyyx rickyyx commented Apr 13, 2023

Copy link
Copy Markdown
Member

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

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

rickyyx commented Apr 13, 2023 •

Copy link
Copy Markdown
Member Author

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

@rkooo567 rkooo567 left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

cc @scv119 for the protobuf approval

@rickyyx

rickyyx commented Apr 14, 2023

Copy link
Copy Markdown
Member Author

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants