Your database’s documentation says “linearizable.” Your Raft implementation passed 200 unit tests. Neither of those facts means anything until somebody partitions the network mid-write and replays the resulting history through a checker.

That is the entire job of the three tools below — and picking the wrong one wastes weeks. Jepsen (7,610 stars, last push 2026-11-29, v0.3.16) is the heavyweight that tests real clusters over SSH with a nemesis injecting partitions, clock skew and process kills. Maelstrom (3,777 stars, v0.2.4) is a single-binary workbench that teaches you protocol design by running your Raft or broadcast implementation inside a simulated cluster with a deliberately hostile network. Knossos (429 stars, last push 2026-11-24) is not a test runner at all — it is the checker library Jepsen itself links against, and it can be pointed at any history file you already have.

TL;DR

  • You have a production database cluster and a claim to disprove → Jepsen. Nothing else injects faults across real nodes with real clients.
  • You are writing a consensus or replication protocol and want fast feedback → Maelstrom. Ten minutes from download to a failing test with a readable history.
  • You have a history file (EDN, JSON or Jepsen store output) and want to know if it is linearizable → Knossos, directly, without spinning up a cluster.
  • You want one tool for all three → Jepsen plus Knossos as its checker; skip Maelstrom once your protocol ships.

Comparison table

DimensionJepsenMaelstromKnossos
Stars / last push7,610 / 2026-11-293,777 / 2026-07-10429 / 2026-11-24
Latest releasev0.3.16v0.2.4untagged (library)
LanguageClojure (JVM)Clojure (JVM) + your binary in any languageClojure (JVM)
LicenseEPL-1.0EPL-1.0EPL-1.0
What it testsA real, multi-node system over SSH or DockerA protocol binary you write, in a simulated clusterA recorded history, offline
Fault injectionYes — nemesis: partitions, kills, pauses, clock skewYes — simulated partitions and crashesNone (pure checker)
Client modelN concurrent processes, pluggable clientN single-threaded nodes, JSON-over-stdio protocolN/A
Time to first failing testHalf a day (nodes, SSH, teardown)Under 15 minutesMinutes, if you have a history
OutputEDN history, plots, HTML report in store/results.edn, latency plots, SVG timelinesPass/fail plus counterexample
Best forVendors, SRE teams, pre-migration validationProtocol authors, interview prep, teachingOffline analysis, CI replay of recorded runs

Decision matrix

Your situationUseWhy
Evaluating Postgres HA, Kafka, etcd or a managed DB’s consistency claimJepsenOnly realistic fault injection across real nodes
Writing Raft, CRDT or gossip code and need a correctness loopMaelstromSimulated cluster, millisecond-scale iteration, guided workload suite
Suspect a past incident was a consistency violation and you kept the logsKnossosAnalyzes an existing history; no cluster required
Teaching consistency models to a teamMaelstrom first, Knossos secondVisible messages, then the checker’s reasoning
CI gate on every mergeJepsen with a short --time-limit and one nemesisReproducible, scriptable, exits non-zero on failure

Jepsen: the reference implementation of “prove it”

Jepsen’s model is simple to describe and brutal to run. A test is a Clojure program: it boots nodes, starts N client processes that generate operations against your system, runs a nemesis that injects faults on a schedule, records every invocation and completion into a history, tears everything down, and hands the history to a checker.

A minimal test, using the real namespaces shipped in jepsen-io/jepsen, looks like this:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
(ns jepsen.etcdemo
  (:require [jepsen [checker :as checker]
                    [cli :as cli]
                    [generator :as gen]
                    [nemesis :as nemesis]
                    [tests :as tests]]
            [jepsen.etcdemo.client :as client]
            [jepsen.etcdemo.db :as db]
            [knossos.model :as model]))

(defn etcd-test
  [_opts]
  (merge tests/noop-test
         {:name      "etcd"
          :os        db/os
          :db        (db/db)
          :client    (client/client)
          :nemesis   (nemesis/partition-random-halves)
          :generator (gen/phases
                       (->> (gen/mix [gen/read gen/write])
                            (gen/stagger 1/10)
                            (gen/nemesis
                             (cycle [(gen/sleep 10)
                                     {:type :info, :f :start}
                                     (gen/sleep 10)
                                     {:type :info, :f :stop}]))
                            (gen/time-limit 60)))
          :checker   (checker/compose
                       {:perf   (checker/perf)
                        :linear (checker/linearizable
                                  {:model (model/cas-register)})})}))

Run it with the bundled CLI:

1
2
3
lein run test --nodes-file ~/nodes --username root \
  --time-limit 60 --concurrency 20 \
  --nemesis partition-random-halves

Results land in store/latest/: history.edn (every operation with :invoke/:ok/:info/:fail and timestamps), results.edn, and plots. A failing run gives you a concrete interleaving — “client 7 read nil after client 3 acknowledged writing 5” — which is a bug report your vendor cannot hand-wave away.

Where it hurts: Jepsen assumes it may destroy and rebuild your cluster. Nodes must be disposable, SSH keys must work, and teardown must be idempotent. Teams regularly lose a day to a test that “passes” because the DB never actually restarted between runs.

Maelstrom: protocol design with a hostile network built in

Maelstrom inverts the workflow. Instead of attacking your system from outside, you implement a tiny node binary that speaks JSON over stdout/stdin, and Maelstrom runs a whole simulated cluster of those nodes in one process. It then applies workloads — echo, broadcast, g-counter, pn-counter, lin-kv, txn-list-append — and checks the resulting history against the workload’s model.

