-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
[xray] raylet scheduling mechanism with a simple spillback policy #2749
[xray] raylet scheduling mechanism with a simple spillback policy #2749
Conversation
…e worker is blocked
Test FAILed. |
Test FAILed. |
Test PASSed. |
Test PASSed. |
Test PASSed. |
…uarantee object eviction.
/// resource labels to this set. | ||
/// | ||
/// \param other: The other resource set to add. | ||
void AddResources(const ResourceSet &other); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\return Void.
src/ray/raylet/scheduling_policy.h
Outdated
/// information for some subset of the cluster. For all client IDs in the returned | ||
/// placement map, the corresponding SchedulingResources::resources_load_ is | ||
/// incremented by the aggregate resource demand of the tasks assigned to it. | ||
/// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there shouldn't be an extra ///
here
const std::unordered_map<ClientID, SchedulingResources> &cluster_resources, | ||
const ClientID &local_client_id, const std::vector<ClientID> &others); | ||
std::unordered_map<ClientID, SchedulingResources> &cluster_resources, | ||
const ClientID &local_client_id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
document local_client_id
src/ray/raylet/node_manager.cc
Outdated
std::unordered_map<ClientID, SchedulingResources> local_resource_map( | ||
{{local_client_id, cluster_resource_map_[local_client_id]}}); | ||
// Invoke the scheduling policy only on local resources. | ||
// ScheduleTasks(local_resource_map); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this and the comment
We should also update the diagram in https://github.com/ray-project/ray/blob/master/src/ray/raylet/design_docs/task_states.rst. |
Test PASSed. |
bfa4406
to
aec71d5
Compare
Test FAILed. |
Jenkins retest this please |
Test PASSed. |
Test FAILed. |
Test PASSed. |
What do these changes do?