> ## Documentation Index
> Fetch the complete documentation index at: https://docs.levelrail.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Running on a small server

> What to set when Levelrail runs on a 1 GiB single CPU server, which numbers are measured, and which are still unproven.

This page is for a server with about 1 GiB of RAM, one vCPU and 10 to 25 GiB of disk. It lists the settings that keep the control plane small and says plainly what has and has not been measured.

## What has been measured

All figures come from [Performance](https://docs.levelrail.com/performance.md), one run per row.

| Setup | Figure | What it is |
| - | - | - |
| Linux container, 0 apps | 212 MB peak RSS | Docker Desktop VM on a Mac. Not a VPS figure. |
| Linux container, 20 stopped apps | 233 MB peak RSS | Same VM, apps created then stopped. |
| macOS dev build, after trim | 71 MB physical footprint | macOS only, not comparable to RSS. |
| macOS, `minimal` profile | 162 MB RSS | From `TestFootprint`, RSS is not comparable to the row above. |
| 8 GiB test server, 18 containers | 318 MB control plane, 247 MB Docker daemon | Idle with no apps was about 160 MB. |

## What has not been measured

* No run exists on a real 1 GiB server. The 200 MB target is a goal, not a result.
* There is no committed baseline with apps running on Linux.
* Docker itself and your own apps use memory on top of the control plane.

## Settings for a small server

1. Switch to the `minimal` profile, see [Server profiles](https://docs.levelrail.com/profiles.md). On `minimal` the container log caps default to 10 MB by 3 files and builds run one at a time, unless you set those yourself.
2. Pick the laptop or single server mode in the dashboard. It fills in these runtime settings, only where you have not set a value:

| Setting | Value |
| - | - |
| `footprint.memlimit_percent` | 75 |
| `footprint.gc_percent` | 40 |
| `build.max_parallel` | 1 |
| `containers.log_max_size_mb` | 10 |
| `containers.log_max_files` | 3 |

3. Add swap so a memory spike does not kill processes. Preview with `levelrail-cli swap`, then run `sudo levelrail-cli swap --apply`.
4. Build elsewhere when you can. A Next.js build is documented to want more than 1 GiB, see [Build performance](https://docs.levelrail.com/build-performance.md).

A stored setting always wins over a mode or profile default. See [Runtime settings](https://docs.levelrail.com/runtime-settings.md) for every key.

## Local backups on a small disk

The control plane snapshots itself to a local folder. These runtime settings keep that bounded:

| Setting | Default | Meaning |
| - | - | - |
| `cp_backup.interval` | 24h | How often a snapshot runs. 0 turns scheduled snapshots off. |
| `cp_backup.retain` | 5 | Scheduled snapshots kept, older ones are deleted. |
| `cp_backup.min_free_mb` | 512 | A snapshot is skipped, with a warning, when free disk is below this plus the database size. 0 turns the guard off. |

See [Control plane backup](https://docs.levelrail.com/control-plane-backup.md).

## Doctor check

The `low_memory_host` check warns when the host has less memory than `doctor.low_memory_mb` (1536 by default) and the profile is not `minimal`. Set it to 0 to turn it off.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.