Skip to main content

Crate vortex_sim

Crate vortex_sim 

Source
Expand description

vortex-sim — Simulated I/O implementations for Vortex.

Provides deterministic, fault-injectable replacements for real I/O:

  • SimNetwork — in-process network with latency, drops, partitions, reordering
  • SimStorage — in-memory storage with crash, corruption, and disk-full simulation
  • SimClock — virtual clock with per-node skew, drift, and step jumps

Structs§

DiskModel
Disk behavior model for crash simulation.
InFlightMessage
A message in-flight in the simulated network.
LinkConfig
Configuration for a simulated network link between two nodes.
SimClock
A deterministic clock with virtual time and per-node skew.
SimNetwork
Simulated network that intercepts all inter-node communication.
SimStorage
Simulated persistent storage with WAL and fault injection.
SimWal
Simulated Write-Ahead Log.
StorageFaultConfig
Runtime fault configuration for storage.
WalEntry
A WAL entry with sequence number and CRC.

Enums§

WalOp
A WAL operation.