Skip to content

Support a configurable delay for task shuffles. - #1770

Merged
ssalinas merged 8 commits into
masterfrom
delayed-task-shuffles
Apr 5, 2018
Merged

Support a configurable delay for task shuffles.#1770
ssalinas merged 8 commits into
masterfrom
delayed-task-shuffles

Conversation

@baconmania

Copy link
Copy Markdown
Contributor

No description provided.

@baconmania baconmania changed the title Support a configurable delay for task shuffles. (WIP) Support a configurable delay for task shuffles. Mar 29, 2018
return (
isLongRunning(task)
&& !configuration.getDoNotShuffleRequests().contains(task.getRequestId())
&& (TimeUnit.MILLISECONDS.toMinutes(System.currentTimeMillis() - task.getStartedAt()) > configuration.getMinutesBeforeNewTaskEligibleForShuffle())

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.

I wonder if we should go by the task running timestamp instead? Take out any delay that may have been caused by mesos/singularity that way

@ssalinas ssalinas added this to the 0.20.0 milestone Mar 30, 2018
@baconmania baconmania changed the title (WIP) Support a configurable delay for task shuffles. Support a configurable delay for task shuffles. Mar 30, 2018
import java.util.concurrent.atomic.AtomicLong;
import java.util.stream.Collectors;

import javax.ws.rs.HEAD;

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.

leftover from merge conflict? (intellij auto import stuff?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch.

@ssalinas

ssalinas commented Apr 3, 2018

Copy link
Copy Markdown
Contributor

🚢

@ssalinas
ssalinas merged commit 52bf623 into master Apr 5, 2018
@ssalinas
ssalinas deleted the delayed-task-shuffles branch April 5, 2018 12:53
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