Class InterestBasedEnumerator


  • public class InterestBasedEnumerator
    extends Enumerator
    • Constructor Detail

      • InterestBasedEnumerator

        public InterestBasedEnumerator​(Enumerator.Builder builder,
                                       boolean fitDriverMemory,
                                       boolean fitBroadcastMemory,
                                       boolean checkSingleNodeExecution,
                                       boolean fitCheckpointMemory)
    • Method Detail

      • preprocessing

        public void preprocessing()
        Description copied from class: Enumerator
        Called once to enumerate the search space for VM instances for driver or executor nodes. These instances are being represented as
        Specified by:
        preprocessing in class Enumerator
      • estimateRangeExecutors

        public ArrayList<Integer> estimateRangeExecutors​(long executorMemory,
                                                         int executorCores)
        Description copied from class: Enumerator
        Estimates the minimum and maximum number of executors based on given VM instance characteristics and on the enumeration strategy
        Specified by:
        estimateRangeExecutors in class Enumerator
        Parameters:
        executorMemory - memory of currently considered executor instance
        executorCores - CPU of cores of currently considered executor instance
        Returns:
        - [min, max]
      • getMemoryEstimates

        public static TreeSet<Long> getMemoryEstimates​(Program currentProgram,
                                                       boolean outputOnly,
                                                       double memoryFactor)
        Extracts the memory estimates which original size is larger than MINIMUM_RELEVANT_MEM_ESTIMATE
        Parameters:
        currentProgram - program for extracting the memory estimates from
        outputOnly - true - output estimate only; false - sum of input, intermediate and output estimates
        memoryFactor - factor for reverse scaling the estimates to avoid scaling the search space parameters representing the nodes' memory budget
        Returns:
        memory estimates in ascending order ensured by the TreeSet data structure