Class ManagedComputeClusterWorkloadScalePolicy.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • pendingDuration

        public ManagedComputeClusterWorkloadScalePolicy.Builder pendingDuration​(String pendingDuration)
        The period of time that the condition defined in the alarm must persist before the alarm state changes from “OK” to “FIRING” or vice versa.

        For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to “FIRING”; likewise, the alarm must persist in not breaching the condition for five minutes before the alarm updates its state to “OK.” The duration is specified as a string in ISO 8601 format (PT10M for ten minutes). Minimum: PT1M. Maximum: PT30M. Default: PT3M.

        Parameters:
        pendingDuration - the value to set
        Returns:
        this builder
      • instanceCountAdjustment

        public ManagedComputeClusterWorkloadScalePolicy.Builder instanceCountAdjustment​(Integer instanceCountAdjustment)
        The value is used for adjusting the count of instances by.
        Parameters:
        instanceCountAdjustment - the value to set
        Returns:
        this builder
      • coolDownInSeconds

        public ManagedComputeClusterWorkloadScalePolicy.Builder coolDownInSeconds​(Integer coolDownInSeconds)
        This value is the duration of time window used to restrict the flapping of instance count when the metrics used for scaling keep fluctuating.

        This window is used to infer a previous desired state and avoid unwanted changes to workload scale. Default value is 300 seconds.

        Parameters:
        coolDownInSeconds - the value to set
        Returns:
        this builder