How big a machine

What a server needs, and how much it holds.

Moorage itself asks for little: about 100 MB of memory, and next to no CPU while nothing is happening. What a machine has to hold is your apps, and only those awake. An environment asleep uses no memory until a request wakes it.

We check this with a script on a machine limited to 4 CPUs and 8 GB: 60 environments of 10 apps, each a small Python server holding 64 MB, with sleep on.

With 60 environmentsMeasured
Memory, all awake4.9 GB
Memory, all asleep120 MB
The server's own memory, at its most107 MB
The server's CPU, all asleepunder 1% of a core
Waking one with a request0.13 s for this app: yours takes as long as it takes to start
Waking all 60 at once2.3 s for the slowest
Serving five while the others sleep4,100 requests a second, 95% within 12 ms
Requests that failednone

So count what your apps use while they are awake, and how many of them will be at once. Builds need room as well, which depends on what you build, and logs and metrics take disk.

Suggest a change to this page