Repository navigation
A release for write concurrency, filtered vector search, traversals
and durability, with one one-way storage change.
Changed
- Breaking: the store format is version 8, the WAL framing version 3 and
the command format version 2. One one-way change, made at the first
start and rewriting nothing: a format 7 store is recorded as format 8, and
new WAL records are written in framing 3. Earlier WAL records and logs in
command format 1 are still read. A store opened by 3.0.16, its WAL, and a
base backup taken by 3.0.16 are refused by earlier releases: take a base
backup before upgrading if you may need to roll back (with 3.0.15, after
starting and stopping the server cleanly), and roll back by restoring it
with the earlier binary, then dropping and declaring the text indexes
again. Followers must run 3.0.16 before their leader does.- The WAL logs each vector once: a vector the commit's operations already
store is left out of the logged command and put back from them when the
record is read, so a vector load writes about half as much WAL. - An aborted commit's outcome and each batch of the retry-receipt sweep
are commits of their own. An abort's own writes never consume an index;
its terminal outcome is recorded as its own commit, reaches the WAL and
replicates. A retry under an aborted commit key reports the abort after
a restart and on a follower that takes over, and an online compaction
is no longer given up when an abort or a sweep lands. The commit index
can therefore advance by more than a client's own commits.
- The WAL logs each vector once: a vector the commit's operations already
- A SQL DML statement conflicts only with writes to what it read. It
used to be refused withwrite_conflictwhenever anything in the tenant
changed after its snapshot. Its read set is now every key it read and
every range it scanned, index rows included (so a row inserted into its
predicate still conflicts); a statement whose shape is not recognized
still conflicts with any write to its label or tenant. - A write conflict says what happened and to retry:
serializable_conflict: another write changed data this request read after it started (commit N); nothing was written, retry the request, and
the same fortransaction_conflict. The token still leads the message,
and thewrite_conflictcode, SQLSTATE 40001 andretryableare
unchanged. - New ANN segments are 8-bit graphs. With a wider walk (at least 16
and a quarter overef), they kept at least the 16-bit graph's recall
at everyeffrom 16 to 256 on 100,000 text embeddings of 1,536
dimensions, with half the graph memory and a walk about 28% faster at
ef128. Segments built earlier keep opening as 16-bit graphs, and an
index holding both answers from both.vector-graph-scalar(i8, the
default, orf16) chooses the scalar of new segments. - The container image runs on Debian 13, without OpenSSL. Its base is
now distrolessbase-nossl-debian13, with the C++ runtime the server
links (libstdc++6andlibgcc-s1) added from Debian 13 and recorded as
packages, instead ofcc-debian12. The server never used OpenSSL (its
TLS is rustls), and every finding an image scanner reported for the
image was in its base: the new image carries no OpenSSL and far fewer
findings. The binary, and the image's user, volume, ports, environment,
health check and entrypoint, are unchanged. /readyreports a background job that keeps failing, with 503 and
the jobs' names, once one has failed for its limit (a minute by
default) while it keeps retrying. History GC and the WAL archiver are
reported in metrics only and leave/readyas it is.
Added
- Background-job metrics:
rushdb_job_steps_total,
rushdb_job_failures_total,rushdb_job_consecutive_failures,
rushdb_job_failing_seconds,rushdb_job_last_success_timestamp_seconds
andrushdb_job_last_step_seconds, by job; thebackground job step failed; retryinglog line carriesfailing_s. The monitoring guide has
example alerts. - Budget classes: the managed memory budget is split into commit,
request and retained classes, and a commit or a request evicts cached
entries before it is refused. New metricsrushdb_budget_class_bytes,
rushdb_budget_class_refused_totaland
rushdb_budget_class_evicted_bytes_total. tenant_lock_waitinrushdb_commit_phase_seconds: how long a
commit queued behind other commits of its tenant.vector-filtered-walk(on/off, defaultoff): anautosearch
whosepredicatematches from 3% of the index walks the ANN graph
measuring only the vectors the predicate admits, seeded from 256 admitted
vectors across the index, instead of scoring every match exactly. See the
vector search guide for its recall and the correlated-filter caveat.vector-graph-scalar(i8orf16, defaulti8): the scalar new
ANN segments are built with. A segment keeps the scalar it was built
with, so changing it affects new segments only.annLifecycle.graphScalarsin a vector index's stats: its resident
graph segments counted by scalar, such as{"f16": 2, "i8": 5}, or null
while the index is not resident.derive-ahead(on/off, defaultoff): a commit waiting behind
another commit's publication derives its own derived rows meanwhile.
Performance
- Concurrent writers of one tenant: a command behind in-flight commits
reuses their derived rows instead of deriving them again (about 13% more
records a second with eight writers in a local measurement). - Traversals keep a resident graph under steady relationship writes, and a
traversal's label check answers from resident label members. - Unindexed filters over resident columns are checked leaf by leaf, and
grouped aggregates over resident columns fold in runs. revalidateVectorIndexreopens the persisted segments and indexes only
what changed, instead of rebuilding the index.- Vector and record answers copy less on their way out.
Fixed
- Light tenants' requests queued behind a bulk load. A write held its
scheduler worker and its phase-memory token, and a transaction also held
writer admission, while it waited for its commit to become durable, so a
bulk load's waiting writes filled the pool and other tenants' requests
waited behind them. A waiting write now lends its worker slot to the
next queued request (a spare thread is started when none is free, and
retires after ten idle seconds), a transaction releases admission when
its commit is enqueued, as a single write already did, and a request's
phase-memory token is returned when its commit starts the durable wait.
A commit expanded behind other tenants' staged commits no longer derives
those tenants' rows. In a local measurement with a bulk load beside
light tenants, the light requests' 99th percentile fell by about a
quarter and their median by more than half, and the load did not slow
down. - A follower could silently miss records of its leader (since 3.0.0).
A follower's own background work (the text and structural index
appliers, the index builder, embedding-slot reclamation and retention
bookkeeping) committed on the follower, and each such commit took the
index of the next leader record, which the follower then never applied.
A follower now commits nothing of its own, and keeps its text indexes
from the leader's. Followers that ran 3.0.15 or earlier may have missed
records: after upgrading, seed each one again from a fresh base backup
of the leader. - An idle leader with followers committed and synced to disk
continuously (since 3.0.0). Each follower poll recorded its position
as a commit, which the follower then polled for: hundreds of commits a
second with no writes. Positions are now recorded when they move far
enough or their lease needs renewing. - A base backup did not include the text indexes (since 3.0.0). After
a restore, text search answered nothing and never recovered. A base now
carries them, and a text index whose files are missing (a base taken
before 3.0.16) rebuilds on its own at the first start, reporting
buildinguntil it is done. - An offline base backup taken right after an unclean stop could miss
the newest commits (since 3.0.0) while naming them in its manifest. The
backup now writes every commit replayed from the WAL into the store file
before copying it. - The retry-receipt sweep reached one shard only with the experimental
shard-countabove 1; receipts on the other shards were never removed. - A typed traversal read from storage also took the edges of longer type
names (KtookKLandKNOWS_X), so its answer depended on whether
the graph was resident. - A revalidated vector index lost its segment files and rebuilt them
after the next restart. - A cold
annsearch on a space whose ANN build the cache budget
refused read every binding on every call; it now defers to the
background build and answers exactly. - The release SBOMs listed every platform's crates: each target's SBOM
now lists only the packages its binary ships.