YARN-10286. PendingContainers bugs in the scheduler outputs. Contributed by Andras Gyori
This commit is contained in:
parent
9cfc0e50fa
commit
a266e32d82
|
@ -60,6 +60,7 @@ public class FairSchedulerQueueInfo {
|
||||||
private ResourceInfo reservedResources;
|
private ResourceInfo reservedResources;
|
||||||
private ResourceInfo maxContainerAllocation;
|
private ResourceInfo maxContainerAllocation;
|
||||||
|
|
||||||
|
private long pendingContainers;
|
||||||
private long allocatedContainers;
|
private long allocatedContainers;
|
||||||
private long reservedContainers;
|
private long reservedContainers;
|
||||||
|
|
||||||
|
@ -108,6 +109,7 @@ public class FairSchedulerQueueInfo {
|
||||||
|
|
||||||
allocatedContainers = queue.getMetrics().getAllocatedContainers();
|
allocatedContainers = queue.getMetrics().getAllocatedContainers();
|
||||||
reservedContainers = queue.getMetrics().getReservedContainers();
|
reservedContainers = queue.getMetrics().getReservedContainers();
|
||||||
|
pendingContainers = queue.getMetrics().getPendingContainers();
|
||||||
|
|
||||||
if (allocConf.isReservable(queueName) &&
|
if (allocConf.isReservable(queueName) &&
|
||||||
!allocConf.getShowReservationAsQueues(queueName)) {
|
!allocConf.getShowReservationAsQueues(queueName)) {
|
||||||
|
@ -122,6 +124,8 @@ public class FairSchedulerQueueInfo {
|
||||||
return allocatedContainers;
|
return allocatedContainers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long getPendingContainers() { return pendingContainers; }
|
||||||
|
|
||||||
public long getReservedContainers() {
|
public long getReservedContainers() {
|
||||||
return reservedContainers;
|
return reservedContainers;
|
||||||
}
|
}
|
||||||
|
|
|
@ -338,6 +338,9 @@ The capacity scheduler supports hierarchical queues. This one request will print
|
||||||
| numActiveApplications | int | The number of active applications in this queue |
|
| numActiveApplications | int | The number of active applications in this queue |
|
||||||
| numPendingApplications | int | The number of pending applications in this queue |
|
| numPendingApplications | int | The number of pending applications in this queue |
|
||||||
| numContainers | int | The number of containers being used |
|
| numContainers | int | The number of containers being used |
|
||||||
|
| allocatedContainers | int | The number of allocated containers in this queue |
|
||||||
|
| reservedContainers | int | The number of reserved containers in this queue |
|
||||||
|
| pendingContainers | int | The number of pending containers in this queue |
|
||||||
| maxApplications | int | The maximum number of applications this queue can have |
|
| maxApplications | int | The maximum number of applications this queue can have |
|
||||||
| maxApplicationsPerUser | int | The maximum number of applications per user this queue can have |
|
| maxApplicationsPerUser | int | The maximum number of applications per user this queue can have |
|
||||||
| maxActiveApplications | int | The maximum number of active applications this queue can have |
|
| maxActiveApplications | int | The maximum number of active applications this queue can have |
|
||||||
|
|
Loading…
Reference in New Issue