public class NumaResourceAllocator
extends java.lang.Object
| Constructor | Description |
|---|---|
NumaResourceAllocator(Context context) |
| Modifier and Type | Method | Description |
|---|---|---|
NumaResourceAllocation |
allocateNumaNodes(Container container) |
Allocates the available NUMA nodes for the requested containerId with
resource in a round robin fashion.
|
java.lang.String |
executeNGetCmdOutput(org.apache.hadoop.conf.Configuration conf) |
|
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@VisibleForTesting
public java.lang.String executeNGetCmdOutput(org.apache.hadoop.conf.Configuration conf)
throws org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.YarnExceptionpublic 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)
throws ResourceHandlerException
containerId - the container IDResourceHandlerException - when failed to release numa resourcepublic void recoverNumaResource(org.apache.hadoop.yarn.api.records.ContainerId containerId)
containerId - the container ID to recover resourcesCopyright © 2008–2025 Apache Software Foundation. All rights reserved.