CreateContainerResourceConfigDetails¶
-
class
oci.container_instances.models.
CreateContainerResourceConfigDetails
(**kwargs)¶ Bases:
object
The size and amount of resources available to the container.
Methods
__init__
(**kwargs)Initializes a new CreateContainerResourceConfigDetails object with values from keyword arguments. Attributes
memory_limit_in_gbs
Gets the memory_limit_in_gbs of this CreateContainerResourceConfigDetails. vcpus_limit
Gets the vcpus_limit of this CreateContainerResourceConfigDetails. -
__init__
(**kwargs)¶ Initializes a new CreateContainerResourceConfigDetails 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 CreateContainerResourceConfigDetails.
- memory_limit_in_gbs (float) – The value to assign to the memory_limit_in_gbs property of this CreateContainerResourceConfigDetails.
-
memory_limit_in_gbs
¶ Gets the memory_limit_in_gbs of this CreateContainerResourceConfigDetails. 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 CreateContainerResourceConfigDetails. Return type: float
-
vcpus_limit
¶ Gets the vcpus_limit of this CreateContainerResourceConfigDetails. The maximum amount of CPUs that can be consumed by the container’s process.
If you do not set a value, then the process can use all available CPU resources on the 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.
A container with a 2.0 vcpusLimit could consume up to 100% of the CPU resources available on the container instance. Values can be fractional. A value of “1.5” means that the container can consume at most the equivalent of 1 and a half logical CPUs worth of CPU capacity.
Returns: The vcpus_limit of this CreateContainerResourceConfigDetails. Return type: float
-