AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: Aws::GreengrassV2::Types::SystemResourceLimits

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb

Overview

Note:

When making an API call, you may pass SystemResourceLimits data as a hash:

{
  memory: 1,
  cpus: 1.0,
}

Contains information about system resource limits that the IoT Greengrass Core software applies to a component's processes. For more information, see Configure system resource limits for components.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#cpusFloat

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.

Returns:

  • (Float)


3235
3236
3237
3238
3239
3240
# File 'gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb', line 3235

class SystemResourceLimits < Struct.new(
  :memory,
  :cpus)
  SENSITIVE = []
  include Aws::Structure
end

#memoryInteger

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

Returns:

  • (Integer)


3235
3236
3237
3238
3239
3240
# File 'gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb', line 3235

class SystemResourceLimits < Struct.new(
  :memory,
  :cpus)
  SENSITIVE = []
  include Aws::Structure
end