What is the difference between the fair and capacity schedulers?

前端 未结 3 388
野趣味
野趣味 2021-01-31 11:09

I am new to the world of Hadoop and want to know the difference between fair and capacity schedulers. Also when are we supposed to use each one? Please answer in a simple way be

相关标签:
3条回答
  • 2021-01-31 11:26

    Fair Scheduler, Allocates resources pools ( by weights), with fair sharing within each pool

    Capacity Scheduler, Allocates resources to pools, with FIFO scheduling within each pool

    The Capacity Scheduler is designed to allow sharing a large cluster while giving each organization capacity guarantees. with the possibility to excess capacity not being used by others.

    0 讨论(0)
  • 2021-01-31 11:44

    Fair scheduling is a method of assigning resources to jobs such that all jobs get, on average, an equal share of resources over time. When there is a single job running, that job uses the entire cluster. When other jobs are submitted, tasks slots that free up are assigned to the new jobs, so that each job gets roughly the same amount of CPU time. Unlike the default Hadoop scheduler, which forms a queue of jobs, this lets short jobs finish in reasonable time while not starving long jobs. It is also a reasonable way to share a cluster between a number of users. Finally, fair sharing can also work with job priorities - the priorities are used as weights to determine the fraction of total compute time that each job should get.

    The CapacityScheduler is designed to allow sharing a large cluster while giving each organization a minimum capacity guarantee. The central idea is that the available resources in the Hadoop Map-Reduce cluster are partitioned among multiple organizations who collectively fund the cluster based on computing needs. There is an added benefit that an organization can access any excess capacity no being used by others. This provides elasticity for the organizations in a cost-effective manner.

    0 讨论(0)
  • 2021-01-31 11:49

    Below is the feature-wise comparison of the two schedulers.

    0 讨论(0)
提交回复
热议问题