ManagedComputeClusterWorkloadThresholdBasedPolicyDetails¶
- class oci.data_science.models.ManagedComputeClusterWorkloadThresholdBasedPolicyDetails(**kwargs)¶
Bases:
ManagedComputeClusterWorkloadAutoScalingPolicyDetailsDetails 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:
A constant which can be used with the auto_scaling_policy_type property of a ManagedComputeClusterWorkloadAutoScalingPolicyDetails.
[Required] Gets the auto_scaling_policy_type of this ManagedComputeClusterWorkloadAutoScalingPolicyDetails.
[Required] Gets the initial_instance_count of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.
[Required] Gets the maximum_instance_count of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.
[Required] Gets the minimum_instance_count of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.
[Required] Gets the rules of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.
Gets the scale_in_policy of this ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.
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'¶
A constant which can be used with the auto_scaling_policy_type property of a ManagedComputeClusterWorkloadAutoScalingPolicyDetails. This constant has a value of “THRESHOLD”
- __init__(**kwargs)¶
Initializes a new ManagedComputeClusterWorkloadThresholdBasedPolicyDetails object with values from keyword arguments. The default value of the
auto_scaling_policy_typeattribute of this class isTHRESHOLDand 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.
- property 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.
- property 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
- property 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
- property 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
- property 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]
- property 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
- property 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