You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/container/ContainerImpl.java
Copy file name to clipboardExpand all lines: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/metrics/NodeManagerMetrics.java
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ public class NodeManagerMetrics {
44
44
@Metric("# of initializing containers")
45
45
MutableGaugeIntcontainersIniting;
46
46
@MetricMutableGaugeIntcontainersRunning;
47
+
@Metric("# of paused containers") MutableGaugeIntcontainersPaused;
47
48
@Metric("Current allocated memory in GB")
48
49
MutableGaugeIntallocatedGB;
49
50
@Metric("Current # of allocated containers")
@@ -168,6 +169,14 @@ public void endReInitingContainer() {
168
169
containersReIniting.decr();
169
170
}
170
171
172
+
publicvoidpausedContainer() {
173
+
containersPaused.incr();
174
+
}
175
+
176
+
publicvoidendPausedContainer() {
177
+
containersPaused.decr();
178
+
}
179
+
171
180
publicvoidallocateContainer(Resourceres) {
172
181
allocatedContainers.incr();
173
182
allocatedMB = allocatedMB + res.getMemorySize();
@@ -268,6 +277,10 @@ public int getRunningContainers() {
Copy file name to clipboardExpand all lines: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/container/TestContainer.java
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -246,13 +246,16 @@ public void testContainerPauseAndResume() throws Exception {
0 commit comments