Skip to content

SystemResourceLimits

Source code in docs_src/capo_greengrassv2/types/system_resource_limits.py
class SystemResourceLimits(TypedDict, closed=True):
    memory: "capo_greengrassv2.types.memory.Memory"
    """<p>The maximum amount of RAM, expressed in kilobytes, that a component's processes can use on the core device.</p>"""
    cpus: "capo_greengrassv2.types.cpu.CPU"
    """<p>The maximum amount of CPU time that a component's processes can use on the core device. A core device's total CPU time is equivalent to the device's number of CPU cores. For example, on a core device with 4 CPU cores, you can set this value to <code>2</code> to limit the component's processes to 50 percent usage of each CPU core. On a device with 1 CPU core, you can set this value to <code>0.25</code> to limit the component's processes to 25 percent usage of the CPU. If you set this value to a number greater than the number of CPU cores, the IoT Greengrass Core software doesn't limit the component's CPU usage.</p>"""

cpus instance-attribute

cpus: CPU

The maximum amount of CPU time that a component's processes can use on the core device. A core device's total CPU time is equivalent to the device's number of CPU cores. For example, on a core device with 4 CPU cores, you can set this value to 2 to limit the component's processes to 50 percent usage of each CPU core. On a device with 1 CPU core, you can set this value to 0.25 to limit the component's processes to 25 percent usage of the CPU. If you set this value to a number greater than the number of CPU cores, the IoT Greengrass Core software doesn't limit the component's CPU usage.

memory instance-attribute

memory: Memory

The maximum amount of RAM, expressed in kilobytes, that a component's processes can use on the core device.