fairscheduler专题

FairScheduler源码队列饥饿

小于最低资源保障量的队列,呈饥饿状态。 protected Resource resToPreempt(FSLeafQueue sched, long curTime) {long minShareTimeout = sched.getMinSharePreemptionTimeout();long fairShareTimeout = sched.getFairSharePreempti

FairScheduler源码资源抢占

FairScheduler类 private class UpdateThread extends Thread {@Overridepublic void run() {while (!Thread.currentThread().isInterrupted()) {try {Thread.sleep(updateInterval); //默认500mslong start = g