FerryDocs

A limit larger than the server

Ferry reads the size of the Docker host and adjusts a limit that the host cannot apply.

Edit on GitHub
CPU limit8 CPUsDocker host4 CPUsContainerlimit: 4 CPUs

The service has a CPU limit of 8 CPUs. The Docker host has 4 CPUs.

1 / 3

The is the machine that Docker runs on. ferryd reads its CPUs, its memory and its functions one time, at the start.

The three cases

LimitWhat Ferry doesMessage
More CPU than the host hasFerry lowers the limit to the number of CPUs of the host.the CPU limit (8 CPUs) is more than the Docker host has: capped at 4 CPUs
More memory than the host hasDocker accepts the limit, but the limit protects nothing. Ferry only gives a warning.
The kernel has no Docker refuses each CPU limit. Thus Ferry sets no CPU limit.the CPU limit (1 CPU) is not enforced: the Docker host's kernel has no CPU CFS quota support

Where the warning goes

ContainerWarning in
Instance of a serviceThe deploy log. For the CPU cap, also the server log.
Job runThe job log
DatastoreThe server log

After you change the size of the host

Restart ferryd. This applies, for example, after a change of the virtual machine of Docker Desktop.

On this page