FerryDocs

The five guards

Five guards stop a container that uses too much of the server.

Edit on GitHub
Memory512 MiBCPU1 CPUProcesses1024ContainerLogs10 MiB × 3 filesFree disk1 GiB free

Too much memory: the kernel stops the process. Then Docker starts it again.

1 / 5

Ferry puts five guards around each that it starts. Each guard has a default value.

The defaults

GuardDefaultSet with
Memory512 MiBThe service or the datastore. If not set: --default-memory-limit
CPU1 CPUThe service or the datastore. If not set: --default-cpu-limit
Processes1024--pids-limit
Logs10 MiB × 3 files--log-max-size, --log-max-files
Free disk1 GiB free--min-free-disk

The flags are options of ferryd. See Server defaults.

A limit is for one container

Containers do not share a limit. A with 3 can use 3 times its limit, plus the limit of each job that runs.

A limit is a cap. It does not reserve memory or CPU. Ferry does not make sure that all the limits together fit on the server.

On this page