Show / Hide Table of Contents

Class ContainerResourceConfig

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.

Inheritance
object
ContainerResourceConfig
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.ContainerinstancesService.Models
Assembly: OCI.DotNetSDK.Containerinstances.dll
Syntax
public class ContainerResourceConfig

Properties

MemoryLimitInGBs

Declaration
[JsonProperty(PropertyName = "memoryLimitInGBs")]
public float? MemoryLimitInGBs { get; set; }
Property Value
Type Description
float?

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.

VcpusLimit

Declaration
[JsonProperty(PropertyName = "vcpusLimit")]
public float? VcpusLimit { get; set; }
Property Value
Type Description
float?

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.

In this article
Back to top