Description
Octopii is a distributed systems kernel written in Rust, for building replicated, crash-resistant services. Instead of gluing libraries together, it provides the basic building blocks of such a system, including time, storage, networking and randomness, so the same code can run in production and in deterministic tests. Its core components include Raft consensus, which uses OpenRaft for production and for deterministic simulation. It also has a custom write-ahead log called Walrus, with two-phase commit, dual-topic durability and crash recovery. Networking uses QUIC through the Quinn library, with encrypted, multiplexed connections and connection pooling. A deterministic simulation mode offers controlled time, I/O fault injection and reproducible randomness, and a durability verification suite checks recovery across multiple crash cycles. Features are chosen with feature flags, such as openraft for production and simulation for testing. The docs cover the API, the architecture, custom state machines and P2P file transfers. It suits Rust developers building replicated services who want to test failure behavior rigorously.…
Highlights
- Raft consensus with OpenRaft
- Walrus write-ahead log with crash recovery
- QUIC transport with connection pooling
- Deterministic simulation with fault injection
- Custom state machines and P2P file transfers
Ratings & Reviews
No ratings yet
Be the first to rate Octopii.
People also visit
Octopii FAQ
What is Octopii?
A distributed systems kernel in Rust that provides the primitives for building replicated, fault-tolerant services.
What is the simulation mode for?
It runs the system with controlled time, I/O fault injection and reproducible randomness, so crash behavior can be tested deterministically.
Can I write my own state machine?
Yes. You implement StateMachineTrait to replicate your own logic, and the docs include a custom state machine guide.
How does it protect writes during a crash?
Writes use two-phase commit across dual topics, and on recovery only entries with a commit marker are visible.
What are the best Octopii alternatives?
Popular alternatives to Octopii include Redshirt, Turn RS and Meshbird. See all Octopii alternatives

