Skip to content

Support a configurable delay for task shuffles. #1770

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

Merged
merged 8 commits into from
Apr 5, 2018

Conversation

baconmania
Copy link
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
Member

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
@@ -15,6 +15,8 @@
import java.util.concurrent.atomic.AtomicLong;
import java.util.stream.Collectors;

import javax.ws.rs.HEAD;
Copy link
Member

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
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
Copy link
Member

ssalinas commented Apr 3, 2018

🚢

@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