FerryDocs

The CPU limit

A CPU limit is the most CPU time that one container can use.

Edit on GitHub
Containerlimit: 1 CPUOther containerServer8 CPUs

Each container uses a part of the CPUs of the server.

1 / 4

A is the most time that one can use. The default limit is 1 CPU.

At the limit, the kernel does not stop the container. It it.

Write an amount

You writeFerry reads
0.5Half a core
2Two cores
500m500 (0.5)

Ferry rounds an amount to 0.01 CPU. A limit can be from 0.01 to 512 CPUs.

Set the limit

Terminal
ferry create api --repo https://github.com/you/api --memory 1G --cpu 0.5
ferry update api --cpu default         # back to the server default

Small servers

On a server with one CPU, the default limit of 1 CPU is the full server. Use a lower --default-cpu-limit there, for example 0.5.

On this page