This guide covers Engula 2.3.0's dual-mode RDB snapshot architecture, Copy-on-Write (CoW) memory control, three-mode validated startup recovery, offline verification with valkey-check-rdb, and AOF operational boundaries.
Engula 2.3.0 preserves 100% of standard persistence directives (SAVE, BGSAVE, BGSAVE SCHEDULE, save "") and provides runtime-selectable snapshot serialization via engula-rdb:
| Configuration | Wire/Disk Format & Mechanism | Primary Use Cases |
|---|---|---|
engula-rdb 1 (Default) |
Native Whole-Block Physical Snapshot (v4 format; backward-compatible reader for v3): Stage 1 sequentially writes pre-compressed memory blocks and shared compression dictionaries (zero decompression, zero re-encoding); Stage 2 snapshots physical hash-table slot positions across all 16,384 per-slot sub-tables in Cluster mode so cold loads place entries directly without hash recomputation or rehashing | Routine production cold backups, rapid crash/restart recovery, and sub-2-second homogeneous primary-replica fullsync |
engula-rdb 0 |
100% Standard Logical RDB (REDIS0011): Materializes compressed records into standard Redis 7.2 / Valkey object encodings (incurring decompression CPU and returning to traditional save/load speeds) | Cross-engine export to vanilla Redis 7.2 / Valkey, offline data-warehouse ETL scanners, 2.2.0/2.2.1 version bridging, and zero-lock-in exit |
BGSAVE Uses fork() and Bounds Copy-on-Write Memory
Engula 2.3.0 uses standard POSIX fork() for BGSAVE to guarantee point-in-time command atomicity between event-loop ticks. Its low memory overhead comes from three mechanisms working together: ① smaller compressed physical footprints shrink OS page tables (fork() takes ~15–25 ms vs. 54–89 ms); ② progressive per-block child page release drops OS physical page references immediately after serializing each multi-page block while the parent suspends background compaction/recompression and appends foreground writes into fresh blocks; and ③ a 13.7× shorter save window drastically narrows the time window in which live writes can dirty shared pages.
Measured figures from the public live verification suite (/proof-live#rdb at 8 GB scale vs. Redis 7.2) and controlled Engula 2.3.0 workstation verification (vs. Redis 7.2.14):
| Scenario & Dataset | Engula (engula-rdb 1) |
Redis 7.2 Baseline | Operational Impact |
|---|---|---|---|
Background BGSAVE (String, 8 GB · 40M keys) |
3.71 s | 50.86 s | 13.7× faster, shrinking backup windows from ~1 minute to seconds |
Synchronous SAVE (String, 8 GB) |
2.04 s | 36.54 s | 17.9× faster (Hash 14.1–15.0×, Set 11.3–14.1×; compressed List nodes natively serialized since 2.2.2) |
| Cold Restart LOAD (String, 8 GB) | 2.39 s | 14.62 s | 6.1× faster cold node recovery |
BGSAVE CoW Overhead Under Load (2M × 1 KB, 50,000 ops/s random writes) |
+141 MB (+14%) | +2,324 MB (+74%) | ~16× lower absolute CoW overhead, eliminating 2× snapshot RAM over-provisioning |
2-Replica Reconnect Storm BGSAVE Peak (16 live write clients) |
5,285 MB | 13,205 MB | ~40% of vanilla peak RSS (58.9% lower) |
To benchmark save/load timings on your own production
dump.rdband hardware, run Engula RDBPerf. Always size host snapshot headroom as steady-state used_memory_rss + measured rdb_last_cow_size at peak write rate.
Note: CONFIG SET engula-rdb 0 governs subsequent saves and does not convert an already-written dump.rdb on disk. Per-key commands (DUMP, RESTORE, MIGRATE) always emit standard RDB v11 + CRC64 payloads regardless of engula-rdb.
When booting from a native snapshot or loading an incoming native fullsync, Engula 2.3.0 automatically selects one of three recovery modes and logs the outcome in ENGULA INFO health:
Load Mode (engula_rdb_last_load_mode) |
Trigger Condition | Execution Path & Replication Impact |
|---|---|---|
fast (Physical Fast Load) |
Normal restart where footer 4-counter totals and fingerprint match in O(1) | Streams compressed blocks sequentially and restores physical slot positions directly in seconds |
filtered (Reference-Closure Filter) |
Footer totals show benign orphan records left by concurrent DEL during the fork() window |
Filters unreferenced records via a bitmap closure at install time (orphans_reclaimed); zero logical key loss and incremental PSYNC2 remains intact |
rebuild (Deep Decode & Slot Rebuild) |
Persistent engula-corruption.marker from a runtime fail-stop, engula-rdb-deep-validate yes, or Standalone ↔ Cluster topology change (2.2.3+) |
Decodes and verifies every entry individually and recomputes target hash slots (~10.9s on 2M × 1 KB strings) |
engula-rdb-validate-max-drop-ratio is expressed in parts per million (ppm), defaulting to 100 (0.01%). Any non-zero setting enforces a minimum floor of 128 records so isolated media bit-flips on small shards remain repairable, while 0 forbids dropping even a single record.dump.rdb and the marker untouched for operator forensics.engula_rdb_last_load_dropped > 0, the server automatically invalidates its prior replid and replication backlog so downstream replicas perform a clean FULLRESYNC rather than silently diverging.Engula 2.3.0 supports appendonly yes and hybrid AOF (aof-use-rdb-preamble yes) with three explicit operational boundaries:
BGREWRITEAOF: AOF rewrites intentionally emit a standard REDIS logical RDB preamble so AOF loaders and external audit tools remain 100% compatible. Schedule BGREWRITEAOF outside peak traffic windows (though child page management still holds AOF CoW overhead far below vanilla Redis: 208 MB vs. 2,520 MB).Related: High Availability & Cross-DC DR · Incident Triage & Fail-Stop Playbook · Engula RDBPerf