Benchmarks

These measurements describe a single K3s node. The reference runs used eight fixed workers in an isolated Docker Compose cluster. The throughput test processed 10,000 hash jobs. The recovery test ran 128 paced compression jobs and exited a worker while it had unfinished work.

Throughput and queue latency

hash · medium input · 8 workers · 77.45 s elapsed

Local Docker K3s cluster, 8 logical CPUs and 15.5 GiB host memory visible to Docker · Build 93d82a959c62

Throughput
129.1 jobs/s
Jobs completed
10000 / 10000
Queue-to-claim p50
46591.89 ms
Queue-to-claim p95
74565.06 ms
Queue-to-claim p99
76625.45 ms
Crash recovery
—
Failures
0
Unfinished
0
Duplicate commits
0

Worker crash recovery

compression · medium input · 8 workers · 10.78 s elapsed

Local Docker K3s cluster, 8 logical CPUs and 15.5 GiB host memory visible to Docker · Build 93d82a959c62

Throughput
11.9 jobs/s
Jobs completed
128 / 128
Queue-to-claim p50
3912.77 ms
Queue-to-claim p95
6867.07 ms
Queue-to-claim p99
8748.26 ms
Crash recovery
5357.06 ms
Failures
0
Unfinished
0
Duplicate commits
0
Queue-to-claim
Time from job submission to its first worker claim. p95 is the time that 95% of claims met or beat.
Crash recovery
Time from sending the crash command to the first reclaim of an interrupted job.
Job accounting
Each run reports failures, unfinished jobs, and duplicate result commits.

Worker scaling

Each fixed-size pool processed 1,500 medium SHA-256 jobs without pacing or autoscaling. CPU is the average per worker as a percentage of one logical core, calculated from container CPU time over the run and the surrounding samples. Each worker was capped at half a core. Container counters update independently, so CPU averages include some time outside the workload. Each row is one measured run.

Local Docker K3s, 8 logical CPUs, 15.5 GiB memory · Build 4d4e432ecb17

WorkersJobs/sp95 queue waitMean worker CPUCompletedOutcome
161.223.32 s7.7%1500 / 1500Passed
2130.110.86 s1.4%1500 / 1500Passed
4173.48.25 s2.1%1500 / 1500Passed
8174.08.06 s1.2%1500 / 1500Passed

Recovery tests

The cluster tests used one node, four shared workers, and 192 paced graph jobs per run. The duplicate-completion check ran separately against PostgreSQL in the integration suite.

Scheduler pod restart

Recreated the single Go scheduler pod while jobs were running.

Completed
192 / 192
Failed / unfinished
0 / 0
Duplicate commits
0
Expired attempts
0
Failed status polls
2

The status endpoint briefly refused connections. The replacement scheduler resumed the run from PostgreSQL.

Two worker containers stopped

Stopped two active worker containers together with zero grace period.

Completed
192 / 192
Failed / unfinished
0 / 0
Duplicate commits
0
Expired attempts
8
Failed status polls
0

Eight attempts expired. The remaining or restarted workers reclaimed the unfinished jobs.

PostgreSQL interruption

Stopped the PostgreSQL pod, waited five seconds after its removal, then restored it with the same data volume.

Completed
192 / 192
Failed / unfinished
0 / 0
Duplicate commits
0
Expired attempts
16
Failed status polls
3

Status requests failed during the interruption. Sixteen leases expired, and interrupted jobs were reclaimed after PostgreSQL returned.

Stale and duplicate completions

Reclaimed a job under a new attempt epoch, tried a completion from the expired worker, and sent the accepted completion twice.

Completed
12 / 12
Failed / unfinished
0 / 0
Duplicate commits
0
Expired attempts
1

The expired completion was rejected. The current worker’s repeat request was acknowledged and PostgreSQL kept one committed result.