FerryDocs

How the limits add up

A limit applies to each container, it is a maximum, and some programs have no limit.

Edit on GitHub
Server: 4 CPUs, 7.8 GiB5 web services5 × 512 MiBPostgres512 MiBRedis512 MiBAbout 4 GiBno limit here
The example server: seven containers use 3.5 GiB at most

Three rules

  • For each container, not for each service. A with three can use three times its limit. Each in progress adds one more, because a job gets the limits of its service. Each has its own limits.
  • A maximum, not a reservation. Ferry does not check that the sum of the limits fits the host. This is not necessary, because most apps stay far below their limit.
  • Some programs have no limit. These are ferryd, dockerd, the system and the builds. Leave room for them.

The example

The server of this guide has 4 CPUs and 7.8 GiB. Five web services with one instance each, a Postgres and a Redis are seven containers.

With the defaults, they use 3.5 GiB of memory at most. Each container has one CPU at most. About 4 GiB stay free for builds, ferryd, Docker and the system.

On this page