{
  "slug": "alternating-mirroring",
  "term": "Alternating mirroring",
  "aliases": [
    "Alternate mirroring",
    "Disk mirroring with alternating deferred updates"
  ],
  "definition": "Alternating mirroring schedules buffered write batches on paired disks out of phase, leaving a replica available for reads when the write intervals do not overlap.",
  "note": "Mechanism: updates accumulate in memory and are sorted for batched installation. The 1993 design offsets the two disks by half a cycle. Batches shorter than half the cycle leave at least one disk in read mode; overlapping batches delay reads or require interrupting writes. [vldb93]\n\nDurability: the design assumes write-ahead logging, or reliable nonvolatile memory for other applications. Scheduling alone does not make buffered updates durable. Its recovery procedure uses a survivor and two spare disks, rather than ordinary one-spare rebuilding. [vldb93]\n\nEvidence: evaluation combines analytical modeling, Monte Carlo calculations and simulation with historical HDD parameters. Benefits target random-access workloads and depend on memory, batch size and read demand; they are not contemporary drive measurements. [vldb93]\n\nWorked example: in a synthetic 10-second cycle, 6- and 4-second batches offset by 5 seconds overlap for 1 second. Moving the offset to 6 seconds removes that overlap. The executable interval model measures scheduling occupancy, without estimating latency or durability. [example]",
  "status": "research",
  "advantages": [],
  "limitations": [],
  "related": [
    "mirroring",
    "doubly-distorted-mirrors",
    "write-ahead-log",
    "rotational-latency"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-12-04",
  "citations": [
    {
      "id": "vldb93",
      "title": "Polyzois, Bhide and Dias. Disk Mirroring with Alternating Deferred Updates. VLDB 1993, pp. 604-617, sections 2-5.",
      "url": "https://www.vldb.org/conf/1993/P604.PDF",
      "accessed": "2026-12-04"
    },
    {
      "id": "example",
      "title": "Hesela: periodic write-window overlap, synthetic examples and exhaustive checks",
      "url": "https://hesela.dev/research/alternating-mirroring/README.md",
      "accessed": "2026-12-04"
    }
  ],
  "provenance": [
    "Historical scheduling design; no implementation adoption or modern benchmark is asserted.",
    "The linked example is a deterministic scheduling illustration, not a reproduction of the paper's simulator."
  ]
}
