Skip to main content

Module commit_policy

Module commit_policy 

Source
Expand description

Primary commit policies (PLAN.md Phase 11.4).

Local — commit returns after the local WAL is durable (default; current behaviour). No replica involvement at commit time.

RemoteWal — commit returns after the WAL segment containing the transaction has been archived to the remote backend. Bounds durability to “survives a single-node loss as long as the remote is reachable”.

AckN(n) — commit returns after n replicas have ack’d the transaction’s LSN via ack_replica_lsn. n=0 is equivalent to Local. The primary blocks the commit response until the count is met or RED_REPLICATION_ACK_TIMEOUT_MS elapses.

Quorum — commit returns after the configured QuorumConfig reaches its durable commit watermark.

RemoteWal is parsed for observability but does not block the write path yet. The default remains Local.

Enums§

CommitPolicy