Alternating mirroring
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.
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. [1]
Durability: 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. [1]
Evidence: 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. [1]
Worked 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. [2]
Relations
Citations
- Polyzois, Bhide and Dias. Disk Mirroring with Alternating Deferred Updates. VLDB 1993, pp. 604-617, sections 2-5.
- Hesela: periodic write-window overlap, synthetic examples and exhaustive checks
Sources & caveats
- 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.