Durable history and query data
The data directory contains two kinds of state:- the event log is the durable history and the backup-critical artifact;
- the warehouse is query data derived from that history.
rebuild. A backup that contains only the warehouse is not
a backup of event history.
What a successful ingest means
An ingest response withstatus: "committed" or status: "duplicate" means the complete batch
is durable.
If the connection closes or times out before a response arrives, the result is unknown. Retry the
same content with the same (source, batch_id). The server returns the original receipt if the
batch was already committed or commits it once if it was not.
HTTP 503 on ingest means the service cannot safely accept more writes. Restart it, allow the data
directory to reopen, and then retry any ambiguous batch identically.
One writer per data directory
Only one process may write a data directory at a time.serveowns it while the service is running;sealneeds exclusive writer access;project,rebuild, andverifymay run whileserveis active.
Sealing
seal consolidates committed history into read-optimized immutable storage. It does not change
event values, IDs, order, batch identities, or integrity commitments.
Stop serve before sealing. Sealing does not refresh SQL or the catalog; run project separately
when query freshness should advance.
Coherent reads
Replay, project, rebuild, and verify each use one coherent history frontier. Concurrent ingest cannot make one operation mix different points in history. A captured frontier may be behind a later append. Replay cursors and warehouse receipts identify the frontier used by a response.Restart and recovery
After a crash or unclean stop:- confirm the previous process has exited;
- start
servewith the same configuration; - wait for a successful routed request;
- retry ambiguous batches with the same IDs and content; and
- run
verifyif the interruption requires an integrity check.
Backup and restore
The binary does not provide an online backup command. A conservative backup procedure is:- stop
servecleanly; - copy
groundhog.tomland the durable log; - restart the service; and
- periodically validate a restored copy.
See also
seal,
verify,
Warehouse,
Deployment operations