ManagedComputeClusterWorkloadThresholdBasedPolicyDetails

class oci.data_science.models.ManagedComputeClusterWorkloadThresholdBasedPolicyDetails(**kwargs)

Bases: oci.data_science.models.managed_compute_cluster_workload_auto_scaling_policy_details.ManagedComputeClusterWorkloadAutoScalingPolicyDetails

Details for a threshold-based autoscaling policy to enable autoscaling of workload on the managed compute cluster type compute target . In a threshold-based autoscaling policy, an autoscaling action is triggered when a performance metric meets or exceeds a threshold.

Attributes

AUTO_SCALING_POLICY_TYPE_THRESHOLD str(object=’’) -> str
auto_scaling_policy_type [Required] Gets the auto_scaling_policy_type of this ManagedComputeClusterWorkloadAutoScalingPolicyDetails.
initial_instance_count [Required] Gets the initial_instance_count of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.
maximum_instance_count [Required] Gets the maximum_instance_count of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.
minimum_instance_count [Required] Gets the minimum_instance_count of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.
rules [Required] Gets the rules of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.
scale_in_policy Gets the scale_in_policy of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.
scale_out_policy Gets the scale_out_policy of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.

Methods

__init__(**kwargs) Initializes a new ManagedComputeClusterWorkloadThresholdBasedPolicyDetails 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.
AUTO_SCALING_POLICY_TYPE_THRESHOLD = 'THRESHOLD'
__init__(**kwargs)

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

Parameters:
  • auto_scaling_policy_type (str) – The value to assign to the auto_scaling_policy_type property of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails. Allowed values for this property are: “THRESHOLD”
  • rules (list[oci.data_science.models.ManagedComputeClusterWorkloadMetricExpressionRule]) – The value to assign to the rules property of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.
  • maximum_instance_count (int) – The value to assign to the maximum_instance_count property of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.
  • minimum_instance_count (int) – The value to assign to the minimum_instance_count property of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.
  • initial_instance_count (int) – The value to assign to the initial_instance_count property of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.
  • scale_in_policy (oci.data_science.models.ManagedComputeClusterWorkloadScalePolicy) – The value to assign to the scale_in_policy property of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.
  • scale_out_policy (oci.data_science.models.ManagedComputeClusterWorkloadScalePolicy) – The value to assign to the scale_out_policy property of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.
auto_scaling_policy_type

[Required] Gets the auto_scaling_policy_type of this ManagedComputeClusterWorkloadAutoScalingPolicyDetails. The type of autoscaling policy.

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

Returns:The auto_scaling_policy_type of this ManagedComputeClusterWorkloadAutoScalingPolicyDetails.
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.

initial_instance_count

[Required] Gets the initial_instance_count of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails. For a threshold-based autoscaling policy, this value is the initial number of workload instances to launch immediately after autoscaling is enabled. Note that anytime this value is updated, the number of instances will be reset to this value. 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_instance_count of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.
Return type:int
maximum_instance_count

[Required] Gets the maximum_instance_count of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails. For a threshold-based autoscaling policy, this value is the maximum number of workload instances allowed to increase to (scale out).

Returns:The maximum_instance_count of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.
Return type:int
minimum_instance_count

[Required] Gets the minimum_instance_count of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails. For a threshold-based autoscaling policy, this value is the minimum number of workload instances allowed to decrease to (scale in). This should be zero for scale-to-zero.

Returns:The minimum_instance_count of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.
Return type:int
rules

[Required] Gets the rules of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails. The list of autoscaling policy rules for workload scaling..

Returns:The rules of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.
Return type:list[oci.data_science.models.ManagedComputeClusterWorkloadMetricExpressionRule]
scale_in_policy

Gets the scale_in_policy of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.

Returns:The scale_in_policy of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.
Return type:oci.data_science.models.ManagedComputeClusterWorkloadScalePolicy
scale_out_policy

Gets the scale_out_policy of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.

Returns:The scale_out_policy of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.
Return type:oci.data_science.models.ManagedComputeClusterWorkloadScalePolicy