PerformanceBasedAutotunePolicy

class oci.core.models.PerformanceBasedAutotunePolicy(**kwargs)

Bases: AutotunePolicy

If a volume is being throttled at the current setting for a certain period of time, auto-tune will gradually increase the volume’s performance limited up to Maximum VPUs/GB. After the volume has been idle at the current setting for a certain period of time, auto-tune will gradually decrease the volume’s performance limited down to Default/Minimum VPUs/GB.

Attributes:

AUTOTUNE_TYPE_DETACHED_VOLUME

A constant which can be used with the autotune_type property of a AutotunePolicy.

AUTOTUNE_TYPE_PERFORMANCE_BASED

A constant which can be used with the autotune_type property of a AutotunePolicy.

autotune_type

[Required] Gets the autotune_type of this AutotunePolicy.

max_vpus_per_gb

[Required] Gets the max_vpus_per_gb of this PerformanceBasedAutotunePolicy.

Methods:

__init__(**kwargs)

Initializes a new PerformanceBasedAutotunePolicy object with values from keyword arguments.

get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

AUTOTUNE_TYPE_DETACHED_VOLUME = 'DETACHED_VOLUME'

A constant which can be used with the autotune_type property of a AutotunePolicy. This constant has a value of “DETACHED_VOLUME”

AUTOTUNE_TYPE_PERFORMANCE_BASED = 'PERFORMANCE_BASED'

A constant which can be used with the autotune_type property of a AutotunePolicy. This constant has a value of “PERFORMANCE_BASED”

__init__(**kwargs)

Initializes a new PerformanceBasedAutotunePolicy object with values from keyword arguments. The default value of the autotune_type attribute of this class is PERFORMANCE_BASED and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • autotune_type (str) – The value to assign to the autotune_type property of this PerformanceBasedAutotunePolicy. Allowed values for this property are: “DETACHED_VOLUME”, “PERFORMANCE_BASED”

  • max_vpus_per_gb (int) – The value to assign to the max_vpus_per_gb property of this PerformanceBasedAutotunePolicy.

property autotune_type

[Required] Gets the autotune_type of this AutotunePolicy. This specifies the type of autotunes supported by OCI.

Allowed values for this property are: “DETACHED_VOLUME”, “PERFORMANCE_BASED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The autotune_type of this AutotunePolicy.

Return type

str

static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

property max_vpus_per_gb

[Required] Gets the max_vpus_per_gb of this PerformanceBasedAutotunePolicy. This will be the maximum VPUs/GB performance level that the volume will be auto-tuned temporarily based on performance monitoring.

Returns

The max_vpus_per_gb of this PerformanceBasedAutotunePolicy.

Return type

int