Large databases
Restorly restores every backup it validates, so a large database needs a host that can hold its restore and finish it in time. Small databases share any runner; a large one validates best on a runner of its own, sized up. Restorly says which of your databases are large and what to give them.
Small databases share runners
A host of the minimum size (4 vCPU, 8 GB of memory) validates many small databases, two at a time with agent.max_parallel_runs: 2. Each restore runs in its own sandbox, with 2 CPUs and 2 GiB of memory unless the database sets resources.
When a database is large
From its last completed restore:
| Large | Very large | |
|---|---|---|
| When its restore | puts 100 GB or more on disk, or takes 2 hours or more in a smaller sandbox | puts 500 GB or more on disk, or takes 6 hours or more in the large size's sandbox |
| Its runner's host | 8 vCPU, 16 GB of memory | 16 vCPU, 32 GB of memory |
Its sandbox (resources) | {cpus: 8, memory: 12GiB} | {cpus: 16, memory: 24GiB} |
| Free disk | what its restores reserve, shown with the advice | the same |
The advice is on the database's page, under What needs you, on the Runners page (capacity), in restorly capacity, in the capacity API (sizing) and in restorly preflight. Before the first run, the setup wizard and preflight estimate it from the backup's size.
How long a restore takes depends on its sandbox, which each report records, so a slow restore is advised the next size up, not more. Once the database has a runner of its own and the sandbox its size asks for, the advice goes quiet until a restore there says otherwise. If a restore still takes 6 hours in the very large size's sandbox, the advice is to validate it less often, or to validate its physical backups.
A larger host alone does not help. A restore uses only its sandbox's memory and CPUs, whatever the host has: give the database resources too.
Give it a runner of its own
- Prepare a host with the CPUs and memory above, Docker, and the free disk the advice names, where Docker keeps its data.
- Join it as a runner (Runners → Add runner). In its
/etc/, give it a label and make it dedicated, so it takes only the databases sent to it:restorly/ config. yaml runner: labels: { size: large } dedicated: true - Send the database there and size its sandbox:
targets: - id: dwh runner_selector: { size: large } resources: { cpus: 8, memory: 12GiB }
Every other database keeps using the shared runners. The capacity view counts them against the shared runners only, and says when those no longer fit a day.
Update the hub before its runners. From 0.1.13, a runner newer than its hub leaves out of its reports what the hub would not keep; an older hub may reject a newer runner's reports until the hub is updated.
How much disk a restore needs
Each restore reserves its disk before it starts, and restorly preflight shows the same figure:
- what the database's last completed restore put on disk, plus 10%;
- before a first run, or when a dump's backup grew more than ten times since its last restore, an estimate from the backup's size: its uncompressed size, times 1.3 for a dump (indexes), plus 10%;
- plus the backup itself where it is copied into the restore first (SQL Server's
.bak, MongoDB directory dumps).
For example, a 4.9 GB MariaDB dump compressed with zstd is first estimated at 70 GB: 49 GB uncompressed, times 1.3, plus 10%. Its restore put 42 GB on disk, so its later runs reserve 47 GB.
A restore that needs more than the disk can give waits for the others and then runs with all of it; it stops, and says the disk filled, if it really does not fit.
How long large restores take
Measured on Restorly's own test hosts in October 2026, with the checks of a full validation (time spent waiting for another restore left out). The 4 vCPU host ran two validations at a time with the default sandbox; the 8 vCPU host ran one at a time with the large size's sandbox. A dash: not measured.
| Backup | 4 vCPU, 8 GB, 2 GiB sandbox (10 nights, 19 to 29 October 2026) | 8 vCPU, 16 GB, 12 GiB sandbox |
|---|---|---|
MariaDB physical (mariadb-backup), 41 GiB on disk | restore 4 to 5 min, validation 35 to 38 min | restore 2½ min, validation 9½ min |
MariaDB dump (mariadb-dump), 42 GB on disk | restore 9¼ to 10¼ hours, validation 11¼ to 11¾ hours | restore 38½ min, validation 55 min |
MySQL dump (mysqldump), 21 GB on disk | restore 61 to 76 min, validation 74 to 89 min | — |
PostgreSQL physical (pg_basebackup), 107 GB on disk | restore 7 to 9 min, validation from 16 min | — |
PostgreSQL pg_dump, 113 GB on disk | restore 34 to 39 min, validation from 43 min | restore 14 min, validation 16½ min |
MongoDB mongodump archive, 14 GB on disk | restore 33 to 39 min, validation about 52 min | — |
SQL Server .bak, 11 GB on disk | restore 5 to 7 min, validation 7 to 10 min | — |
Physical backups restore fastest: their files are unpacked as they are, while a dump rebuilds every table and index row by row. On the minimum size, PostgreSQL, MongoDB and SQL Server restored tens of gigabytes within the hour. A MariaDB or MySQL dump slows down sharply once a table's indexes outgrow the sandbox's memory: the 21 GB MySQL dump took about an hour, the 42 GB MariaDB dump, most of it one table, 9¼ to 10¼ hours.
What Restorly sets in the sandbox
Each restore starts its database server with settings for a fast, throwaway copy: the copy never has to survive a crash, because a restore that fails is simply run again. The memory settings follow the sandbox's memory, so for a large database resources.memory is the setting that matters; nothing in the engines needs configuring by hand. These settings apply to the copy in the sandbox only, never to your database servers.
| Engine | Memory, from the sandbox's | Other settings |
|---|---|---|
| MariaDB, MySQL: dumps | InnoDB buffer pool: half (at least 128 MiB) | innodb_flush_log_at_trx_commit=0, innodb_doublewrite=OFF, max_allowed_packet=1G, skip_name_resolve; MySQL also without its binary log, Performance Schema and X Plugin |
MariaDB: mariadb-backup | mariadb-backup --prepare --use-memory and the buffer pool: half | innodb_flush_log_at_trx_commit=0, no binary log |
| PostgreSQL | shared_buffers: a quarter (at least 64 MB) | fsync=off, synchronous_commit=off, full_page_writes=off, max_wal_size=4GB; for dumps also maintenance_work_mem=256MB (index builds) |
| MongoDB | WiredTiger cache: a quarter (at least 0.25 GB) | |
| SQL Server | MSSQL_MEMORY_LIMIT_MB: 80% (SQL Server needs a sandbox of 2000 MiB or more) |
Making large restores faster
- Give the restore memory. Set the database's
resourcesas the advice says: the buffer pool, shared buffers or cache above grow with it. The 42 GB MariaDB dump took 9¼ to 10¼ hours with the default sandbox (2 CPUs, 2 GiB: its indexes outgrew the 1 GiB buffer pool, so every row cost random reads) and 38½ minutes with 8 CPUs and 12 GiB. - Keep one restore at a time on its runner (
runner.max_parallel: 1, the default): a sandbox's memory is a limit, not a reservation, so two 12 GiB restores at once on a 16 GB host run out of memory. - Validate physical backups where you have them. A 41 GiB
mariadb-backuprestored in 2½ minutes; a dump of about the same size took 38½. pgBackRest repositories andpg_basebackupbase backups restore as files too. - Keep extended inserts in MariaDB and MySQL dumps, the default of
mariadb-dumpandmysqldump: a dump made with--skip-extended-inserthas oneINSERTper row and restores many times slower. - Put Docker's data on fast disk. A restore writes its whole database where Docker keeps its data (
docker infoshows the Docker Root Dir): SSD or NVMe, with the free space the advice names. - Validate it less often when its validation still takes most of a day: weekly (
schedule: "0 2 * * 6") still proves its backups restore.