Analysis of hadoop fair scheduler algorithm Scheduling

Source: Internet
Author: User

The following describes the hierarchical scheduling algorithm of the fair scheduler. The big idea is similar to capacity scheduler. First, select a pool and then select a job from the pool, finally, select a locality task from the job.



Among them, the pool and job policies are the same, both adopt the fair‑comparator comparator to sort the pool or job, and then scan the queue from start to end to select the appropriate pool or job.

Method for Selecting a pool: When we
Sort pools to choose which ones to schedule next, we place pools below their min share ahead of pools above their min share. we order the pools below their min share by how far they are below it as a percentage of the share. (sort by percentage lower than the minimum share amount)

Method for Selecting a job:
Comparator orders jobs by distance below min share and then by runningtasks/weight.

Deficit sorts the job deficit (the difference between the calculation time that the job deserves on the ideal scheduler and the actual calculation time), and tests in sequence, until the tasks that meet the conditions are selected.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.