API-Docker
view release on metacpan or search on metacpan
lib/API/Docker/Type/Resources.pm view on Meta::CPAN
Memory limit in bytes. The daemon defaults it to 0.
=head2 cgroup_parent
Path to C<cgroups> under which the container's C<cgroup> is created. If the
path is not absolute, the path is considered to be relative to the
C<cgroups> path of the init process. Cgroups are created if they do not
already exist.
=head2 blkio_weight
Block IO weight (relative weight).
=head2 blkio_weight_device
Block IO weight (relative device weight) in the form:
[{"Path": "device_path", "Weight": weight}]
See L<API::Docker::Type::Resources::BlkioWeightDevice>.
=head2 blkio_device_read_bps
Limit read rate (bytes per second) from a device, in the form:
[{"Path": "device_path", "Rate": rate}]
See L<API::Docker::Type::ThrottleDevice>.
=head2 blkio_device_write_bps
Limit write rate (bytes per second) to a device, in the form:
[{"Path": "device_path", "Rate": rate}]
See L<API::Docker::Type::ThrottleDevice>.
=head2 blkio_device_read_iops
Limit read rate (IO per second) from a device, in the form:
[{"Path": "device_path", "Rate": rate}]
See L<API::Docker::Type::ThrottleDevice>. Serialised as
C<BlkioDeviceReadIOps> -- spelled out, because deriving it from the Perl
name would produce C<BlkioDeviceReadIops>.
=head2 blkio_device_write_iops
Limit write rate (IO per second) to a device, in the form:
[{"Path": "device_path", "Rate": rate}]
See L<API::Docker::Type::ThrottleDevice>. Serialised as
C<BlkioDeviceWriteIOps> -- spelled out, because deriving it from the Perl
name would produce C<BlkioDeviceWriteIops>.
=head2 cpu_period
The length of a CPU period in microseconds.
=head2 cpu_quota
Microseconds of CPU time that the container can get in a CPU period.
=head2 cpu_realtime_period
The length of a CPU real-time period in microseconds. Set to 0 to allocate
no time allocated to real-time tasks.
=head2 cpu_realtime_runtime
The length of a CPU real-time runtime in microseconds. Set to 0 to allocate
no time allocated to real-time tasks.
=head2 cpuset_cpus
CPUs in which to allow execution (e.g., C<0-3>, C<0,1>).
=head2 cpuset_mems
Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective
on NUMA systems.
=head2 devices
A list of devices to add to the container. See
L<API::Docker::Type::DeviceMapping>.
=head2 device_cgroup_rules
A list of cgroup rules to apply to the container.
=head2 device_requests
A list of requests for devices to be sent to device drivers. See
L<API::Docker::Type::DeviceRequest>.
=head2 kernel_memory_tcp
Hard limit for kernel TCP buffer memory (in bytes). Depending on the OCI
runtime in use, this option may be ignored. It is no longer supported by the
default (runc) runtime.
This field is omitted when empty.
B<Deprecated>: This field is deprecated as kernel 6.12 has deprecated
C<memory.kmem.tcp.limit_in_bytes> field for cgroups v1. This field will be
removed in a future release. Serialised as C<KernelMemoryTCP> -- spelled
out, because deriving it from the Perl name would produce
C<KernelMemoryTcp>.
=head2 memory_reservation
Memory soft limit in bytes.
=head2 memory_swap
Total memory limit (memory + swap). Set as C<-1> to enable unlimited swap.
=head2 memory_swappiness
Tune a container's memory swappiness behavior. Accepts an integer between 0
and 100.
=head2 nano_cpus
CPU quota in units of 10^-9 CPUs.
=head2 oom_kill_disable
Disable OOM Killer for the container.
( run in 2.497 seconds using v1.01-cache-2.11-cpan-54e63673c56 )