Class GridBasedEnumerator
java.lang.Object
org.apache.sysds.resource.enumeration.Enumerator
org.apache.sysds.resource.enumeration.GridBasedEnumerator
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sysds.resource.enumeration.Enumerator
Enumerator.Builder, Enumerator.EnumerationStrategy, Enumerator.OptimizationStrategy -
Field Summary
Fields inherited from class org.apache.sysds.resource.enumeration.Enumerator
COST_DELTA_FRACTION, DEFAULT_MAX_EXECUTORS, DEFAULT_MIN_EXECUTORS -
Constructor Summary
ConstructorsConstructorDescriptionGridBasedEnumerator(Enumerator.Builder builder, int stepSizeExecutors, int expBaseExecutors) -
Method Summary
Modifier and TypeMethodDescriptionestimateRangeExecutors(int driverCores, long executorMemory, int executorCores) Estimates the minimum and maximum number of executors based on given VM instance characteristics, the enumeration strategy and the user-defined configurationsbooleanevaluateSingleNodeExecution(long driverMemory, int cores) intMeant to be used for testing purposesintMeant to be used for testing purposesvoidInitializes the pool for driver and executor instances parsed at processing with all the available instancesMethods inherited from class org.apache.sysds.resource.enumeration.Enumerator
getCostsWeightFactor, getDriverSpace, getEnumStrategy, getExecutorSpace, getInstances, getMaxPrice, getMaxTime, getOptimalSolution, getOptStrategy, postprocessing, processing, setCostsWeightFactor, setCpuQuota, setDriverSpace, setExecutorSpace, setMinPrice, setMinTime, updateOptimalSolution
-
Constructor Details
-
GridBasedEnumerator
-
-
Method Details
-
preprocessing
public void preprocessing()Initializes the pool for driver and executor instances parsed at processing with all the available instances- Specified by:
preprocessingin classEnumerator
-
evaluateSingleNodeExecution
public boolean evaluateSingleNodeExecution(long driverMemory, int cores) - Specified by:
evaluateSingleNodeExecutionin classEnumerator
-
estimateRangeExecutors
public ArrayList<Integer> estimateRangeExecutors(int driverCores, long executorMemory, int executorCores) Description copied from class:EnumeratorEstimates the minimum and maximum number of executors based on given VM instance characteristics, the enumeration strategy and the user-defined configurations- Specified by:
estimateRangeExecutorsin classEnumerator- Parameters:
driverCores- CPU cores for the currently evaluated driver nodeexecutorMemory- memory of currently evaluated executor nodeexecutorCores- CPU cores of currently evaluated executor node- Returns:
- - [min, max]
-
getStepSize
public int getStepSize()Meant to be used for testing purposes- Returns:
- the set step size for the grid search
-
getExpBase
public int getExpBase()Meant to be used for testing purposes- Returns:
- the set exponential base for the grid search
-