YARN-8443. Total #VCores in cluster metrics is wrong when CapacityScheduler reserved some containers. Contributed by Tao Yang.
This commit is contained in:
parent
e977876428
commit
3151e95d27
@ -94,7 +94,7 @@ public ClusterMetricsInfo(final ResourceScheduler rs) {
|
||||
if (rs instanceof CapacityScheduler) {
|
||||
this.totalMB = availableMB + allocatedMB + reservedMB;
|
||||
this.totalVirtualCores =
|
||||
availableVirtualCores + allocatedVirtualCores + containersReserved;
|
||||
availableVirtualCores + allocatedVirtualCores + reservedVirtualCores;
|
||||
} else {
|
||||
this.totalMB = availableMB + allocatedMB;
|
||||
this.totalVirtualCores = availableVirtualCores + allocatedVirtualCores;
|
||||
|
Loading…
x
Reference in New Issue
Block a user