Class ScalingConfig.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeai.model.ScalingConfig.Builder
-
- Enclosing class:
- ScalingConfig
public static class ScalingConfig.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScalingConfigbuild()ScalingConfig.Buildercopy(ScalingConfig model)ScalingConfig.BuildermaxReplica(Integer maxReplica)Maximum number of replicas allowed.ScalingConfig.BuilderminReplica(Integer minReplica)Minimum number of replicas to keep running.ScalingConfig.BuilderscalingType(ScalingConfig.ScalingType scalingType)scaling type for application.ScalingConfig.BuildertargetConcurrencyThreshold(Integer targetConcurrencyThreshold)number of simultaneous requests that can be processed by each replica.ScalingConfig.BuildertargetCpuThreshold(Integer targetCpuThreshold)Scale up if average CPU utilization exceeds this threshold.ScalingConfig.BuildertargetMemoryThreshold(Integer targetMemoryThreshold)Scale up if average memory utilization exceeds this threshold.ScalingConfig.BuildertargetRpsThreshold(Integer targetRpsThreshold)requests-per-second per replica of an application.
-
-
-
Method Detail
-
minReplica
public ScalingConfig.Builder minReplica(Integer minReplica)
Minimum number of replicas to keep running.- Parameters:
minReplica- the value to set- Returns:
- this builder
-
maxReplica
public ScalingConfig.Builder maxReplica(Integer maxReplica)
Maximum number of replicas allowed.- Parameters:
maxReplica- the value to set- Returns:
- this builder
-
scalingType
public ScalingConfig.Builder scalingType(ScalingConfig.ScalingType scalingType)
scaling type for application.- Parameters:
scalingType- the value to set- Returns:
- this builder
-
targetCpuThreshold
public ScalingConfig.Builder targetCpuThreshold(Integer targetCpuThreshold)
Scale up if average CPU utilization exceeds this threshold.- Parameters:
targetCpuThreshold- the value to set- Returns:
- this builder
-
targetMemoryThreshold
public ScalingConfig.Builder targetMemoryThreshold(Integer targetMemoryThreshold)
Scale up if average memory utilization exceeds this threshold.- Parameters:
targetMemoryThreshold- the value to set- Returns:
- this builder
-
targetConcurrencyThreshold
public ScalingConfig.Builder targetConcurrencyThreshold(Integer targetConcurrencyThreshold)
number of simultaneous requests that can be processed by each replica.- Parameters:
targetConcurrencyThreshold- the value to set- Returns:
- this builder
-
targetRpsThreshold
public ScalingConfig.Builder targetRpsThreshold(Integer targetRpsThreshold)
requests-per-second per replica of an application.- Parameters:
targetRpsThreshold- the value to set- Returns:
- this builder
-
build
public ScalingConfig build()
-
copy
public ScalingConfig.Builder copy(ScalingConfig model)
-
-