Skip to content

Add a Raft example tested entirely under simulation - #17

Merged
dhruvl merged 6 commits into
mainfrom
raft-demo
Jul 31, 2026
Merged

Add a Raft example tested entirely under simulation#17
dhruvl merged 6 commits into
mainfrom
raft-demo

Conversation

@dhruvl

@dhruvl dhruvl commented Jul 31, 2026

Copy link
Copy Markdown
Owner

A second demo next to the jobqueue: a teaching-sized Raft — leader election and log replication in plain asyncio on streams, nothing imported from simloop in the system code. Persistence goes through a small storage interface so a node restart is a real process restart that reloads term, vote, and log from its disk.

The suite drives everything through the simulated network: framed one-shot RPCs, unit tests for the voting and log rules, and multi-seed election and replication scenarios with partitions, leader restarts, and rolling restarts. Every safety-critical rule sits behind a flag so later chaos suites can knock each one out and catch the violation it causes.

Safety checks, chaos campaigns, and the ablation table land separately on top of this.

@dhruvl
dhruvl merged commit 483c782 into main Jul 31, 2026
4 checks passed
@dhruvl
dhruvl deleted the raft-demo branch July 31, 2026 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant