Skip to content

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