Knotrel v1.2.0 Release Notes — Faster Connectivity Queries
Status: released 2026-11-29. connected queries of the default
compact-bfs engine are much faster on most graphs. The engines’ ID maps
resist pathological node IDs. An experimental, opt-in bound on concurrent
query execution is added. The performance qualification of candidate
96c0689 against v1.1.0 is accepted with exceptions; the release ships
the release code of that candidate (see
Performance qualification).
Scope
The 1.x contract of v1.0.0 is unchanged
(compatibility). Lockstep: knotrel-core,
knotrel-server and the console share the version 1.2.0 and one tag,
v1.2.0.
What is new since v1.1.0
Bidirectional connected search in compact-bfs
(#209,
#211,
#215).
Graph::connectedsearches from both endpoints and stops when the two searches meet, or when one side runs out of its component. Answers, errors and theO(V + E)worst case are unchanged.- Each round expands the side with fewer pending incidences, so a hub is expanded only when it is the cheaper side. On a path-like graph the search stays one-sided and does v1.1.0’s work. The first rounds are small (4 entries, doubling up to 1,024), so a query between two small components finishes quickly.
- Queues and marks live in per-thread scratch reused across queries, so a query no longer allocates and zeroes its buffers. A thread keeps at most 256 KiB between queries: 128 KiB of two-bit marks and two 64 KiB queues. Larger buffers are released after the query. The qualification measured at most 72.4 KiB kept per thread and at most 3 allocations per thread after warm-up.
- Covered by differential tests: all pairs, random histories, and hubs wider than one round.
ID maps that resist pathological node IDs (#210, #215).
- In v1.1.0 the engines mapped external IDs with an identity hash. IDs that
share their low bits collide in hash buckets, and IDs that share their high
bits collide in the control tag. Shard-prefixed or timestamp-like IDs, or a
hostile client, could make every operation up to three orders of magnitude
slower. On a 20,000-vertex path, for example, a lookup with IDs
i << 16took about 6.1 µs instead of 7 ns. Graph(compact-bfs) now uses a folding hasher that keeps sequential IDs in table order and spreads shifted ones. The ETT, HDT and cluster-forest engines use FxHash. Thenohash-hasherdependency is gone.
Bounded concurrent query execution, experimental and opt-in (B2) (#207, design).
KNOTREL_MAX_CONCURRENT_QUERIES=K(unset by default) lets at mostKall-query requests (/v1/batch,/v1/operations) run at once. Further admitted queries wait, keeping their admission permit, withinKNOTREL_REQUEST_TIMEOUT_MS. Writers, feeder jobs, stats and inspection never wait on it. Admission and503 busyare unchanged.- Library:
ServerConfig::with_max_concurrent_queriesandServerConfig::max_concurrent_queries(experimental). Metrics, registered only when the setting is present:knotrel_query_limiter_wait_secondsandknotrel_query_limiter_waiting. - The default (unset) is the recommended configuration for the qualified
load. With
K=4, Q3 fails at 16 query clients (see below). Use cases, status and costs: bounded query concurrency.
Documentation. Benchmark documentation now lives only in knotrel-benchmarks, and every campaign has a page on the performance site (#217). The old paths here are short pages with the new address.
Compatibility
No breaking change: v1.2.0 follows the 1.x contract of v1.0.0
(compatibility policy). The additions are the
experimental KNOTREL_MAX_CONCURRENT_QUERIES setting, its two
ServerConfig methods and its two metrics. Query answers, errors and
complexity bounds are unchanged. Lockstep: knotrel-core, knotrel-server
and the console are 1.2.0.
Console and servers (mandatory check)
The console’s browser tests (Chromium and Firefox; npm run build, then
npx playwright test with KNOTREL_SERVER_BIN) were run on 2026-11-29 on the
release branch, against two servers:
| Server | Result |
|---|---|
Release branch, version 1.2.0 in knotrel_build_info (cargo build --release -p knotrel-server --locked) |
28 of 28 |
Published v1.1.0, release asset knotrel-server-v1.1.0-aarch64-apple-darwin (checksum verified) |
28 of 28 |
knotrel.supportedServer of the console is >=1.1.0 <1.3.0: servers 1.1.x
and 1.2.x. Compatibility change: console 1.1 declared >=1.0.0 <1.2.0;
server 1.0 was not tested again with console 1.2, so under the compatibility
policy (section 5: never wider than tested) it is outside the 1.2 range.
Console 1.1 keeps its declared support for server 1.0.
Performance qualification
Qualification of candidate 96c0689 against v1.1.0: accepted with
exceptions (maintainer decision of 2026-11-29 on
#182).
Every class stays as measured; nothing is converted into PASS. The campaign
ran on one Apple M3 host on 2026-11-29, with no swap activity, on AC power.
Plan, reports and evidence:
v1.2.0 campaign page.
Every verdict, with its interval:
1.2.0 page of the performance site.
Summary for users:
performance by version.
Deciding items on 96c0689: 115 PASS, no REGRESSION, one FAIL, and 18
items without a PASS, each accepted with the disposition below.
What improved against v1.1.0:
- Core
connectedqueries at scale: 97 % to 99.8 % less time on random graphs of degree 4 and 16, from 10⁴ to 10⁶ vertices (K2). - Server tail latency under concurrent reads: p99 from 95.8 ms to 1.43 ms with 16 clients, and from 314.9 ms to 6.14 ms with 64 (M2, medians). Server RSS is unchanged or lower.
- Small-component queries next to a large component: p99 42–52 % lower at 1 and 16 threads (K3 S2).
- Queries under feeder load: query throughput while the feeder applies changes is about 45 to 47 times v1.1.0’s, with p99 at about 2 % of v1.1.0’s (Q5, default configuration).
- Feeder catch-up under query load, default configuration: 60.2 % of the no-load rate with 16 query clients and 47.7 % with 64, above the Q3 thresholds of 50 % and 25 %. This is the recommended configuration for the qualified load.
What costs more: graph updates at scale take 0 to 6 % more time (K2
update_ns, every interval within the 10 % margin, PASS).
Exceptions, accepted by the maintainer:
- Q3 with
KNOTREL_MAX_CONCURRENT_QUERIES=4: FAIL at 16 query clients: 48.9 % of the no-load rate against the 50 % threshold, on a single observation with no interval. At 64 clients it reaches 52.4 % and passes the 25 % threshold.K=4stays experimental and is not recommended for the qualified load. The observed limit is tracked in #87. - Long single-thread queries: four INCONCLUSIVE results (K3), accepted with
disclosure. Median change of the query latency against v1.1.0, and the
interval, which shows the slowdown still compatible with the data:
- L1 p50, 1 thread: +5.1 %, [+1.9, +12.0] %;
- L2 p50, 1 thread: +5.2 %, [−3.2, +10.9] %;
- L3 p50, 1 thread: +10.3 %, [+1.6, +19.7] %;
- L3 p99, 1 thread: +1.3 %, [−6.1, +29.7] %.
At 16 threads the same workloads are PASS (L1 p50 −18.9 %, L3 p50 −15.0 %).
- TIMER_LIMITED: eleven metrics, accepted with disclosure. Each keeps its
class. The per-operation time is too close to the timer’s resolution for a
class: for nine of them, the measurement limit of 100 µs per aggregate covers
3 % to 39 % of the median, enough to change the class; for the K3 S2 p50
pair, the medians (83 ns on 1.2.0) are within twice the 57.7 ns limit. Their
intervals:
- K1 churn-blocks 10⁴ [−4.6, −2.4] %, churn-blocks 10⁵ [+4.9, +6.9] %, churn-path 10⁴ [−16.6, −15.8] %;
- K3 S2 p50 at 1 and 16 threads (250 ns and 333 ns on v1.1.0, 83 ns on 1.2.0; no interval within the limit);
- K4
compact-workspacerandom [+0.3, +2.9] % and sequential [+0.8, +2.6] %;compact-bfsrandom [−4.7, −3.4] % and sequential [−4.1, −3.2] %;ettrandom [−0.9, +0.8] % and sequential [+0.5, +1.8] %.
- HTTP lifecycle readiness (V1,
compact-bfssmall): INCONCLUSIVE_DISCLOSED, median +4.2 %, interval [−20.7, +24.4] %. The data neither show nor exclude a change above 10 %. - HTTP batch
b1andb256(V1): UNRESOLVED at 24 pairs, PASS at 48 pairs; accepted on the 48-pair PASS. The 24-pair class stays recorded. - Lifecycle cost (B4): all 23 deciding cells PASS. Two descriptive cells
repeat the v1.0.0 disclosures, against their frozen, non-equivalent
reference arms:
import-highsparse 10k REGRESSION, +379 %;opssparse 100k INCONCLUSIVE, +22 %. Their equivalent counterparts PASS. - Hub 10k:
ops-atomicis PASS on the measured trace, with isolation guaranteed to readers that go through the application reference (hub 10k reference design). Hub 10keventsstays unqualified.
Release code. crates/, Cargo.toml, Cargo.lock and
rust-toolchain.toml of the release commit equal 96c0689 apart from the
version bump to 1.2.0 and documentation in the crate READMEs, which the code
does not include.
Release gates
- Performance campaign on
96c0689: attempt 4 (knotrel/knotrel-benchmarks#82) and its K2/B4 supplement (knotrel/knotrel-benchmarks#85). - Release decision on #182: accepted with exceptions, with the dispositions above (2026-11-29).
- Console compatibility: browser tests on the release branch against its own server and the published server v1.1.0, 28 of 28 each (2026-11-29).
- Performance pages: the v1.2.0 entry on the benchmark site and the
v1.2.0 comparison in
history/performance-by-version.md, merged right before the tags (knotrel/knotrel-benchmarks#88). - CI on Linux, macOS and Windows on the release commit
446253a, includingAPI compatibilityandpublic API(#220). - Release dry runs on the release commit:
release.yml(46267318708) andconsole-release.yml(46267341875). - Reproducible build on the release commit against the dry-run
bundle (46267998066): Linux byte-identical; macOS
equivalent after excluding
LC_UUIDand the ad-hoc signature, accepted by the maintainer (record). - Signed tags
v1.2.0on knotrel (446253a) and knotrel-benchmarks (3ecc5d5), with the maintainer’s authorization. - Crates
knotrel-coreandknotrel-server1.2.0 on crates.io, server binaries on the GitHub Releasev1.2.0(46268169629), console image and archive (46276061384), 2026-11-29. - After publication: close #182; #87 stays open for the Q3 limit with
K=4.
The unchecked items are recorded after they happen; this status does not
change. Items checked after the tag are recorded on main; the tagged notes
at v1.2.0 keep the state at the tag.