public class NumaResourceAllocator extends Object
Constructor and Description |
---|
NumaResourceAllocator(Context context) |
Modifier and Type | Method and Description |
---|---|
NumaResourceAllocation |
allocateNumaNodes(Container container)
Allocates the available NUMA nodes for the requested containerId with
resource in a round robin fashion.
|
void |
init(org.apache.hadoop.conf.Configuration conf) |
void |
recoverNumaResource(org.apache.hadoop.yarn.api.records.ContainerId containerId)
Recovers assigned numa resources.
|
void |
releaseNumaResource(org.apache.hadoop.yarn.api.records.ContainerId containerId)
Release assigned NUMA resources for the container.
|
public NumaResourceAllocator(Context context)
public void init(org.apache.hadoop.conf.Configuration conf) throws org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.YarnException
public NumaResourceAllocation allocateNumaNodes(Container container) throws ResourceHandlerException
container
- the container to allocate NUMA resourcesResourceHandlerException
- when failed to store NUMA resourcespublic void releaseNumaResource(org.apache.hadoop.yarn.api.records.ContainerId containerId)
containerId
- the container IDpublic void recoverNumaResource(org.apache.hadoop.yarn.api.records.ContainerId containerId)
containerId
- the container ID to recover resourcesCopyright © 2008–2023 Apache Software Foundation. All rights reserved.