Download the release tarball, then run a linearizable key-value workload against your binary:

1
2
3
4
5
6
7
# five nodes, ten in-flight requests, twenty seconds, partitions enabled
./maelstrom test -w lin-kv \
  --bin ./target/raft \
  --node-count 5 \
  --concurrency 10 \
  --time-limit 20 \
  --rate 100

Each node receives messages like:

1
2
3
4
5
6
7
8
{"src": "n1", "dest": "n2",
 "body": {"type": "append_entries",
          "term": 4,
          "leader_id": "n1",
          "prev_log_index": 12,
          "entries": [{"term": 4, "kind": "append", "key": "x", "value": 7}],
          "leader_commit": 11,
          "msg_id": 91}}

and must reply on stdout. When a request takes too long, Maelstrom checks in with a read message — if your node blocks on a mutex during a partition, you learn that immediately, because the checker flags operations that never completed inside the simulated window.

Where it hurts: the simulation is a simplification. Every node is single-threaded from Maelstrom’s perspective, there is no disk, and clock jumps are coarse. A protocol that passes every Maelstrom workload can still deadlock on real fsync latency. Treat Maelstrom as a fast correctness loop, not a shipping certificate.

Knossos: the checker underneath everything

Knossos is the reason Jepsen can say “not linearizable” with a straight face. It implements models (cas-register, set, counter, queue) and search-based checkers that read a history and either find a valid sequential explanation or a counterexample.

You can call it directly on a history file you already recorded:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
(require '[knossos.core :as knossos]
         '[knossos.model :as model]
         '[knossos.op :as op])

(def history
  (with-open [r (java.io.PushbackReader. (clojure.java.io/reader "history.edn"))]
    (doall (take-while some? (repeatedly #(read {:eof nil} r))))))

(knossos/analysis
  {:model   (model/cas-register)
   :history history
   :algorithm :linear})

The output is either {:valid? true} or a counterexample map naming the operations that cannot be ordered consistently. That map is the artifact you paste into an incident review.

Where it hurts: history analysis is expensive. Large histories (hundreds of thousands of operations) can exhaust heap; reduce concurrency or split the history by time window before analyzing. And the model must match your intended semantics — checking a set history against cas-register produces confident nonsense.

Pitfalls that produce wrong verdicts

  1. Choosing the model before reading the spec. A last-writer-wins store is not a cas-register. Verify against the strongest model the system actually claims, and record which model you used.
  2. Trusting a green run with a weak nemesis. Jepsen with no :nemesis is a load test. If faults never overlap with writes, you have tested nothing.
  3. Ignoring clock skew. nemesis/clock-scrambler exists because real NTP drift breaks lease-based systems. If your design depends on time, scramble it.
  4. Non-idempotent teardown. A Jepsen test that reuses a dirty cluster will report stale successes. Rebuild nodes, wipe volumes.
  5. Maelstrom nodes that fork. If your --bin spawns a child process and returns, Maelstrom sees a dead node. Exec the real process or handle termination explicitly.
  6. CI timeouts. A ten-minute --time-limit with 50 clients is a nightly job, not a per-commit gate. Shrink concurrency and fault windows for CI, and keep the long run on a schedule.

Why self-host your verification harness

Managed database vendors publish availability dashboards, not histories. The only artifact that settles an argument about correctness is a recorded history plus a checker — and both are free software you can run on hardware you already own. A single 8-core box with Docker and five containers will happily run Jepsen tests against a candidate cluster, and the same box replays those histories through Knossos months later when an incident reopens the question.

If you are choosing the consensus layer that these tools will attack, our Raft library comparison covers the trade-offs between Hashicorp Raft, Dragonboat, braft and raft-rs. For fault injection aimed at HTTP dependencies rather than databases, the Toxiproxy, Pumba and Chaos Monkey guide shows the lighter-weight options, and ChaosBlade vs Pumba vs Toxiproxy is the container-level view.

FAQ

Is Jepsen still maintained in 2026? Yes. The repository was pushed on 2026-11-29 and the current release line is v0.3.16. Jepsen remains the tool vendors cite when they claim a consistency guarantee.

Do I need a physical cluster for Jepsen? No, but you need disposable nodes. Docker containers with SSH enabled work well and are the common choice for local runs; the only hard requirement is that Jepsen can rebuild a node from scratch between tests.

Can Maelstrom test my existing database? Not directly. Maelstrom talks to a node binary over JSON on stdio, so it fits protocols you implement yourself. Use Jepsen for systems you cannot recompile.

What is the difference between Jepsen and Knossos? Jepsen is the harness: it provisions nodes, generates operations, injects faults and stores histories. Knossos is the analysis library that decides whether a history satisfies a model. Jepsen depends on Knossos; Knossos runs fine on its own.

How long does a useful Jepsen run take? Budget 30–60 seconds of operations per nemesis phase, so a meaningful run is 5–15 minutes including setup and teardown. Anything under two minutes rarely overlaps a partition with enough writes to be informative.

Can Knossos check a non-linearizable model, like sequential consistency? Yes. The checker is parameterized by the model, so you can verify weaker guarantees such as sequential consistency or read-your-writes if that is what the system promises. Pick the model deliberately and document it next to the test.



💰 想测试你的市场判断力?我用 Polymarket 做预测市场交易——这是全球最大的预测市场平台,从大选结果到技术监管时间线,什么都可以押注。和赌博不同,这是真正的信息市场:你懂的信息越多,胜率越高。我靠预测技术相关事件的走向已经赚了不少。用我的邀请链接注册:Polymarket.com