PrepAway - Latest Free Exam Questions & Answers

How will the Fair Scheduler handle these two jobs?

You have a cluster running with the Fair Scheduler enabled. There are currently no jobs running
on the cluster, and you submit a job A, so that only job A is running on the cluster. A while later,
you submit Job B. now job A and Job B are running on the cluster at the same time. How will the
Fair Scheduler handle these two jobs?

PrepAway - Latest Free Exam Questions & Answers

A.
When job A gets submitted, it consumes all the tasks slots.

B.
When job A gets submitted, it doesn’t consume all the task slots

C.
When job B gets submitted, Job A has to finish first, before job B can scheduled

D.
When job B gets submitted, it will get assigned tasks, while Job A continue to run with fewer
tasks.

4 Comments on “How will the Fair Scheduler handle these two jobs?

  1. John says:

    Answers: A and D
    Initially A uses all the free slots
    Then when B is run, the fair scheduler allocates slots to B while A gets less




    1



    0
  2. orangegallery says:

    Mary and Bob’s jobs would already be running when
    Jane came along (or some other staggered submission use case). In this case, Bob is said
    to be over his fair share and Jane under (or starved). When this occurs, the scheduler
    allows Bob’s tasks to complete gracefully, and then gives the newly available slots to
    the pool that has been starved the longest—in this case, Jane. The system self-corrects
    over time, and ultimately, all demand is satisfied.

    SO The answer is A and C.




    0



    0

Leave a Reply

Your email address will not be published. Required fields are marked *