ManagedComputeClusterWorkloadScalePolicy¶
-
class
oci.data_science.models.ManagedComputeClusterWorkloadScalePolicy(**kwargs)¶ Bases:
objectWorkload scaling policy configuration for workloads on managed compute cluster type compute target
Methods
__init__(**kwargs)Initializes a new ManagedComputeClusterWorkloadScalePolicy object with values from keyword arguments. Attributes
cool_down_in_secondsGets the cool_down_in_seconds of this ManagedComputeClusterWorkloadScalePolicy. instance_count_adjustmentGets the instance_count_adjustment of this ManagedComputeClusterWorkloadScalePolicy. pending_durationGets the pending_duration of this ManagedComputeClusterWorkloadScalePolicy. -
__init__(**kwargs)¶ Initializes a new ManagedComputeClusterWorkloadScalePolicy object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - pending_duration (str) – The value to assign to the pending_duration property of this ManagedComputeClusterWorkloadScalePolicy.
- instance_count_adjustment (int) – The value to assign to the instance_count_adjustment property of this ManagedComputeClusterWorkloadScalePolicy.
- cool_down_in_seconds (int) – The value to assign to the cool_down_in_seconds property of this ManagedComputeClusterWorkloadScalePolicy.
-
cool_down_in_seconds¶ Gets the cool_down_in_seconds of this ManagedComputeClusterWorkloadScalePolicy. This value is the duration of time window used to restrict the flapping of instance count when the metrics used for scaling keep fluctuating. This window is used to infer a previous desired state and avoid unwanted changes to workload scale. Default value is 300 seconds.
Returns: The cool_down_in_seconds of this ManagedComputeClusterWorkloadScalePolicy. Return type: int
-
instance_count_adjustment¶ Gets the instance_count_adjustment of this ManagedComputeClusterWorkloadScalePolicy. The value is used for adjusting the count of instances by.
Returns: The instance_count_adjustment of this ManagedComputeClusterWorkloadScalePolicy. Return type: int
-
pending_duration¶ Gets the pending_duration of this ManagedComputeClusterWorkloadScalePolicy. The period of time that the condition defined in the alarm must persist before the alarm state changes from “OK” to “FIRING” or vice versa. For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to “FIRING”; likewise, the alarm must persist in not breaching the condition for five minutes before the alarm updates its state to “OK.” The duration is specified as a string in ISO 8601 format (PT10M for ten minutes). Minimum: PT1M. Maximum: PT30M. Default: PT3M.
Returns: The pending_duration of this ManagedComputeClusterWorkloadScalePolicy. Return type: str
-