Skip to main content
Every store keeps a reserve of free space on its volume: --min-free-mb. The default is 5% of the volume, at least 16 MiB and at most 1 GiB. Under it, the server refuses new spans and scores before the disk is full. Everything else goes on, and writes start again by themselves when there is room.

See it

Queries, POST /v1/traces/delete, POST /v1/purge, --retention, commits and a restart go on: the reserve is the room for them. A write is refused while the free space is under the reserve plus the room that the accepted spans still need for their commit. A merge in the background starts only when there is room for its output too. While one runs on a nearly full volume, new data can be refused until it ends.

Make room

The next write passes when there is room. No restart is needed.
Another program filled the volume, --min-free-mb is 0, or the disk had an error. Then /healthz says writes are refused: the store cannot write, the log says why, writes get 503, and queries answer from the last commit.The server opens the store again by itself, as a restart does. It needs room on the volume for two times the write log, and the reserve.It tries at once, then with a wait that doubles from 1 s to 30 s. Until then the store is open read-only.No accepted write is lost: one that got 200 is in the write log, and the open applies it. With tenants, a tenant’s store opens again at the next request for it.
When the volume has no room to open the store for writing, the server starts read-only and says so in its log. It opens the store for writing by itself when there is room.A store that stopped between its two commits opens only for writing, which needs a little room. On a volume with not one block free, the server starts with no store. Every request gets a 503 that says why, and the server opens the store when there is room.A store that does not open for another reason (another server on it, a damaged store, another format) stops the start.
The reserve is free space, not a file: another program on the same volume can take it. Give the store its own volume. A server with --s3 as the writer is not opened again by itself after its writer failed: restart it.
Free space is read with statvfs. On a system without it, and on a volume that reports no size (some network and FUSE file systems), there is no reserve. Tested on macOS with APFS disk images (tests/disk_full.rs), not on Linux.

Retention

Drop old spans by themselves.

Errors, memory and threads

What each error means.