Sign In
Back to Visual Labs
Lab 16 · Chaos Engineering Sandbox
Deterministic Simulation

Multi-Node Distributed Cluster Simulator

Experience the realities of distributed consensus and networking in real time. Inject node crashes, trigger split-brain network partitions, adjust packet flight latency, and watch majority quorums maintain safety invariants.

👑Node 1LEADER (T:1)N2Node 2T:1 [Idx:1]N3Node 3T:1 [Idx:1]N4Node 4T:1 [Idx:1]N5Node 5T:1 [Idx:1]
Chaos Injections
Interactive

Tip: Kill the active leader or split the network to watch quorum re-election live.

Latency & Drop Rate
Flight Latency:300 ms
Simulated Packet Loss:0%
Client Write Injector

Sends write command directly to cluster leader and initiates two-phase log replication.

Live Cluster Event Stream
1 events logged
[19:12:27]Node 1 initialized as Cluster Leader for Term 1
1

Leader Crash & Failover

Click Kill Leader in the control deck. Notice how the surviving follower nodes detect the absence of incoming heartbeats, expire their randomized election timeouts, increment their term, and elect a new leader.

Verifies Raft Heartbeat Invariant
2

Split-Brain Partition Isolation

Click Split Network (2 vs 3). The 5-node cluster divides into a minority partition (2 nodes) and majority partition (3 nodes). Inject a write: notice the majority commits, while the minority rejects writes.

Verifies Strict Majority Quorum
3

Packet Loss & Jitter Chaos

Dial the Simulated Packet Loss slider to 30% and set flight latency to 800ms. Observe how in-flight RPC drops force election campaigns to retry with staggered timers until quorum agreement succeeds.

Verifies Asynchronous Network Tolerance
Mechanism Reference · Distributed AI InfrastructureInteractive Browser Simulator

How Multi-Node Distributed Cluster Simulator Works

Multi-node AI inference and training clusters balance intra-node NVLink tensor parallelism against inter-node RDMA communication and replica load balancing. Modeling queue depth, KV-cache affinity, and link bandwidth reveals how straggler nodes, cross-rack AllReduce stalls, and unsharded hot keys dominate p99 cluster latency.

Frequently Asked Engineering Questions

When should you scale with tensor parallelism versus data/replica parallelism?
Tensor parallelism reduces single-request latency and splits model weights across fast NVLink-connected GPUs within a node, while independent replicas scale total throughput linearly without cross-node synchronization overhead.
Why do cross-node collective operations hurt tail latency?
AllReduce barriers synchronize at the speed of the slowest participating rank, so network congestion or noisy-neighbor PCIe contention delays every token step across the entire pipeline.
Why combine prefix-aware routing with load-bounded spillovers?
Consistent prefix routing maximizes KV-cache hits during steady traffic, while bounded spillover sheds excess requests to cooler replicas before a viral prompt saturates a single GPU queue.
Master This Simulator In
Free · Verifiable Credential

FS-101Model Serving and Inference

Understand inference engines memory scheduling batching routing scaling distributed execution lifecycle controls observability and economics.

19 concepts~23h self-paced
Start Free Course
Weekly Engineering Dispatch

Get the weekly systems teardown

One technical note per week covering inference bottlenecks, retrieval harnesses, and commit-pinned teardowns.