Skip to content

Limit the number of tasks that can shuffle for cpu rebalance at once#1751

Merged
ssalinas merged 7 commits into
masterfrom
shuffle_limit
Mar 6, 2018
Merged

Limit the number of tasks that can shuffle for cpu rebalance at once#1751
ssalinas merged 7 commits into
masterfrom
shuffle_limit

Conversation

@ssalinas

@ssalinas ssalinas commented Mar 1, 2018

Copy link
Copy Markdown
Contributor

Add a cluster-wide limit as well as a per-slave limit for how many tasks we can shuffle around at once

@baconmania

Copy link
Copy Markdown
Contributor

🚢

for (TaskIdWithUsage taskIdWithUsage : possibleTasksToShuffle) {
if (cpuOverage <= 0 || shuffledTasks > configuration.getMaxTasksToShuffleForCpuOverage()) {
if (requestsWithShuffledTasks.contains(taskIdWithUsage.getTaskId().getRequestId())) {
LOG.debug("Request {} laready has a shuffling task, skipping", taskIdWithUsage.getTaskId().getRequestId());

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.

nitpick typo :)

@baconmania

Copy link
Copy Markdown
Contributor

🚢

@pschoenfelder

Copy link
Copy Markdown
Contributor

🚢

@ssalinas

ssalinas commented Mar 6, 2018

Copy link
Copy Markdown
Contributor Author

Going to merge this one and start other changes in a new PR

@ssalinas ssalinas merged commit 451716b into master Mar 6, 2018
@ssalinas ssalinas deleted the shuffle_limit branch March 6, 2018 14:19
@ssalinas ssalinas added this to the 0.20.0 milestone Mar 6, 2018
@ssalinas ssalinas modified the milestones: 0.20.0, 0.19.2 Mar 26, 2018
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