public static class MetricBasedVerticalScaleDownConfig.Builder extends Object
Constructor and Description |
---|
Builder() |
public MetricBasedVerticalScaleDownConfig.Builder metric(AutoScalePolicyMetricRule metric)
public MetricBasedVerticalScaleDownConfig.Builder minOcpusPerNode(Integer minOcpusPerNode)
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.
minOcpusPerNode
- the value to setpublic MetricBasedVerticalScaleDownConfig.Builder minMemoryPerNode(Integer minMemoryPerNode)
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.
minMemoryPerNode
- the value to setpublic MetricBasedVerticalScaleDownConfig.Builder ocpuStepSize(Integer ocpuStepSize)
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.
ocpuStepSize
- the value to setpublic MetricBasedVerticalScaleDownConfig.Builder memoryStepSize(Integer memoryStepSize)
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.
memoryStepSize
- the value to setpublic MetricBasedVerticalScaleDownConfig build()
public MetricBasedVerticalScaleDownConfig.Builder copy(MetricBasedVerticalScaleDownConfig model)
Copyright © 2016–2024. All rights reserved.