You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Devaraj Das (JIRA)" <ji...@apache.org> on 2009/07/07 06:22:15 UTC
[jira] Created: (MAPREDUCE-718) Support for per-phase speculative
execution
Support for per-phase speculative execution
-------------------------------------------
Key: MAPREDUCE-718
URL: https://issues.apache.org/jira/browse/MAPREDUCE-718
Project: Hadoop Map/Reduce
Issue Type: Improvement
Components: jobtracker
Affects Versions: 0.21.0
Reporter: Devaraj Das
Fix For: 0.21.0
It would be good to have support for per-phase speculative execution where the algorithm looks at the current phase of a task, and compares with the other tasks in the same phase before deciding to launch a speculative task. That would have the following benefits:
1) Support for jobs where map tasks progresses jumps from 0% to 100%. This is true for some jobs like randomwriter. Today, we would launch speculative tasks for such jobs (assuming that the tasks are not making progress). But most of them would be unnecessary.
2) In reality, for reduces, the three phases are quite different from each other, and they take different times too. We should see better results when we look at per-phase speculation.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (MAPREDUCE-718) Support for per-phase speculative
execution
Posted by "Zhang Zhaoning (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12730049#action_12730049 ]
Zhang Zhaoning commented on MAPREDUCE-718:
------------------------------------------
What about the detailed mechanism about this?
Is that when each phase hit its threshold then migrate the entire task?
If some reduce tasks will process the shuffling fast but sorting slow for the network performance, when the sorting phase hit the sorting threshold and then the task is migrated and re-run it on a poor network performance node.
> Support for per-phase speculative execution
> -------------------------------------------
>
> Key: MAPREDUCE-718
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-718
> Project: Hadoop Map/Reduce
> Issue Type: Improvement
> Components: jobtracker
> Affects Versions: 0.21.0
> Reporter: Devaraj Das
> Fix For: 0.21.0
>
>
> It would be good to have support for per-phase speculative execution where the algorithm looks at the current phase of a task, and compares with the other tasks in the same phase before deciding to launch a speculative task. That would have the following benefits:
> 1) Support for jobs where map tasks progresses jumps from 0% to 100%. This is true for some jobs like randomwriter. Today, we would launch speculative tasks for such jobs (assuming that the tasks are not making progress). But most of them would be unnecessary.
> 2) In reality, for reduces, the three phases are quite different from each other, and they take different times too. We should see better results when we look at per-phase speculation.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (MAPREDUCE-718) Support for per-phase speculative
execution
Posted by "Zhang Zhaoning (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12766370#action_12766370 ]
Zhang Zhaoning commented on MAPREDUCE-718:
------------------------------------------
I think we can incorporate MAPREDUCE-211 with the Health Status for the node anticipated finish time of the speculative execution.
> Support for per-phase speculative execution
> -------------------------------------------
>
> Key: MAPREDUCE-718
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-718
> Project: Hadoop Map/Reduce
> Issue Type: Improvement
> Components: jobtracker
> Affects Versions: 0.21.0
> Reporter: Devaraj Das
> Fix For: 0.21.0
>
>
> It would be good to have support for per-phase speculative execution where the algorithm looks at the current phase of a task, and compares with the other tasks in the same phase before deciding to launch a speculative task. That would have the following benefits:
> 1) Support for jobs where map tasks progresses jumps from 0% to 100%. This is true for some jobs like randomwriter. Today, we would launch speculative tasks for such jobs (assuming that the tasks are not making progress). But most of them would be unnecessary.
> 2) In reality, for reduces, the three phases are quite different from each other, and they take different times too. We should see better results when we look at per-phase speculation.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (MAPREDUCE-718) Support for per-phase speculative
execution
Posted by "Devaraj Das (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12743076#action_12743076 ]
Devaraj Das commented on MAPREDUCE-718:
---------------------------------------
bq. This will possibly put a lot more load on the JT. Are we confident this will not impact performance?
I guess you are saying this since the system counters will be passed every heartbeat. But the number of system counters are very few (and on top of that we can exactly control which system counters to send if we come down to that). So hopefully, performance is not an issue. Regarding the computation of statistics, the statistics today look at progress values, but if we replace that by the relevant counter value for the respective phase, it shouldn't add any extra overhead.
> Support for per-phase speculative execution
> -------------------------------------------
>
> Key: MAPREDUCE-718
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-718
> Project: Hadoop Map/Reduce
> Issue Type: Improvement
> Components: jobtracker
> Affects Versions: 0.21.0
> Reporter: Devaraj Das
> Fix For: 0.21.0
>
>
> It would be good to have support for per-phase speculative execution where the algorithm looks at the current phase of a task, and compares with the other tasks in the same phase before deciding to launch a speculative task. That would have the following benefits:
> 1) Support for jobs where map tasks progresses jumps from 0% to 100%. This is true for some jobs like randomwriter. Today, we would launch speculative tasks for such jobs (assuming that the tasks are not making progress). But most of them would be unnecessary.
> 2) In reality, for reduces, the three phases are quite different from each other, and they take different times too. We should see better results when we look at per-phase speculation.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (MAPREDUCE-718) Support for per-phase speculative
execution
Posted by "eric baldeschwieler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12742989#action_12742989 ]
eric baldeschwieler commented on MAPREDUCE-718:
-----------------------------------------------
This will possibly put a lot more load on the JT. Are we confident this will not impact performance?
Down the road...
A thought would be to have a statistics proxy for each job. It could collect statistics, record them for later user us and pass speculative decisions up to the JT. A possible step towards moving all the map-reduce logic out of the JT into a per job master process, which would have lots of nice properties.
> Support for per-phase speculative execution
> -------------------------------------------
>
> Key: MAPREDUCE-718
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-718
> Project: Hadoop Map/Reduce
> Issue Type: Improvement
> Components: jobtracker
> Affects Versions: 0.21.0
> Reporter: Devaraj Das
> Fix For: 0.21.0
>
>
> It would be good to have support for per-phase speculative execution where the algorithm looks at the current phase of a task, and compares with the other tasks in the same phase before deciding to launch a speculative task. That would have the following benefits:
> 1) Support for jobs where map tasks progresses jumps from 0% to 100%. This is true for some jobs like randomwriter. Today, we would launch speculative tasks for such jobs (assuming that the tasks are not making progress). But most of them would be unnecessary.
> 2) In reality, for reduces, the three phases are quite different from each other, and they take different times too. We should see better results when we look at per-phase speculation.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (MAPREDUCE-718) Support for per-phase speculative
execution
Posted by "Devaraj Das (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12742766#action_12742766 ]
Devaraj Das commented on MAPREDUCE-718:
---------------------------------------
The current speculative execution heuristic assumes inputs are homogeneous. This is not always true. Inputs are often skewed in practical cases. AS of today, we might end up launching speculative tasks for the ones that are processing large inputs. We should base the criteria of choosing what task to speculate on something that reflects the actual progress and that doesn't get affected by the skewness in the input.
One thought there is to base the choice of speculative candidates on the rate of increase of the relevant System/Framework Counters in each task phase. For example, for tasks in the map phase, we can monitor the rate of increase of MAP_INPUT_RECORDS. For reduce tasks in the shuffle phase, we look at SHUFFLE_BYTES counter and so on. We also need to maintain the per-phase statistics for the counters, and consider the current phase of a given task for considering it for speculation.
Today, the task counters is transmitted once a minute from the tasktrackers. I propose that for the system counters we send the counters in every heartbeat. The communication of the system counters information can be made efficient by having a customized serialization for them. Since the system counter names are known to both the JobTracker and the TaskTrackers, the order in which they are serialized/deserialized is a good enough indicator of which particular counter we are talking about. Also, the counter values can be serialized as vInts.
@Zhang, for speculative execution, we don't migrate tasks.
> Support for per-phase speculative execution
> -------------------------------------------
>
> Key: MAPREDUCE-718
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-718
> Project: Hadoop Map/Reduce
> Issue Type: Improvement
> Components: jobtracker
> Affects Versions: 0.21.0
> Reporter: Devaraj Das
> Fix For: 0.21.0
>
>
> It would be good to have support for per-phase speculative execution where the algorithm looks at the current phase of a task, and compares with the other tasks in the same phase before deciding to launch a speculative task. That would have the following benefits:
> 1) Support for jobs where map tasks progresses jumps from 0% to 100%. This is true for some jobs like randomwriter. Today, we would launch speculative tasks for such jobs (assuming that the tasks are not making progress). But most of them would be unnecessary.
> 2) In reality, for reduces, the three phases are quite different from each other, and they take different times too. We should see better results when we look at per-phase speculation.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.