MAPREDUCE-3341. Enhance logging of initalized queue limit values. (Anupam Seth via mahadev)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1201947 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mahadev Konar 2011-11-14 22:38:56 +00:00
parent 503593af1e
commit 58bfa24ae4
2 changed files with 42 additions and 10 deletions

View File

@ -79,6 +79,9 @@ Release 0.23.1 - Unreleased
MAPREDUCE-3325. Improvements to CapacityScheduler doc. (Thomas Graves MAPREDUCE-3325. Improvements to CapacityScheduler doc. (Thomas Graves
via mahadev) via mahadev)
MAPREDUCE-3341. Enhance logging of initalized queue limit values.
(Anupam Seth via mahadev)
OPTIMIZATIONS OPTIMIZATIONS
BUG FIXES BUG FIXES

View File

@ -245,16 +245,45 @@ public class LeafQueue implements CSQueue {
aclsString.append(e.getKey() + ":" + e.getValue().getAclString()); aclsString.append(e.getKey() + ":" + e.getValue().getAclString());
} }
LOG.info("Initializing " + queueName + LOG.info("Initializing " + queueName + "\n" +
", capacity=" + capacity + "capacity = " + capacity +
", asboluteCapacity=" + absoluteCapacity + " [= (float) configuredCapacity / 100 ]" + "\n" +
", maxCapacity=" + maxCapacity + "asboluteCapacity = " + absoluteCapacity +
", asboluteMaxCapacity=" + absoluteMaxCapacity + " [= parentAbsoluteCapacity * capacity ]" + "\n" +
", userLimit=" + userLimit + ", userLimitFactor=" + userLimitFactor + "maxCapacity = " + maxCapacity +
", maxApplications=" + maxApplications + " [= configuredMaxCapacity ]" + "\n" +
", maxApplicationsPerUser=" + maxApplicationsPerUser + "absoluteMaxCapacity = " + absoluteMaxCapacity +
", state=" + state + " [= Float.MAX_VALUE if maximumCapacity undefined, " +
", acls=" + aclsString); "(parentAbsoluteCapacity * maximumCapacity) / 100 otherwise ]" + "\n" +
"userLimit = " + userLimit +
" [= configuredUserLimit ]" + "\n" +
"userLimitFactor = " + userLimitFactor +
" [= configuredUserLimitFactor ]" + "\n" +
"maxApplications = " + maxApplications +
" [= (int)(configuredMaximumSystemApplications * absoluteCapacity) ]" + "\n" +
"maxApplicationsPerUser = " + maxApplicationsPerUser +
" [= (int)(maxApplications * (userLimit / 100.0f) * userLimitFactor) ]" + "\n" +
"maxActiveApplications = " + maxActiveApplications +
" [= max(" +
"(int)((clusterResourceMemory / (float)DEFAULT_AM_RESOURCE) *" +
"maxAMResourcePercent * absoluteCapacity)," +
"1) ]" + "\n" +
"maxActiveApplicationsPerUser = " + maxActiveApplicationsPerUser +
" [= (int)(maxActiveApplications * (userLimit / 100.0f) * userLimitFactor) ]" + "\n" +
"utilization = " + utilization +
" [= usedResourcesMemory / queueLimit ]" + "\n" +
"usedCapacity = " + usedCapacity +
" [= usedResourcesMemory / (clusterResourceMemory * capacity) ]" + "\n" +
"maxAMResourcePercent = " + maxAMResourcePercent +
" [= configuredMaximumAMResourcePercent ]" + "\n" +
"minimumAllocationFactor = " + minimumAllocationFactor +
" [= (float)(maximumAllocationMemory - minimumAllocationMemory) / maximumAllocationMemory ]" + "\n" +
"numContainers = " + numContainers +
" [= currentNumContainers ]" + "\n" +
"state = " + state +
" [= configuredState ]" + "\n" +
"acls = " + aclsString +
" [= configuredAcls ]" + "\n");
} }
@Override @Override