public class GpuNodeResourceUpdateHandler extends NodeResourceUpdaterPlugin
Constructor and Description |
---|
GpuNodeResourceUpdateHandler(GpuDiscoverer gpuDiscoverer,
org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
float |
getAvgNodeGpuUtilization() |
float |
getTotalNodeGpuUtilization() |
void |
updateConfiguredResource(org.apache.hadoop.yarn.api.records.Resource res)
Update configured resource for the given component.
|
public GpuNodeResourceUpdateHandler(GpuDiscoverer gpuDiscoverer, org.apache.hadoop.conf.Configuration conf)
public void updateConfiguredResource(org.apache.hadoop.yarn.api.records.Resource res) throws org.apache.hadoop.yarn.exceptions.YarnException
NodeResourceUpdaterPlugin
updateConfiguredResource
in class NodeResourceUpdaterPlugin
res
- resource passed in by external module (such as
NodeStatusUpdater
org.apache.hadoop.yarn.exceptions.YarnException
- when any issue happens.public float getAvgNodeGpuUtilization() throws Exception
Exception
- when any error happensCopyright © 2008–2023 Apache Software Foundation. All rights reserved.