Interface AutoScalingConfiguration.Builder

  • Method Details

    • minNodeCount

      AutoScalingConfiguration.Builder minNodeCount(Integer minNodeCount)

      The lowest number of nodes to scale. This value must be at least 1 and less than the maxNodeCount. If the nodes in a cluster belong to multiple availability zones, then minNodeCount must be at least 3.

      Parameters:
      minNodeCount - The lowest number of nodes to scale. This value must be at least 1 and less than the maxNodeCount. If the nodes in a cluster belong to multiple availability zones, then minNodeCount must be at least 3.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxNodeCount

      AutoScalingConfiguration.Builder maxNodeCount(Integer maxNodeCount)

      The highest number of nodes to scale. This value cannot be greater than 5.

      Parameters:
      maxNodeCount - The highest number of nodes to scale. This value cannot be greater than 5.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • autoScalingMetric

      AutoScalingConfiguration.Builder autoScalingMetric(String autoScalingMetric)

      The metric your cluster will track in order to scale in and out. For example, CPU_UTILIZATION_PERCENTAGE is the average CPU usage across all the nodes in a cluster.

      Parameters:
      autoScalingMetric - The metric your cluster will track in order to scale in and out. For example, CPU_UTILIZATION_PERCENTAGE is the average CPU usage across all the nodes in a cluster.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • autoScalingMetric

      AutoScalingConfiguration.Builder autoScalingMetric(AutoScalingMetric autoScalingMetric)

      The metric your cluster will track in order to scale in and out. For example, CPU_UTILIZATION_PERCENTAGE is the average CPU usage across all the nodes in a cluster.

      Parameters:
      autoScalingMetric - The metric your cluster will track in order to scale in and out. For example, CPU_UTILIZATION_PERCENTAGE is the average CPU usage across all the nodes in a cluster.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • metricTarget

      AutoScalingConfiguration.Builder metricTarget(Double metricTarget)

      The desired value of the chosen autoScalingMetric. When the metric drops below this value, the cluster will scale in. When the metric goes above this value, the cluster will scale out. You can set the target value between 1 and 100 percent.

      Parameters:
      metricTarget - The desired value of the chosen autoScalingMetric. When the metric drops below this value, the cluster will scale in. When the metric goes above this value, the cluster will scale out. You can set the target value between 1 and 100 percent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scaleInCooldownSeconds

      AutoScalingConfiguration.Builder scaleInCooldownSeconds(Double scaleInCooldownSeconds)

      The duration in seconds that FinSpace will wait after a scale in event before initiating another scaling event.

      Parameters:
      scaleInCooldownSeconds - The duration in seconds that FinSpace will wait after a scale in event before initiating another scaling event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scaleOutCooldownSeconds

      AutoScalingConfiguration.Builder scaleOutCooldownSeconds(Double scaleOutCooldownSeconds)

      The duration in seconds that FinSpace will wait after a scale out event before initiating another scaling event.

      Parameters:
      scaleOutCooldownSeconds - The duration in seconds that FinSpace will wait after a scale out event before initiating another scaling event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.