YARN-9370. Added logging for recovering assigned GPU devices.
Contributed by Yesha Vora
This commit is contained in:
parent
f2b862cac6
commit
506502bb83
@ -119,6 +119,7 @@ public synchronized void recoverAssignedGpus(ContainerId containerId)
|
|||||||
+ containerId);
|
+ containerId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LOG.info("Starting recovery of GpuDevice for {}.", containerId);
|
||||||
for (Serializable gpuDeviceSerializable : c.getResourceMappings()
|
for (Serializable gpuDeviceSerializable : c.getResourceMappings()
|
||||||
.getAssignedResources(GPU_URI)) {
|
.getAssignedResources(GPU_URI)) {
|
||||||
if (!(gpuDeviceSerializable instanceof GpuDevice)) {
|
if (!(gpuDeviceSerializable instanceof GpuDevice)) {
|
||||||
@ -146,7 +147,10 @@ public synchronized void recoverAssignedGpus(ContainerId containerId)
|
|||||||
}
|
}
|
||||||
|
|
||||||
usedDevices.put(gpuDevice, containerId);
|
usedDevices.put(gpuDevice, containerId);
|
||||||
|
LOG.info("ContainerId {} is assigned to GpuDevice {} on recovery.",
|
||||||
|
containerId, gpuDevice);
|
||||||
}
|
}
|
||||||
|
LOG.info("Finished recovery of GpuDevice for {}.", containerId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user