FerryDocs

Set the limits of a service

The limits of a service apply to each instance and to each job run.

Edit on GitHub
Terminal
$ 

Each of the service gets the limits. Each job run gets them too, one-off or on a schedule.

A new limit applies at the next deploy or restart. See When a new limit applies.

Choose your tool

ferry create, ferry update and ferry up accept --memory and --cpu.

Terminal
ferry create api --repo https://github.com/you/api --memory 1G --cpu 0.5
ferry update api --memory 2G           # change it
ferry update api --cpu default         # back to the server default
ferry up --memory 768M                 # ferry up takes them too

default (or 0) means the server default. ferry show prints the limits of the service.

ferry show api (excerpt)
Memory limit:      2 GiB
CPU limit:         server default (1 CPU)

The range

LimitSmallestLargest
Memory16 MiB1 TiB
CPU0.01 CPU512 CPUs

On this page