@Private
@Unstable
public class SLSUtils
extends java.lang.Object
| Constructor | Description |
|---|---|
SLSUtils() |
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.Set<SLSRunner.NodeDetails> |
generateNodes(int numNodes,
int numRacks) |
|
static void |
generateNodeTableMapping(java.util.Set<SLSRunner.NodeDetails> nodeDetails,
java.lang.String filePath) |
Generates a node to rack mapping file based on node details.
|
static java.util.Set<java.lang.String> |
generateSlsRunnerConfiguration(int nmMemory,
int nmVCores,
int amMemory,
int amVCores,
int slsRunnerPoolSize) |
generate configuration for NM, AM and pool size to be used in sls-runner.xml
|
static java.lang.String[] |
getRackHostName(java.lang.String hostname) |
|
static java.util.Set<SLSRunner.NodeDetails> |
parseNodesFromNodeFile(java.lang.String nodeFile,
org.apache.hadoop.yarn.api.records.Resource nmDefaultResource) |
parse the input node file, return each host name
sample input: label1(exclusive=true),label2(exclusive=false),label3
|
static java.util.Set<SLSRunner.NodeDetails> |
parseNodesFromRumenTrace(java.lang.String jobTrace) |
parse the rumen trace file, return each host name
|
static java.util.Set<SLSRunner.NodeDetails> |
parseNodesFromSLSTrace(java.lang.String jobTrace) |
parse the sls trace file, return each host name
|
public static java.lang.String[] getRackHostName(java.lang.String hostname)
public static java.util.Set<SLSRunner.NodeDetails> parseNodesFromRumenTrace(java.lang.String jobTrace) throws java.io.IOException
java.io.IOExceptionpublic static java.util.Set<SLSRunner.NodeDetails> parseNodesFromSLSTrace(java.lang.String jobTrace) throws java.io.IOException
java.io.IOExceptionpublic static java.util.Set<SLSRunner.NodeDetails> parseNodesFromNodeFile(java.lang.String nodeFile, org.apache.hadoop.yarn.api.records.Resource nmDefaultResource) throws java.io.IOException
java.io.IOExceptionpublic static java.util.Set<SLSRunner.NodeDetails> generateNodes(int numNodes, int numRacks)
public static void generateNodeTableMapping(java.util.Set<SLSRunner.NodeDetails> nodeDetails, java.lang.String filePath) throws java.io.IOException
nodeDetails - Set of node details.filePath - File path where to write table mapping.java.io.IOExceptionpublic static java.util.Set<java.lang.String> generateSlsRunnerConfiguration(int nmMemory,
int nmVCores,
int amMemory,
int amVCores,
int slsRunnerPoolSize)
nmMemory - amount of memory for NM.nmVCores - amount of vCores for NM.amMemory - amount of memory for AM.amVCores - amount of vCores for AM.slsRunnerPoolSize - thread pool size for simulation AM and NM.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.