ContainerResourceConfig

class oci.container_instances.models.ContainerResourceConfig(**kwargs)

Bases: object

The resource configuration for a container. The resource configuration determines the amount of resources allocated to the container and the maximum allowed resources for a container.

Methods

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

Attributes

memory_limit_in_gbs Gets the memory_limit_in_gbs of this ContainerResourceConfig.
vcpus_limit Gets the vcpus_limit of this ContainerResourceConfig.
__init__(**kwargs)

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

Parameters:
  • vcpus_limit (float) – The value to assign to the vcpus_limit property of this ContainerResourceConfig.
  • memory_limit_in_gbs (float) – The value to assign to the memory_limit_in_gbs property of this ContainerResourceConfig.
memory_limit_in_gbs

Gets the memory_limit_in_gbs of this ContainerResourceConfig. 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.

Returns:The memory_limit_in_gbs of this ContainerResourceConfig.
Return type:float
vcpus_limit

Gets the vcpus_limit of this ContainerResourceConfig. 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.

Returns:The vcpus_limit of this ContainerResourceConfig.
Return type:float