Capacity

class oci.autoscaling.models.Capacity(**kwargs)

Bases: object

Capacity limits for the instance pool.

Methods

__init__(**kwargs) Initializes a new Capacity object with values from keyword arguments.

Attributes

initial Gets the initial of this Capacity.
max Gets the max of this Capacity.
min Gets the min of this Capacity.
__init__(**kwargs)

Initializes a new Capacity object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • max (int) – The value to assign to the max property of this Capacity.
  • min (int) – The value to assign to the min property of this Capacity.
  • initial (int) – The value to assign to the initial property of this Capacity.
initial

Gets the initial of this Capacity. For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the instance pool immediately after autoscaling is enabled. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this initial number to a number that is based on the limits that you set.

For a schedule-based autoscaling policy, this value is the target pool size to scale to when executing the schedule that’s defined in the autoscaling policy.

Returns:The initial of this Capacity.
Return type:int
max

Gets the max of this Capacity. For a threshold-based autoscaling policy, this value is the maximum number of instances the instance pool is allowed to increase to (scale out).

For a schedule-based autoscaling policy, this value is not used.

Returns:The max of this Capacity.
Return type:int
min

Gets the min of this Capacity. For a threshold-based autoscaling policy, this value is the minimum number of instances the instance pool is allowed to decrease to (scale in).

For a schedule-based autoscaling policy, this value is not used.

Returns:The min of this Capacity.
Return type:int