maxSwap property
The total amount of swap memory (in MiB) a container can use. This parameter
will be translated to the --memory-swap
option to docker
run where the value would be the sum of the container memory plus the
maxSwap
value.
If a maxSwap
value of 0
is specified, the
container will not use swap. Accepted values are 0
or any
positive integer. If the maxSwap
parameter is omitted, the
container will use the swap configuration for the container instance it is
running on. A maxSwap
value must be set for the
swappiness
parameter to be used.
Implementation
final int? maxSwap;