FerryDocs

Choose the default limits

Change the default limits when your server has one CPU, little memory or special needs.

Edit on GitHub
/etc/ferry/ferryd.env
FERRY_DEFAULT_MEMORY_LIMIT=256M
FERRY_DEFAULT_CPU_LIMIT=0.5

The defaults are good for a small server with some apps. Change them when your server is different.

Which values to choose

Your serverChange
One CPUThe default CPU limit is the full host. Lower --default-cpu-limit, for example to 0.5. Then one busy app cannot take the CPU from the others.
Little memory, many small appsLower --default-memory-limit, for example to 256M. Give more to the services that need it.
No default limitsSet --default-memory-limit 0 and --default-cpu-limit 0. Then a has no limit unless its service or datastore sets one. A 0 turns the guard off, and the protection with it.

Set the values

Add the values

Add the flags to ExecStart in the file. As an alternative, add their variables to /etc/ferry/ferryd.env.

Restart ferryd

Terminal
sudo systemctl restart ferryd

The new defaults apply to the containers that Ferry creates from then on.

On this page