Class ComputeScalingPolicy

    • Method Detail

      • minScaleDownDelayMinutes

        public final Integer minScaleDownDelayMinutes()

        The minimum time (in minutes) that Batch keeps instances running in the compute environment after their jobs complete. For each instance, the delay period begins when the last job finishes. If no new jobs are placed on the instance during this delay, Batch terminates the instance once the delay expires.

        Valid Range: Minimum value of 20. Maximum value of 10080. Use 0 to unset and disable the scale down delay.

        The scale down delay does not apply to:

        • Instances being replaced during infrastructure updates

        • Newly launched instances that have not yet run any jobs

        • Spot instances reclaimed due to interruption

        Returns:
        The minimum time (in minutes) that Batch keeps instances running in the compute environment after their jobs complete. For each instance, the delay period begins when the last job finishes. If no new jobs are placed on the instance during this delay, Batch terminates the instance once the delay expires.

        Valid Range: Minimum value of 20. Maximum value of 10080. Use 0 to unset and disable the scale down delay.

        The scale down delay does not apply to:

        • Instances being replaced during infrastructure updates

        • Newly launched instances that have not yet run any jobs

        • Spot instances reclaimed due to interruption

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)