Benchmarks
This page is the comprehensive benchmark report for Oxia: full methodology, system configurations, complete results across cluster sizes, and links to the raw data. A condensed subset of these results appears in the Oxia paper; this page is the extended record and is kept up to date as new runs land.
All results were collected with the open-source, service-agnostic benchmark framework , which drives identical workloads against Oxia, ZooKeeper, and etcd using asynchronous clients so that the target systems — not the load generators — are the bottleneck.
November 2026 update. The throughput, scaling, and latency sections were re-measured with Oxia 0.18.0, and a larger-server section was added. The sessions, capacity, and failure-recovery sections are the July 2026 runs with Oxia 0.17 and are marked as such.
Methodology
Two rules govern every comparison on this page:
- Contract-equivalent recipes. Where a system cannot express an operation natively
(e.g., atomic
+Nsequence assignment), we implement the closest contract-equivalent recipe with its native primitives (e.g., ZooKeeper sequential znodes, etcd transactions) and report the extra round-trips alongside the numbers, together with any remaining semantic difference. - Documented limits are measurements. Where a system cannot hold the state or sustain the load at all, we run it to its vendor-documented operational limit and report that boundary as a result, with the configuration disclosed.
Workloads: YCSB, re-implemented
The workload mixes on this page follow YCSB (the Yahoo! Cloud Serving Benchmark, Cooper et al., SoCC 2010) — the de-facto standard suite of key-value workloads against which many databases have published results. The core mixes define the read/update ratio and key distribution: A (50/50, Zipfian), B (95/5, Zipfian), C (read-only, Zipfian), D (read-latest). Using them keeps these numbers comparable with the wider literature.
The Zipfian workloads here use exponent 1.1 over the 1M keys, steeper than YCSB’s default of 0.99: the hottest key receives 12.4% of all operations and the ten hottest keys 33%.
We do not run the original YCSB tool itself. Its driver issues synchronous, thread-per-request operations, which caps the load a worker can generate and makes the client — not the system under test — the bottleneck long before systems like Oxia saturate. Instead, the benchmark framework re-implements the same workload mixes in a purpose-built KV load generator: fully asynchronous clients with bounded per-worker in-flight windows, precise rate pacing for latency runs, pluggable per-system drivers behind one KV interface, exact (HdrHistogram-merged) percentiles across workers, and Kubernetes-orchestrated multi-worker runs. Same operation mixes, delivered at rates that can actually push the servers.
Environment
| Cloud | AWS (us-east-1), Kubernetes (EKS), EC2 c6a-family instances |
| Storage | EBS gp3 volumes (3,000 IOPS / 125 MB/s baseline) |
| Server pods | 2 vCPU / 4 GiB per data server (requests = limits), for every system |
| Volumes per server | 2 × 10 GiB — the write-ahead / transaction log on its own volume, separate from the data volume, for every system |
| Replication factor | 3 (all systems) |
| Cluster sizes | Oxia: 3 / 6 / 12 data servers · ZooKeeper, etcd: 3-node ensembles |
| Load generators | 10 worker pods (2 vCPU / 4 GiB JVMs, generational ZGC), asynchronous clients, up to 10,000 outstanding operations per worker (etcd: 50–500, see below) |
| Dataset | 1M keys, 64-byte values, populated by a sequential load phase before every measured run |
| Workloads | YCSB core: A (50/50 read/update, Zipf), B (95/5, Zipf), C (100% read, Zipf), D (95/5, latest-key distribution) |
| Run procedure (0.18 runs) | Before measuring, the harness waits for Oxia’s shard leadership to settle, then freezes the coordinator’s load balancer so that no shard moves during the run. All workers are released together. |
| Repetitions (0.18 runs) | Oxia insert and YCSB cells are the median of 3–4 runs, and the uniform cells of 2–4 runs with an even leader placement; the ranges are listed with the results. |
In some 6- and 12-server runs the balancer stopped with one server leading three shards and another leading one. For the insert and YCSB workloads, those runs were measured with that placement and are included in the medians; uneven placement did not predict lower throughput there. Uniform reads are different: they load every leader equally, so the server with three leaders becomes the limit (see “Scaling with cluster size” below). The uniform cells therefore use only runs with an even placement, two leaders per server.
Per-system configuration
Full configurations are disclosed so results can be scrutinized and reproduced; the exact
Helm values are in the framework repository under
charts/benchmark-stack/comparison.
| Oxia | v0.18.0 with Java client 0.10.4 for the throughput, scaling, and latency sections; v0.17 for sessions, capacity, and failure recovery. replicationFactor: 3, 2 shards per data server (6 / 12 / 24 shards), WAL fsync before acknowledgment, 2 GiB Pebble read cache. Java client with rate-adaptive read and write batching (bounded per-shard in-flight windows). |
| ZooKeeper | 3.9.3, 3-node ensemble, 2 GiB JVM heap, snapCount 1M, transaction log on a dedicated volume (dataLogDir), snapshot auto-purge enabled. Its throughput numbers are the July 2026 runs; its latency was re-measured in November. |
| etcd | 3.6.1, 3-node cluster, WAL on a dedicated volume, periodic MVCC auto-compaction (5m), default linearizable reads, jetcd 0.8.6 client. etcd rejects writes once overloaded, so its throughput runs use the per-worker in-flight limit that gave the highest failure-free rate among those tried: 75 for inserts, 500 for YCSB A, B, and D, 100 for YCSB C. |
All systems run at equivalent durability: every acknowledged write is fsynced to the write-ahead / transaction log on a majority of replicas before the client sees success.
A correction to the July etcd numbers. The July build of the benchmark tool bundled an older etcd client (jetcd 0.4.1, pulled in through another dependency) in place of the intended 0.8.6. That client limits how many requests it sends at once, which showed up as queueing delay: at 10,000 ops/s the July page reported etcd medians of hundreds of milliseconds, where it now measures 2–12 ms. The etcd throughput and latency numbers below were re-measured with jetcd 0.8.6 (benchmark#45 ). The sessions, capacity, and failure-recovery sections still show the July etcd runs and have not been re-measured.
YCSB throughput
Maximum sustained throughput: no target rate — each of the 10 workers keeps up to 10,000 operations in flight (etcd: see its configuration above) and the achieved rate is measured over a 60-second window per workload (after warm-up), preceded by the sequential load phase. Values are aggregate operations per second across the cluster; every measured window below completed with zero failed operations. Oxia values are medians of 3–4 runs.
| Workload | oxia-3 | oxia-6 | oxia-12 | ZooKeeper | etcd |
|---|---|---|---|---|---|
| Insert (load, 100% writes) | 265k | 517k | 895k | 13.5k | 17.7k |
| YCSB A (50% reads / 50% updates) | 309k | 499k | 438k | 35.8k | 31.3k |
| YCSB B (95% reads) | 953k | 1.21M | 1.30M | 104k | 52.6k |
| YCSB C (100% reads) | 1.69M | 1.97M | 2.01M | 78k | 52.5k |
| YCSB D (95% reads, latest) | 1.03M | 1.05M | 1.30M | 104k | 54.4k |
Range across the Oxia runs (lowest – highest):
| Workload | oxia-3 (4 runs) | oxia-6 (3 runs) | oxia-12 (4 runs) |
|---|---|---|---|
| Insert | 253k – 274k | 513k – 544k | 862k – 960k |
| YCSB A | 277k – 358k | 420k – 502k | 383k – 568k |
| YCSB B | 893k – 1.02M | 1.08M – 1.33M | 1.26M – 1.41M |
| YCSB C | 1.50M – 1.83M | 1.85M – 2.27M | 1.87M – 2.24M |
| YCSB D | 870k – 1.13M | 1.02M – 1.07M | 1.09M – 1.47M |
Notes on reading the numbers:
- Writes scale near-linearly with cluster size: the insert workload grows 265k → 517k → 895k ops/s from 3 → 6 → 12 servers (3.4×), because sequential inserts use every shard. ZooKeeper and etcd are single consensus groups: adding servers cannot add write throughput, and both sit at 13–18k inserts/s with the same per-node resources.
- Hot-key workloads stop scaling, and that is the workload, not the load generators. With the hottest key alone taking 12.4% of operations, throughput is bounded by the few shards that hold the hottest keys: YCSB C goes 1.69M → 1.97M → 2.01M, and YCSB A’s 6- and 12-server medians (499k and 438k) lie inside each other’s run-to-run range. The same ten workers drive 2.5M uniform reads/s in the next section.
- Hot-key results vary from run to run, typically by ±5–13% around the median and by up to ±21% (YCSB A on 12 servers), depending on which shards the hottest keys land on. That is why these cells are medians, with the ranges above.
- etcd’s load phase. In the runs behind etcd’s YCSB numbers, etcd rejected part of the load-phase inserts under overload (about 1.0M of 3.1M attempts succeeded before YCSB A, B, and D; 1.47M of 1.8M before YCSB C), so some keys were absent while the measured workloads ran. Its insert row comes from a separate run at 75 in flight per worker, with no rejected operations (16.7k at 50 in flight; at 100, etcd rejected operations).
- etcd reads are linearizable by default and pay a quorum round-trip; ZooKeeper serves reads locally from each node. Both behaviors are kept as shipped.
Scaling with cluster size
Under a uniform key distribution — operations spread evenly across the whole key space, and therefore across every shard — both write and read throughput grow with the number of servers. This run uses two single-operation, max-throughput workloads (100% writes and 100% reads, uniform over the 1M-key space) on the same 3 / 6 / 12-server clusters (2 vCPU / 4 GiB pods, 10 workers).
Writes scale near-linearly by construction: every key maps to a shard, so more shards means more write capacity.
Reads scale the same way — when the load is spread across shards. The YCSB read workloads earlier use a Zipf distribution, where a few hot keys take most of the traffic; those reads concentrate on a handful of shards and stop scaling (YCSB C gains 2% from 6 to 12 servers). That is a property of the workload, not of Oxia: the uniform read line keeps climbing while the Zipf line (YCSB C) plateaus.
| Cluster | Write-only (uniform) | Read-only (uniform) | Read-only (Zipf, YCSB C) |
|---|---|---|---|
| 3 servers | 131k | 1.05M | 1.69M |
| 6 servers | 276k | 1.98M | 1.97M |
| 12 servers | 493k | 2.51M | 2.01M |
- Uniform writes scale 3.8× from 3 to 12 servers (131k → 276k → 493k) and uniform reads 2.4× (1.05M → 1.98M → 2.51M), while the Zipf read workload plateaus (1.69M → 1.97M → 2.01M): adding servers adds capacity, but a hot-key workload can only use the shards its hot keys land on.
- Uniform reads start lower than Zipf — Zipf re-reads a small hot set that stays in cache, whereas uniform touches the whole dataset — but only the uniform curve keeps climbing: it draws level with Zipf at 6 servers and overtakes it at 12.
- Uniform reads depend on leader placement. With one server leading three shards and another leading one, uniform reads were lower: 1.34M and 1.44M on 6 servers, and 2.37M on 12. Those three runs are left out of the table. Their write rates matched the other runs (273k and 278k on 6 servers, 497k on 12).
- The 3-server read value is the least certain: its four runs span 862k to 1.13M, so treat it, and the read multiplier that depends on it, as indicative.
Range across the uniform runs (lowest – highest), even leader placement only:
| Cluster | Runs | Write-only (uniform) | Read-only (uniform) |
|---|---|---|---|
| 3 servers | 4 | 126k – 133k | 862k – 1.13M |
| 6 servers | 3 | 276k – 279k | 1.78M – 1.98M |
| 12 servers | 2 | 485k – 500k | 2.51M – 2.51M |
Larger servers
The runs above cap every server at 2 vCPU. To see how each system uses a bigger machine, the same YCSB workloads ran on 3 servers with 8 vCPU / 16 GiB each, driven by 16 workers. Oxia runs with 6 shards, as on the small servers, and with 24 shards; ZooKeeper runs with an 8 GiB heap. Oxia values are medians of 3 runs; ZooKeeper is a single run.
| Workload | Oxia, 6 shards | Oxia, 24 shards | ZooKeeper |
|---|---|---|---|
| Insert (load, 100% writes) | 575k | 554k | 30.6k |
| YCSB A (50% reads / 50% updates) | 669k | 1.06M | 102k |
| YCSB B (95% reads) | 3.69M | 3.43M | 244k |
| YCSB C (100% reads) | 5.26M | 4.21M | 227k |
| YCSB D (95% reads, latest) | 3.90M | 3.52M | 246k |
Range across the three Oxia runs (lowest – highest):
| Workload | Oxia, 6 shards | Oxia, 24 shards |
|---|---|---|
| Insert | 543k – 581k | 549k – 572k |
| YCSB A | 640k – 728k | 1.00M – 1.11M |
| YCSB B | 3.44M – 4.06M | 3.23M – 3.72M |
| YCSB C | 4.32M – 5.47M | 4.01M – 4.94M |
| YCSB D | 3.86M – 4.06M | 3.28M – 3.67M |
- Oxia uses the extra cores. Against the same three servers at 2 vCPU, the 6-shard configuration gains 2.2× on inserts and on YCSB A, and 3.1–3.9× on the read-heavy mixes.
- Shard count is a tuning knob. With 24 shards the write-heavy mix (YCSB A) reaches 1.06M ops/s against 669k with 6, because each shard is an independent write pipeline. The read-heavy mixes are 7–20% lower with 24 shards.
- etcd is not reported on this footprint. Its only run rejected millions of operations under overload; it needs a rerun with a bounded in-flight limit, as in the 2-vCPU runs.
YCSB latency
Latency at a fixed, non-saturating aggregate rate of 10,000 ops/s (two workers at 5,000 ops/s each), measured for 3 minutes per workload after 30 seconds of warm-up. Percentiles are exact: HdrHistogram, merged across workers. Axes are logarithmic; lower is better. The Oxia cluster is 3 servers (same 2 vCPU / 4 GiB pods as above).
YCSB A — 50% reads / 50% updates
YCSB B — 95% reads / 5% updates
YCSB C — 100% reads
YCSB D — 95% reads / 5% updates, latest-key distribution
| Workload | System | write p50 | write p99 | write p99.9 | read p50 | read p99 | read p99.9 |
|---|---|---|---|---|---|---|---|
| A | Oxia | 3.7 ms | 9.0 ms | 11.5 ms | 0.47 ms | 1.2 ms | 2.4 ms |
| A | ZooKeeper | 3.4 ms | 6.7 ms | 53.8 ms | 2.8 ms | 6.3 ms | 53.5 ms |
| A | etcd | 8.6 ms | 151 ms | 219 ms | 12.2 ms | 176 ms | 271 ms |
| B | Oxia | 2.6 ms | 7.0 ms | 7.9 ms | 0.41 ms | 0.61 ms | 1.2 ms |
| B | ZooKeeper | 2.0 ms | 4.3 ms | 8.3 ms | 0.39 ms | 3.3 ms | 4.8 ms |
| B | etcd | 3.3 ms | 90 ms | 154 ms | 3.3 ms | 101 ms | 174 ms |
| C | Oxia | — | — | — | 0.40 ms | 0.59 ms | 0.90 ms |
| C | ZooKeeper | — | — | — | 0.33 ms | 0.49 ms | 0.74 ms |
| C | etcd | — | — | — | 1.7 ms | 69 ms | 91 ms |
| D | Oxia | 2.6 ms | 7.0 ms | 7.7 ms | 0.39 ms | 0.64 ms | 1.2 ms |
| D | ZooKeeper | 2.0 ms | 4.3 ms | 4.8 ms | 0.39 ms | 3.1 ms | 4.2 ms |
| D | etcd | 3.4 ms | 85 ms | 143 ms | 3.2 ms | 92 ms | 166 ms |
Notes:
- Oxia keeps sub-millisecond read p50 in every workload (0.39–0.47 ms), including the write-heavy mix (A) — reads and writes ride independent paths, so a 5,000 writes/s stream does not queue the reads. ZooKeeper matches Oxia on pure reads (C) but its reads degrade ~8× under the mixed workload (0.33 ms → 2.8 ms), where reads serialize behind the commit pipeline.
- Quorum writes cost single-digit milliseconds on both Oxia (2.6–3.7 ms p50) and ZooKeeper (2.0–3.4 ms p50). ZooKeeper’s dedicated transaction-log device gives it the edge at p50/p99; Oxia holds the tighter p99.9 under the write-heavy mix (11.5 ms against 53.8 ms).
- etcd holds this rate with medians of 2–12 ms, a third of its YCSB A ceiling (31k ops/s), but its p99 is 69–176 ms in every workload — consistent with its linearizable-read round-trips. The July page showed etcd in deep queueing here; that was the client issue described under Per-system configuration.
Coordination primitives
Measured in July 2026 with Oxia 0.17; not re-run for 0.18.
These benchmarks exercise the coordination primitives directly.
Sessions and ephemerals
Sessions are directly comparable across all three systems: Oxia sessions with ephemeral keys, ZooKeeper sessions with ephemeral znodes, etcd leases with lease-attached keys. Two experiments, identical session parameters everywhere (10 s timeout, 1 ephemeral of 16 B per session, 10 worker pods):
Capacity — how many live sessions can the cluster hold before a foreground workload suffers? Each system runs a fixed-rate YCSB-A foreground at an operating point it comfortably sustains (Oxia 100k ops/s, ZooKeeper 18k, etcd 12k — scaled to each system’s own saturation), while the live-session count is swept upward. The bars show the largest session count each system sustained with ≤1% foreground degradation and no failed operations; the 6- and 12-node Oxia bars are the scaling runs (shard count held at 6, fixed build — see footnote ² and the scaling table below).
| Oxia | ZooKeeper | etcd | |
|---|---|---|---|
| Sessions held with ≤1% throughput loss | 100,000 | 25,000¹ | 30,000 |
| Foreground p99 at that count | 2.4 s (19×) | 46 ms (6×) | 741 ms (35×) |
| Where it ends | 200k → server OOM (4 GiB)² | client-side cap¹ | 60k → 4.8% loss, 7.6k failed ops |
| Client cost per 10k sessions | ~0 threads | 20,000 threads, ~340 MB heap | ~0 threads |
¹ A ZooKeeper session is a TCP connection with two client threads: 10k sessions cost a
client 20k threads, so the sweep stops at 2,500 sessions per worker (25k cluster-wide) —
the practical client-side ceiling, with maxClientCnxns=0 already raised on the servers.
Oxia and etcd multiplex sessions over existing connections; holding 100k of them costs
the clients nothing measurable.
² A follow-up run probed 200k and 300k directly: the servers OOMed during the 200k ramp, so the 4 GiB ceiling sits between the clean 100k point and 200k — roughly 15–20 KB of server-side state per session on the build measured above. Profiling traced this to a per-session goroutine + timer in the session manager (oxia#1235 ); a fixed build brings the steady-state cost under 1 KB per session (holding 100k sessions costs ~90 MB per server). The residual limit on that build is a transient allocation spike while sessions are being established, still tracked in the same issue — the table above keeps the numbers for the build the rest of this page was measured with.
Sessions scale with the cluster. Session state lives on shard leaders, so adding servers spreads it. Re-running the sweep on the fixed build with the shard count held at 6 while growing the cluster (same 4 GiB pods, same 10-worker foreground):
| Cluster (6 shards) | Leaders per server | Live sessions measured | Foreground p99 at top rung |
|---|---|---|---|
| 3 servers | 2 | 100k | 2.4 s |
| 6 servers | 1–2 | up to 500k | ~1.0–1.3 s |
| 12 servers | 1 | up to 700k | 277 ms |
At 12 servers each leader held ~117k live sessions with the foreground unaffected. The establish-ramp spikes still caused occasional single-server OOMs mid-ramp on the larger clusters; the coordinator re-elected the affected shards (sessions are replicated and survive leader failover) and every steady-state rung then measured cleanly — the capacity above is what the cluster holds, with the ramp issue disclosed.
Churn — how fast can sessions come and go (established with their ephemeral, then gracefully closed) before establish latency knees? No foreground load; the offered create+close rate is swept.
| Oxia | ZooKeeper | etcd | |
|---|---|---|---|
| Sustained churn (cluster-wide) | 1,000/s at 12 ms p99 | 2,000/s at 285 ms p99 | < 70/s |
| Achieved ceiling | ~4,400/s (p99 ~3 s) | ~2,000/s | ~600/s, failures at every rung |
| Why | establish = session create + ephemeral write | establish = TCP connect + session handshake (cheap on servers, heavy on clients) | establish = LeaseGrant + keep-alive stream + put, each a Raft write |
etcd’s establishes go through consensus, so churn competes with every other write: even 70 sessions/s cluster-wide showed a 13% establish-failure rate on this footprint, and higher rungs failed en masse (150k failures at the top rung). ZooKeeper sustains higher raw churn than its capacity story would suggest — its establish path is connection-bound, not consensus-bound — at the price of 40× establish-latency inflation across the sweep. Oxia holds ~12 ms establish p99 through 1k/s and degrades gradually to its ~4.4k/s ceiling.
Capacity: beyond-memory state
Measured in July 2026 with Oxia 0.17; not re-run for 0.18.
Single-RSM coordination services hold the entire dataset in memory on every node; Oxia stores shard state in per-replica LSM trees. This experiment grows the dataset until the baselines reach their documented operational limits — etcd’s recommended storage quota and ZooKeeper’s JVM-heap-resident data tree — and reports sustained throughput as state grows, with each system’s termination point annotated.
The workload is insert-only: 1 KB incompressible (random) values under sequential, distinct keys, with the keyspace partitioned into disjoint slices across the load workers. All three systems run 3-node clusters on the same 2 CPU / 4 GiB pods used throughout this report, and in all three every node stores a full copy of the dataset — so the x-axis below is state held per server. Oxia’s data volumes are sized for the experiment (300 GB, gp3 at 500 MB/s); ZooKeeper and etcd fail long before disk size or speed is a factor.
Each ✕ marks where a system stopped serving writes:
| System | Outcome |
|---|---|
| ZooKeeper | Collapses at ~1.5M keys (~1.6 GB). The heap-resident DataTree fills the 2 GiB heap; throughput decays under GC pressure from ~12.5k to under 100 ops/s before the JVM dies (OutOfMemoryError / crash-loop). |
| etcd | Goes read-only at 2.0 GiB — the default --quota-backend-bytes. All members raise a NOSPACE alarm and every subsequent write is rejected. The quota can be raised, but etcd documents ~8 GB as the operational ceiling for its mmap’d BoltDB backend. |
| Oxia | Keeps serving. 100M keys — 106 GiB per node — 26× the pod’s total RAM — with server memory averaging 2.1 GiB (peak 3.2 GiB: Pebble’s 2 GiB block cache plus transient compaction buffers) and zero restarts. |
Oxia’s throughput on this chart is not free of physics: as the LSM tree deepens, leveled
compaction rewrites each byte roughly once per level, and with the default Pebble
configuration we measured ~7–9× write amplification by the time a node holds
~100 GB. Sustained ingest is therefore bounded by disk throughput ÷ write amplification, which is what produces the gentle taper in the curve (≈50k writes/s at
the start of the fill, ≈43k at 100 GiB) — a disk-bound tradeoff, not a memory
limit. For use cases holding hundreds of gigabytes per node,
this is tunable: more shards per node (shallower trees), larger memtables (fewer, larger
L0 files), and relaxed level size ratios all trade some read amplification or memory for
lower write amplification. The defaults favor the small-to-mid datasets typical of
coordination workloads.
Failure recovery
Measured in July 2026 with Oxia 0.17; not re-run for 0.18.
What happens to a live workload when a leader dies? Each system runs the same fixed-rate
50/50 read/update workload (YCSB A, Zipf, 1M × 64 B keys, 2-second stats
resolution) while its leader is force-killed (kill -9 semantics — no graceful
shutdown). For ZooKeeper and etcd that is the leader of the single consensus group; for
Oxia it is a server that leads 2 of the 6 shards (~⅓ of the keyspace) — the other shards
have their leaders elsewhere. Oxia and ZooKeeper are driven at 10k ops/s; etcd at 5k
ops/s (see the disclosure below).
ZooKeeper’s line is not a rendering artifact: throughput is zero for ~30 seconds — every client stalls through session re-establishment, then the backlog drains in a burst of multi-second latencies. etcd re-elects within its ~1 s Raft election timeout and dips ~30% for a couple of seconds. Oxia never leaves 100%: the four unaffected shards don’t participate in the failure at all, and operations on the two affected shards wait out a sub-second election.
| Oxia (shard leader) | ZooKeeper (ensemble leader) | etcd (Raft leader) | |
|---|---|---|---|
| Blast radius | 2 of 6 shards (~⅓ of keyspace) | entire service | entire service |
| Service outage | none — 10k ops/s flat | ~30 s at 0 ops/s | none — 2 s dip to −30% |
| Failed operations | 16 | ~287,000 | 77 |
| p99 during failover | 432 ms (one 2 s interval) | ∞ during outage; 3.3 s drain burst | 1.25 s (one interval) |
| Back to baseline | ~4 s | ~40 s | ~12 s |
| Detection → new leader | 200–300 ms per shard (coordinator log) | seconds (election) + ~30 s client sessions | ~1 s election timeout |
The Oxia coordinator’s own log puts precise timestamps on the failover pipeline: health probe fails (EOF) → failure detected on both affected shards 1 ms later → ensembles fenced to a new term (+145 ms) → new leaders elected and followers caught up at +200–300 ms. And when the replaced pod rejoined the cluster a minute later, the coordinator handed a leadership back to it: that graceful swap cost a 56 ms p99 blip — about 8× cheaper than the crash failover, which is itself invisible at the service level.
Two fairness notes: etcd runs at 5k ops/s here, half the others’ rate. In the July runs it could not hold 10k for more than a couple of minutes — the async pipeline filled to the outstanding-request cap and measured latency became queue sojourn time (~2 s), which would have buried the failover signal (a saturated 10k run also survived the leader kill, with ~87 failed ops and a dip to 4.5k ops/s). That saturation was most likely the client issue described under Per-system configuration: with the corrected client etcd holds 10k ops/s in the latency section. The lighter load if anything favors etcd, and this experiment has not been re-measured. ZooKeeper’s ~30 s is dominated by default client session behavior (session timeout and reconnect), not ZAB election time — it is the out-of-the-box operator experience with the stock client, configuration disclosed.
Reproducing these results
- Benchmark framework: github.com/oxia-db/benchmark
- Workload definitions:
conf/workload-ycsb-throughput.yaml(max throughput),conf/workload-uniform-throughput.yaml(uniform scaling), andconf/workload-ycsb-latency.yaml(rate-paced latency) - Per-system configurations:
charts/benchmark-stack/comparison - Run procedure (settle, freeze the balancer, release the workers together):
scripts/run-comparison.sh - The harness aggregates per-worker results with exact HdrHistogram merging and emits
summary.json/summary.csv/ an HTML report per run (reportsubcommand).
Last updated: November 2026.