ResourceLimits Class

This type describes the resource limits for a given container. It describes the most amount of resources a container is allowed to use before being restarted.

Inheritance
ResourceLimits

Constructor

ResourceLimits(*, memory_in_gb: Optional[float] = None, cpu: Optional[float] = None, **kwargs)

Parameters

memory_in_gb
float
Required

The memory limit in GB.

cpu
float
Required

CPU limits in cores. At present, only full cores are supported.