MetricBasedVerticalScaleDownConfig

class oci.bds.models.MetricBasedVerticalScaleDownConfig(**kwargs)

Bases: object

Configration for a metric based vertical scale-down policy.

Methods

__init__(**kwargs) Initializes a new MetricBasedVerticalScaleDownConfig object with values from keyword arguments.

Attributes

memory_step_size Gets the memory_step_size of this MetricBasedVerticalScaleDownConfig.
metric Gets the metric of this MetricBasedVerticalScaleDownConfig.
min_memory_per_node Gets the min_memory_per_node of this MetricBasedVerticalScaleDownConfig.
min_ocpus_per_node Gets the min_ocpus_per_node of this MetricBasedVerticalScaleDownConfig.
ocpu_step_size Gets the ocpu_step_size of this MetricBasedVerticalScaleDownConfig.
__init__(**kwargs)

Initializes a new MetricBasedVerticalScaleDownConfig object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • metric (oci.bds.models.AutoScalePolicyMetricRule) – The value to assign to the metric property of this MetricBasedVerticalScaleDownConfig.
  • min_ocpus_per_node (int) – The value to assign to the min_ocpus_per_node property of this MetricBasedVerticalScaleDownConfig.
  • min_memory_per_node (int) – The value to assign to the min_memory_per_node property of this MetricBasedVerticalScaleDownConfig.
  • ocpu_step_size (int) – The value to assign to the ocpu_step_size property of this MetricBasedVerticalScaleDownConfig.
  • memory_step_size (int) – The value to assign to the memory_step_size property of this MetricBasedVerticalScaleDownConfig.
memory_step_size

Gets the memory_step_size of this MetricBasedVerticalScaleDownConfig. For nodes with flexible compute shapes, this value is the size of memory in GBs to remove from each node during a scale-down event. This value is not used for nodes with fixed compute shapes.

Returns:The memory_step_size of this MetricBasedVerticalScaleDownConfig.
Return type:int
metric

Gets the metric of this MetricBasedVerticalScaleDownConfig.

Returns:The metric of this MetricBasedVerticalScaleDownConfig.
Return type:oci.bds.models.AutoScalePolicyMetricRule
min_memory_per_node

Gets the min_memory_per_node of this MetricBasedVerticalScaleDownConfig. For nodes with flexible compute shapes, this value is the minimum memory in GBs each node can be scaled-down to. This value is not used for nodes with fixed compute shapes.

Returns:The min_memory_per_node of this MetricBasedVerticalScaleDownConfig.
Return type:int
min_ocpus_per_node

Gets the min_ocpus_per_node of this MetricBasedVerticalScaleDownConfig. For nodes with flexible compute shapes, this value is the minimum number of OCPUs each node can be scaled-down to. This value is not used for nodes with fixed compute shapes.

Returns:The min_ocpus_per_node of this MetricBasedVerticalScaleDownConfig.
Return type:int
ocpu_step_size

Gets the ocpu_step_size of this MetricBasedVerticalScaleDownConfig. For nodes with flexible compute shapes, this value is the number of OCPUs to remove from each node during a scale-down event. This value is not used for nodes with fixed compute shapes.

Returns:The ocpu_step_size of this MetricBasedVerticalScaleDownConfig.
Return type:int