ManagedComputeClusterAutoScalingPolicy¶
-
class
oci.data_science.models.ManagedComputeClusterAutoScalingPolicy(**kwargs)¶ Bases:
oci.data_science.models.managed_compute_cluster_scaling_policy.ManagedComputeClusterScalingPolicyThe scaling policy to enable autoscaling on the managed compute cluster type compute target .
Attributes
POLICY_TYPE_AUTOSCALINGstr(object=’’) -> str POLICY_TYPE_FIXED_SIZEstr(object=’’) -> str auto_scaling_policies[Required] Gets the auto_scaling_policies of this ManagedComputeClusterAutoScalingPolicy. cool_down_in_secondsGets the cool_down_in_seconds of this ManagedComputeClusterAutoScalingPolicy. is_enabledGets the is_enabled of this ManagedComputeClusterAutoScalingPolicy. policy_type[Required] Gets the policy_type of this ManagedComputeClusterScalingPolicy. Methods
__init__(**kwargs)Initializes a new ManagedComputeClusterAutoScalingPolicy 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. -
POLICY_TYPE_AUTOSCALING= 'AUTOSCALING'¶
-
POLICY_TYPE_FIXED_SIZE= 'FIXED_SIZE'¶
-
__init__(**kwargs)¶ Initializes a new ManagedComputeClusterAutoScalingPolicy object with values from keyword arguments. The default value of the
policy_typeattribute of this class isAUTOSCALINGand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - policy_type (str) – The value to assign to the policy_type property of this ManagedComputeClusterAutoScalingPolicy. Allowed values for this property are: “FIXED_SIZE”, “AUTOSCALING”
- cool_down_in_seconds (int) – The value to assign to the cool_down_in_seconds property of this ManagedComputeClusterAutoScalingPolicy.
- is_enabled (bool) – The value to assign to the is_enabled property of this ManagedComputeClusterAutoScalingPolicy.
- auto_scaling_policies (list[oci.data_science.models.ManagedComputeClusterAutoScalingPolicyDetails]) – The value to assign to the auto_scaling_policies property of this ManagedComputeClusterAutoScalingPolicy.
-
auto_scaling_policies¶ [Required] Gets the auto_scaling_policies of this ManagedComputeClusterAutoScalingPolicy. The list of autoscaling policy details.
Returns: The auto_scaling_policies of this ManagedComputeClusterAutoScalingPolicy. Return type: list[oci.data_science.models.ManagedComputeClusterAutoScalingPolicyDetails]
-
cool_down_in_seconds¶ Gets the cool_down_in_seconds of this ManagedComputeClusterAutoScalingPolicy. For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the managed compute cluster type compute target becomes ACTIVE after the scaling operation.
Returns: The cool_down_in_seconds of this ManagedComputeClusterAutoScalingPolicy. Return type: int
-
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.
-
is_enabled¶ Gets the is_enabled of this ManagedComputeClusterAutoScalingPolicy. Whether the autoscaling policy is enabled.
Returns: The is_enabled of this ManagedComputeClusterAutoScalingPolicy. Return type: bool
-
policy_type¶ [Required] Gets the policy_type of this ManagedComputeClusterScalingPolicy. The type of scaling policy.
Allowed values for this property are: “FIXED_SIZE”, “AUTOSCALING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The policy_type of this ManagedComputeClusterScalingPolicy. Return type: str
-