Interface ResourceCheck

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean trySchedule​(int currentInstances, int newInstances, double cpuPerInstance, org.apache.flink.configuration.MemorySize memoryPerInstance)
      Simulates scheduling the provided number of TaskManager instances.
    • Method Detail

      • trySchedule

        boolean trySchedule​(int currentInstances,
                            int newInstances,
                            double cpuPerInstance,
                            org.apache.flink.configuration.MemorySize memoryPerInstance)
        Simulates scheduling the provided number of TaskManager instances.
        Parameters:
        currentInstances - The current number of instances.
        newInstances - The new number of instances.
        cpuPerInstance - The number of CPU per instances.
        memoryPerInstance - The total memory size per instances.
        Returns:
        true if a scheduling configuration was found, false otherwise.