Maintenance mode blocks Ledger mutations across the cluster while reads continue. Use it when a backup, integrity check, upgrade step, or incident response requires a stable write boundary.
Maintenance mode does not drain application requests, stop client retries, fix an unhealthy cluster, or make an unsafe operation reversible. Coordinate the boundary with application owners before enabling it.
What changes#
| Operation | During maintenance mode |
|---|---|
| Create or delete a ledger | Blocked |
| Create, revert, or bulk-process transactions | Blocked |
| Save or delete metadata and other configuration | Blocked |
| List or get Ledger data | Allowed |
| Inspect cluster status | Allowed |
| Disable maintenance mode | Allowed |
Blocked writes return gRPC Unavailable or HTTP 503 Service Unavailable. Clients must treat the response as an intentional service boundary and wait for the maintenance owner rather than retrying in a tight loop.
The setting is committed through the cluster and survives process restarts. Restarting members does not clear it.
Enter maintenance mode#
Precheck#
- Name the maintenance owner, affected applications, expected duration, and abort criteria.
- Confirm that the procedure has its own rollback and that a recent backup exists when data could be affected.
- Check that the cluster has a leader, the expected voters, and no member still catching up.
- Confirm that disk and clock health are not already blocking writes.
- Pause producers and background workers, then drain in-flight writes at the application boundary.
- Confirm that clients will honor
503without uncontrolled retries.
Do not enter planned maintenance to hide an unknown no-leader, disk, or clock-skew failure. Diagnose that condition first.
Enable the write boundary#
If the cluster requires request signing, use the configured signing key:
Inspect the cluster again:
Proceed only after the status shows maintenance mode enabled and application telemetry shows no successful writes after the boundary.
Verify independently#
Use a disposable, idempotent write in a non-production verification ledger to confirm the expected 503 result. Then read an existing account or transaction to confirm that required read access still works. Record the last accepted Ledger log or transaction position before starting the maintenance task.
Do not use a real customer transaction as the negative write test. Client libraries may queue or retry it after maintenance ends.
Run the maintenance task#
Follow the owning runbook rather than improvising inside the window. While the task runs:
- keep the application write drain active;
- keep the cluster status, voter count, disk, memory, and alert state visible;
- record any leadership change or member restart;
- stop at the procedure's rollback trigger;
- keep maintenance mode enabled when validation is incomplete.
Reads may continue, but choose the required consistency deliberately. A long checkpoint, restore, or synchronization can delay a current read even though maintenance mode permits it.
Leave maintenance mode#
Precheck#
Before reopening writes, confirm:
- the maintenance procedure reports a successful result;
- the cluster has a leader and the expected caught-up voters;
- no restore, synchronization, or rolling change remains in progress;
- required indexes and event workflows are in their expected state;
- the integrity and task-specific checks pass;
- application owners are ready to resume producers in a controlled order.
Disable the write boundary#
If signing is required:
Verify and reopen#
- Confirm that cluster status reports maintenance mode disabled.
- Send one controlled write with a new idempotency key.
- Read the result back with current-read consistency.
- Confirm that the cluster applied the write on every expected voter.
- Resume one producer or traffic segment.
- Watch latency, structured errors, queue load, and downstream delivery.
- Reopen the remaining traffic only after the signals return to baseline.
The result is a recorded write boundary, a validated maintenance outcome, and a controlled first write after reopening.
Recover when the procedure fails#
If the maintenance task fails, keep maintenance mode enabled and execute that task's rollback. Do not reopen because the original maintenance window has expired.
If the disable command fails:
- confirm that a leader and quorum exist;
- confirm that authentication and any required request signature are valid;
- inspect whether the request reached a follower that cannot forward to the leader;
- retry with the same authorized procedure after restoring cluster connectivity;
- escalate with cluster status and the structured error when the flag remains set.
Do not edit persistent state or restart every member to clear maintenance mode. The flag is replicated state and must be changed through the maintenance command.