|
|
@@ -12,6 +12,36 @@ consumer-facing usage is in `docs/integration-guide.md`.
|
|
|
|
|
|
## Unreleased
|
|
|
|
|
|
+## 2.21.2 - 2026-10-27 (bug fix, server only)
|
|
|
+
|
|
|
+### Fixed
|
|
|
+- **[server]** The memory budget did not cover stored vectors. A vector loaded
|
|
|
+ at boot (snapshot or WAL) was never added to the memory estimate, and
|
|
|
+ eviction removed only a document's body, so a vector stayed in memory for
|
|
|
+ the life of the process and was written into every snapshot after it. One
|
|
|
+ production instance reported `237 MB estimated (46%)` with about 615 MiB of
|
|
|
+ vectors resident beside it. Vectors are now counted wherever they enter
|
|
|
+ memory, eviction releases a document's vector with its body (while the LMDB
|
|
|
+ mirror is healthy), a reload brings it back from LMDB, and the snapshot reads
|
|
|
+ released vectors back from LMDB.
|
|
|
+- **[server]** The snapshot's vector section and the write handlers' WAL
|
|
|
+ vector entries read the in-memory vector map with no lock; both now copy
|
|
|
+ under the collection lock.
|
|
|
+### Changed
|
|
|
+- **[server]** The memory line reports the vector share:
|
|
|
+ `Memory check: N MB estimated (P%, pressure=...), of which vectors V MB, ...`.
|
|
|
+- **[server]** ⚠ At the first boot on this version the memory estimate rises by
|
|
|
+ every resident vector (`dimension x 4 + 32` bytes each). A vector-heavy
|
|
|
+ instance whose `max_memory_mb` was sized from the old figure can boot into
|
|
|
+ `hard` or `emergency` pressure. At `emergency`, writes answer
|
|
|
+ `RESOURCE_EXHAUSTED` until eviction has released enough vectors. Raise
|
|
|
+ `max_memory_mb` before upgrading to keep memory use as it is, or keep it and
|
|
|
+ let eviction release vectors (lower resident memory, a burst of refused
|
|
|
+ writes after the boot). Released vectors cost an LMDB read when their
|
|
|
+ document is reloaded.
|
|
|
+
|
|
|
+Server only; the client stays 2.20.0.
|
|
|
+
|
|
|
## 2.21.1 - 2026-10-22 (bug fix, server only)
|
|
|
### Fixed
|
|
|
- **[server]** ⚠ Every boot that replayed the WAL recorded each replayed
|