public static class ContainerResourceConfig.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ContainerResourceConfig |
build() |
ContainerResourceConfig.Builder |
copy(ContainerResourceConfig model) |
ContainerResourceConfig.Builder |
memoryLimitInGBs(Float memoryLimitInGBs)
The maximum amount of memory that can be consumed by the container’s process.
|
ContainerResourceConfig.Builder |
vcpusLimit(Float vcpusLimit)
The maximum amount of CPUs that can be consumed by the container’s process.
|
public ContainerResourceConfig.Builder vcpusLimit(Float vcpusLimit)
The maximum amount of CPUs that can be consumed by the container’s process.
If you do not set a value, then the process may use all available CPU resources on the container instance.
CPU usage is defined in terms of logical CPUs. This means that the maximum possible value on an E3 ContainerInstance with 1 OCPU is 2.0.
vcpusLimit
- the value to setpublic ContainerResourceConfig.Builder memoryLimitInGBs(Float memoryLimitInGBs)
The maximum amount of memory that can be consumed by the container’s process. If you do not set a value, then the process may use all available memory on the instance.
memoryLimitInGBs
- the value to setpublic ContainerResourceConfig build()
public ContainerResourceConfig.Builder copy(ContainerResourceConfig model)
Copyright © 2016–2024. All rights reserved.