Selaa lähdekoodia

docs: installing without migrating (mask the unit), and a production first-boot timing

From smartbotic-vectorapi's production upgrade to 2.17.2: policy-rc.d does
not hold the postinst's systemctl start, masking does; the first boot took
50 s on the droplet against 204 s for the same data in a dev container.
ROADMAP: use deb-systemd-invoke in the postinst.
fszontagh 1 kuukausi sitten
vanhempi
sitoutus
a7e82c37d8
2 muutettua tiedostoa jossa 14 lisäystä ja 0 poistoa
  1. 4 0
      docs/ROADMAP.md
  2. 10 0
      docs/integration-guide.md

+ 4 - 0
docs/ROADMAP.md

@@ -382,6 +382,10 @@ joins; see 5c), which does not fit in 10 s. Run the container with
 - ~~**Encrypted collection with vectors**~~ - FIXED in 2.17.2: `_vector` is exempt from encryption, so an encrypted collection
   accepts, searches and exports vectors. Since 2.17.0 every such insert had
   been refused.
+- The server postinst calls `systemctl start/restart` directly, so `policy-rc.d`
+  cannot hold a start; switching to `deb-systemd-invoke` would let an
+  operator stage an install without triggering a boot-time migration (today:
+  mask the unit).
 - Collection schemas cannot be declared in a migration file yet (the
   existing-row check lives in the SetCollectionSchema handler).
 - ~~**Bogus index declarations on a production instance (found 2026-10-09, predates 2.14.0):**~~ removed

+ 10 - 0
docs/integration-guide.md

@@ -1048,6 +1048,16 @@ backups or copies taken before the upgrade.
   host that cannot fit the snapshot fails at the same point on every boot -
   restore the pre-upgrade backup rather than retrying. Since 2.17.1 history is
   rewritten one record at a time.
+- **Installing without migrating yet:** the server package's postinst starts or
+  restarts the service with `systemctl` directly, so a `policy-rc.d` that
+  denies starts does NOT hold it (reported by a consumer who tried). Mask the
+  unit instead: `systemctl mask smartbotic-database`, install, check what you
+  need, then `systemctl unmask smartbotic-database && systemctl start
+  smartbotic-database` - the migration runs at that start.
+- **Measured elsewhere:** on a 2 GB production droplet (34,456 rows, a 343 MB
+  env) the whole first boot took 50 s; the same data in a container on a dev
+  box took 204 s. A containerised copy is a safe upper bound, not a
+  performance model of the target host.
 - **What it cannot reach:** copies made BEFORE that boot - backups, pre-upgrade
   copies, replicas, released disk blocks. Rotate any credential that was stored
   in plaintext.