Capacity

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

Bases: object

Capacity limits for the instance pool.

__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

[Required] Gets the initial of this Capacity. 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.

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

[Required] Gets the max of this Capacity. The maximum number of instances the instance pool is allowed to increase to (scale out).

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

[Required] Gets the min of this Capacity. The minimum number of instances the instance pool is allowed to decrease to (scale in).

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