MetricBasedVerticalScaleUpConfig¶
- class oci.bds.models.MetricBasedVerticalScaleUpConfig(**kwargs)¶
Bases:
objectConfigration for a metric based vertical scale-up policy.
Methods:
__init__(**kwargs)Initializes a new MetricBasedVerticalScaleUpConfig object with values from keyword arguments.
Attributes:
Gets the max_memory_per_node of this MetricBasedVerticalScaleUpConfig.
Gets the max_ocpus_per_node of this MetricBasedVerticalScaleUpConfig.
Gets the memory_step_size of this MetricBasedVerticalScaleUpConfig.
Gets the metric of this MetricBasedVerticalScaleUpConfig.
Gets the ocpu_step_size of this MetricBasedVerticalScaleUpConfig.
- __init__(**kwargs)¶
Initializes a new MetricBasedVerticalScaleUpConfig 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 MetricBasedVerticalScaleUpConfig.
max_ocpus_per_node (int) – The value to assign to the max_ocpus_per_node property of this MetricBasedVerticalScaleUpConfig.
max_memory_per_node (int) – The value to assign to the max_memory_per_node property of this MetricBasedVerticalScaleUpConfig.
ocpu_step_size (int) – The value to assign to the ocpu_step_size property of this MetricBasedVerticalScaleUpConfig.
memory_step_size (int) – The value to assign to the memory_step_size property of this MetricBasedVerticalScaleUpConfig.
- property max_memory_per_node¶
Gets the max_memory_per_node of this MetricBasedVerticalScaleUpConfig. For nodes with flexible compute shapes, this value is the maximum memory in GBs each node can be scaled-up to. This value is not used for nodes with fixed compute shapes.
- Returns
The max_memory_per_node of this MetricBasedVerticalScaleUpConfig.
- Return type
int
- property max_ocpus_per_node¶
Gets the max_ocpus_per_node of this MetricBasedVerticalScaleUpConfig. For nodes with flexible compute shapes, this value is the maximum number of OCPUs each node can be scaled-up to. This value is not used for nodes with fixed compute shapes.
- Returns
The max_ocpus_per_node of this MetricBasedVerticalScaleUpConfig.
- Return type
int
- property memory_step_size¶
Gets the memory_step_size of this MetricBasedVerticalScaleUpConfig. For nodes with flexible compute shapes, this value is the size of memory in GBs to add to each node during a scale-up event. This value is not used for nodes with fixed compute shapes.
- Returns
The memory_step_size of this MetricBasedVerticalScaleUpConfig.
- Return type
int
- property metric¶
Gets the metric of this MetricBasedVerticalScaleUpConfig.
- Returns
The metric of this MetricBasedVerticalScaleUpConfig.
- Return type
- property ocpu_step_size¶
Gets the ocpu_step_size of this MetricBasedVerticalScaleUpConfig. For nodes with flexible compute shapes, this value is the number of OCPUs to add to each node during a scale-up event. This value is not used for nodes with fixed compute shapes.
- Returns
The ocpu_step_size of this MetricBasedVerticalScaleUpConfig.
- Return type
int