Skip to content

Restoring 5 TB, measured

A zero-loss restore test with a fence tests the backup path, not what you lose after a sudden failure. In one EC2 run, the database reached 5 TB through the fdyno API 2 h 22 min after the load began. The restore into a new cluster took 8.4 hours. The audit found 0 of 164,680 acknowledged writes missing. The writers had stopped and the backup had drained before the restore, so this tested the backup path.

Scope

One run in one AWS Region (us-west-2) and one Availability Zone. FoundationDB 7.3.51, triple redundancy, Redwood (ssd-redwood-1). A pre-v0.1 build with default cluster version 3 (run aws-20261118-c4w-stageB4). All numbers come from the recorded load and restore events and the backup and restore page.

The shape of the run

Role Hosts
Storage 9 × i4i.4xlarge, eight storage processes each, cache-memory = 7.75GiB of memory = 14.25GiB
Transaction logs 3 × i4i.4xlarge running 9 TLogs
Stateless 3 × c6in.2xlarge
fdyno API 3 × c7i.4xlarge
Load generators 3 × c7i.4xlarge

The data went in through the DynamoDB API, not a bulk loader that writes FoundationDB keys directly. Each write took fdyno's full write path of that build, including the extra record that pre-v0.1 builds wrote for every write request.

5.0 TB reached through the API 2 h 22 min after the load began (about 577 MB/s of growth). Native restore into a new cluster: 8.4 h, or 11.5 h with validation. Full item check: 305,175,782 items in 32 tables in 2 h 41 min. 0 of 164,680 acknowledged writes lost after a backup-version fence and drain.

What "zero lost" means here

During the run, a checker journaled every write it saw acknowledged. Before the backup was cut, those writers stopped. The run fenced the source at a version and let the backup drain past it. Only then was the restore taken.

The audit found every acknowledged write in the restored cluster. It also found 2 absent writes whose outcome had been unknown. An unknown outcome is not an acknowledgement, so those count as neither lost nor kept.

Planned restore: writers stop, the source is fenced at a version, the backup drains past it, and every acknowledged write is inside the backup. Sudden loss: the backup trails the newest commits, and writes acknowledged in that gap are not in the backup. This run measured the first case only.

That procedure shows that, in this run, backup and restore carried every audited acknowledgement up to a known version. It does not measure loss after a sudden failure, when nobody stops the writers first. A continuous backup trails the newest commits by some interval. That lag sets the latest point you can restore. Writes acknowledged after it exist only on the cluster that was lost. This run did not measure that interval, so it does not claim a recovery point objective (RPO) of 0.

Restore time is not time to load

Phase Time
From the start of the load to the first 5 TB sample 2 h 22 min
fdbrestore into the new cluster 8.4 h (8.409 h recorded)
Restore plus validation 11.5 h (41,400.625 s recorded)
Full item comparison 2 h 41 min for 305,175,782 items in 32 tables; every item matched

By our arithmetic, the restore took about 3.5 times as long as the load took to reach 5 TB. The backup size is not in the record. The restore covered whatever the source held at the fence, pilot data included. So treat the ratio as one sample. The backup went to S3 with fdbbackup; fdbrestore wrote into a new cluster in the same Region.

One trap: FoundationDB 7.3 release binaries ignore the system CA store. Without a CA bundle, fdbbackup start fails with Could not create backup container: Operation timed out. The fix is one environment variable on every backup process.

What limited the load

FoundationDB status samples put the database at 5,008,255,796,533 bytes of key-value data about 8,558 seconds after the load began. A pilot had left data behind, so the rate comes from growth between samples. One sample pair starts before the load began, and one starts after it began. Both give about 577 MB/s. The first hour alone, from the load's own counter, ran at 594.12 MB/s.

The restore page records the limit: TLog write bandwidth. Every commit is made durable on the transaction logs before it is acknowledged. Payload pilots on the same host shape (a pre-v0.1 build with default cluster version 3; three and six TLogs in aws-20261118-c4-pilot6-r2, nine in aws-20261118-c4w-stageB4):

TLogs Payload rate Pilot rounds
3 about 252 MB/s 2
6 about 436 MB/s 7
9 about 558 MB/s 3

The pilots count request payload bytes, not key-value growth, so they are not the same unit as the 577 MB/s. The three- and six-TLog pilots ran on one fleet; the nine-TLog pilot ran on the 5 TB fleet. It is one pilot per setting, not a controlled experiment, but the direction is clear: for a large initial load, run more TLogs (configure logs=N).

The storage hosts ran with cache-memory at 7.75 GiB of 14.25 GiB. The deploy guide advises at most about 55% of memory on large hosts. That advice comes from a separate paired bulk-load comparison, not this run. At about 12 GiB, storage processes kept reaching their limit and restarting. At 7.75 GiB, none restarted, and peak use was 79% of the limit. It is a starting point, not a general bound.

Limits

  • Loss after a sudden failure. Not measured.
  • Adding storage after a restore. The add-storage step stopped before it produced a measurement.
  • Other shapes. One Region, one AZ, one storage engine, one host shape. No cross-Region restore, no other redundancy mode.
  • Repeatability. One run. The load rates agree because two sample pairs agree, not because the run was repeated.

The run also timed fdyno's per-table path. Export and import of a 1 GB table took 336 s. That time excludes the native restore and rebalance between them. That export was ROLLING: each item is a committed version, but items can come from different instants, as in DynamoDB's on-demand backups.

What to do with this

Measure your restore, on your own shape, before you need it. In this one run, it took about 3.5 times as long as the load took to reach 5 TB. When you report a zero-loss result, say whether the writers were stopped and the backup drained first. If they were, you tested the backup path, not your RPO. What a sudden failure loses depends on the backup's lag at that moment, and that needs its own test. To rehearse the path on one host first, use the native backup drill.