[ 
https://issues.apache.org/jira/browse/TEZ-1665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14171783#comment-14171783
 ] 

Siddharth Seth commented on TEZ-1665:
-------------------------------------

I'm not sure different priorities for speculative attempts will be very useful. 
Speculation should only kick in when a specific attempt is taking longer than 
it should - so speculative tasks would normally not get in the way of regular 
attempts. Given that we have multiple vertices at the same priority range, the 
speculated task may get penalized unnecessarily - block a single straggler on a 
vertex behind tasks belonging to another vertex at the same priority for 
instance. In any case, this can be looked at in the speculation jira.

The patch itself looks good. Minor stuff.
- TaskAttempt.getIsRescheduled is no longer used and should be removed.
- A verification of the priority assigned by the TaskAttempt would be useful - 
considering the low+high/2 behaviour.



> DAGScheduler should provide a priority range instead of an exact priority
> -------------------------------------------------------------------------
>
>                 Key: TEZ-1665
>                 URL: https://issues.apache.org/jira/browse/TEZ-1665
>             Project: Apache Tez
>          Issue Type: Task
>            Reporter: Bikas Saha
>            Assignee: Bikas Saha
>         Attachments: TEZ-1665.1.patch
>
>
> Specifying the exact priority leaks task attempt concepts into the 
> DAGScheduler. Eg. the DAGScheduler increases the priority of 
> attempt-re-executions arbitrarily. Providing a range allows these decisions 
> to be made at the task attempt level. e.g. when there are no competing tasks 
> then there is no reason to increase the priority. Similarly for speculation, 
> the speculative task priority could be lower than normal tasks because we may 
> want the first attempt of other tasks to run ahead of a speculative task. 
> These relative priorities within a vertex can be made locally instead of 
> leaking into the DAGScheduler.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to