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 environments | Measured |
|---|---|
| Memory, all awake | 4.9 GB |
| Memory, all asleep | 120 MB |
| The server's own memory, at its most | 107 MB |
| The server's CPU, all asleep | under 1% of a core |
| Waking one with a request | 0.13 s for this app: yours takes as long as it takes to start |
| Waking all 60 at once | 2.3 s for the slowest |
| Serving five while the others sleep | 4,100 requests a second, 95% within 12 ms |
| Requests that failed | none |
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.