Masterplan Optimiser

Technical Reference

Snapshots and Redundancy

MP-OPT combines availability controls with independently encrypted recovery copies. Each mechanism has a different recovery point, custodian, and failure boundary.

Three independent resilience layers

Availability, recent redundancy, and disaster recovery solve different problems and must not be treated as interchangeable.

1. Live service

The holder serves requests. In HA, either VPS may hold the writer lease.

2. Peer recovery point

A recent accepted complete bundle supports failover after one VPS is lost.

3. External recovery copy

An independently encrypted and verified snapshot protects against both VPSs, corruption, and operator mistakes.

HA can rapidly copy a bad change to the peer. Only an older independent recovery point lets an operator return to an earlier known-good state.

Copies and their purpose

CopyContainsProtects againstDoes not protect against
Schedule historyOne event's published schedule stateUnwanted schedule changesVPS or installation loss
HA peer bundleComplete database plus shared configuration and shared service secretsLoss of one VPS, subject to its accepted recovery pointCorruption copied from the holder or loss of both VPSs
Recovery snapshotDatabase, shared configuration, secrets, and applicable topology metadataInstallation loss, corruption, and return to an earlier stateLoss of the matching private recovery identity
Portable external copyEncrypted snapshot package and public receiptLoss or compromise of both VPSsFailure to keep a separately protected private identity

Recovery snapshot contents

Included

  • PostgreSQL custom-format dump
  • Shared application configuration
  • Protected shared service secrets
  • Applicable proxy topology metadata
  • Manifest paths, sizes, modes, and SHA-256 values
  • Outer hash and public receipt

Excluded deliberately

  • Operator's private age recovery identity
  • SSH private keys
  • Node identities and witness tokens
  • Everything under /etc/mp-opt-ha
  • Peer-local database password
  • Unrelated workstation credentials

Recovery objectives

  • The peer replication interval is configurable from 5 to 1440 minutes and defaults to 15 minutes.
  • All writes after the most recent complete accepted peer bundle may be lost during failover.
  • The interval is a target only while the peer, SSH, witness, and replication job remain healthy.
  • External snapshot age determines how far a total-site restore returns the installation.
  • Automatic failover is roughly five minutes plus promotion and health-routing delay, not zero downtime.

Use the Recovery Snapshots runbook to create and verify archives. This page explains the model but does not replace the guarded operator workflow.