|
|
@@ -308,6 +308,17 @@ docker run -d --name svapi-dev -p 8080:8080 -e SMARTBOTIC_VECTORAPI_KEY=dev svap
|
|
|
**The healthy signals are genuinely healthy and must not be read as "fine", because they are the output of the swapfile doing its job:** snapshots complete hourly in ~9 s, 14 of them that day, **the WAL directory is EMPTY** - which is the exact inverse of the Oct 17-19 state where nothing completed so nothing truncated - zero OOM kills since Oct 20, `NRestarts=0`, and `si=0 so=0`, so the swapped pages are the cold boot transient rather than working set being thrashed. Everything works. It works with no headroom.
|
|
|
**So the 2.20.1 window moved from "the structural fix for a solved outage" to "the thing standing between us and the same outage at the next step-change", and the distinction this file already draws decides what it buys:** streaming the snapshot writer removes the hourly peak and therefore prevents phase 1 and the WAL growth that made phase 2 unsurvivable - but **boot still holds the whole dataset in memory, which 2.20.1 does NOT fix**, and the dataset is now 42% larger than the one that could not boot on 2026-10-19. The swapfile is what covers that today. Quote both halves when asking for the window.
|
|
|
|
|
|
+ **AFTER 2.20.1, MEASURED: THE DATABASE'S SWAP FOOTPRINT FELL FROM 827 MB TO 87 MB AND STAYED THERE ACROSS A SNAPSHOT. That is the number to quote, and the stall count is NOT yet evidence.** Upgraded 2026-10-22 14:45; first snapshot on the new build at 15:45:38, sequence 760093.
|
|
|
+
|
|
|
+ | | before | after, across a snapshot |
|
|
|
+ |---|---|---|
|
|
|
+ | `VmSwap` | 826,976 kB | **89,488 kB** |
|
|
|
+ | `si` / `so` | 0 / 0 | 0 / 0 |
|
|
|
+ | `Deadline Exceeded` in the 150 s window | 34 of 43 landed here | **0** |
|
|
|
+
|
|
|
+ **ONE CLEAN SNAPSHOT IS WEAK EVIDENCE AND WAS REPORTED AS SUCH, which is the part worth copying.** The prior 43 stalls spanned roughly 44 hours and therefore roughly 44 snapshots, and several snapshots carried more than one (the 01:13:07 cluster had four) - so the per-snapshot probability of at least one stall was somewhere around a half to two thirds, not one. **A single clean snapshot therefore has roughly even odds of occurring even if nothing had changed.** It is consistent with the fix working and with a quiet hour, and nothing in it discriminates. Five or six consecutive clean ones put it under a few percent. The database owner recorded it with that caveat attached rather than as a confirmation.
|
|
|
+ **The swap figure is the one that does not depend on how many snapshots have been watched**, because it is the mechanism rather than a symptom: the old path needed the store in memory three times over, and the 740 MB it had been forced to page out is simply no longer being asked for. `VmHWM` still reads 1747 MB and must be ignored here - it is a high-water mark from the boot, not a current cost. **When a fix has both a symptom count and a mechanism measurement, the mechanism is usually the one that can be quoted after one observation.**
|
|
|
+ **And the running count needs no watcher, which is worth knowing before anyone writes one:** the journal retains the evidence, so the correlation can be recomputed retrospectively at any later hour. A measurement that accumulates in a log does not need to be collected live.
|
|
|
**THE HOURLY SNAPSHOT STALLS THE DATABASE FOR SECONDS AND FAILS REAL TENANT SEARCHES. 79% OF EVERY gRPC DEADLINE FAILURE COINCIDES WITH ONE, AGAINST A BASE RATE OF 3.7%.** Measured 2026-10-22, and it is the memory state above showing up as latency rather than as a crash - which is why it was invisible. Every `Deadline Exceeded` vectorapi logged since Oct 20, excluding the cluster around the database's own restart, timed against every snapshot completion:
|
|
|
- **43 stalls**: `getCollectionInfo` 30, **`similaritySearch` 5**, `getMemoryStats` 5, **`insert` 3**
|
|
|
- coincidence window completion-15 s to +120 s (a snapshot takes ~9 s) = 135 s of a 3647 s median interval, i.e. **3.7% of elapsed time**
|