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

[SPARK-24615-NG3] Support scheduling tasks based on preferred resources #15

Open
wants to merge 1 commit into
base: SPARK-24615-NG2
Choose a base branch
from

Conversation

jerryshao
Copy link
Owner

No description provided.

@jerryshao jerryshao changed the title Support scheduling tasks based on preferred resources [SPARK-24615-NG3] Support scheduling tasks based on preferred resources Aug 8, 2018
@@ -282,15 +282,17 @@ private[spark] class TaskSchedulerImpl(
for (i <- 0 until shuffledOffers.size) {
val execId = shuffledOffers(i).executorId
val host = shuffledOffers(i).host
val resources = shuffledOffers(i).resources
if (availableCpus(i) >= CPUS_PER_TASK) {
Copy link

Choose a reason for hiding this comment

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

The resources seems still best effort allocation, the only enforcement to pin task to executor is number of cpus available.

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.

2 participants