In Standalone or Sentinel topologies, 1:1 node replacement is handled by attaching a replica and promoting it. Across a 16,384-slot Redis 7.2 or Valkey Cluster spanning 24 primary shards, consolidating down to 12 high-density Engula 2.3.0 shards online with zero client downtime relies on mixed-cluster live slot migration (CLUSTER SETSLOT + MIGRATE).
Verified across serialization code paths and automated cross-engine interoperability suites (INTOP-08, INTOP-09, INTOP-10):
engula-rdb 1 or 0, DUMP, MIGRATE, and RESTORE-ASKING unconditionally serialize standard logical RDB version 11 payloads with an 8-byte CRC64 checksum over the network.MIGRATE sockets; compressed interior List nodes transparently convert back to standard encodings on egress.CLUSTER MEET handshakes, cross-engine replica failovers, and bidirectional MIGRATE of 8 KB compressed records (8,192-byte exact restore, zero source residue, idempotent NOKEY retry) pass 100%. Official Engula 2.3.0 builds impose zero shard-count caps.| Cluster Subsystem | Engineering Mechanism | Live Resharding Behavior |
|---|---|---|
| Slot Index Layer (16,384 On-Demand Sub-Tables) | Splits main and expiry indexes into 16,384 per-slot sub-tables allocated on first key write and freed when emptied | Full 16,384-slot throughput matches standalone mode (222.2k RPS); CLUSTER COUNTKEYSINSLOT reads sub-table headers in constant time |
| Compact Block Pool (Instance-Wide Shared Blocks) | All 16,384 slot sub-tables share the compact block pool and dictionary pipeline to preserve high cross-slot compression | Draining a slot leaves sparse holes reclaimed asynchronously by background compaction coroutines |
| Compatibility Slot Consensus (Default Level 2) | Default engula-redis7-compatibility-level 2 matches Redis 7.2 by keeping half-open migrating/importing flags local to primaries |
Guarantees uniform epoch progression and Gossip slot-ownership transitions across mixed stock and Engula shards |
Configure the 12 new Engula 2.3.0 primary/replica pairs with identical compatibility settings across the entire cluster:
Transient Headroom Sizing: Incoming
RESTORE-ASKINGkeys append into plaintext mutable blocks before background coroutines train dictionaries and compress them. Reserve 25%–30% transientmaxmemoryheadroom on destination shards so burst migration rates never outrun initial background compression and trigger OOM rejections.
Add the 12 new primary/replica pairs into the existing cluster. Holding 0 hash slots, they receive zero client traffic upon joining:
Use your existing cluster orchestrator or redis-cli --cluster reshard in waves of 256 or 512 slots (clients hitting migrating slots follow standard -ASK redirection):
CLUSTER NODES (not CLUSTER SLOTS).CLUSTER SETSLOT <slot> NODE <dst-node-id> on the destination primary, it must verify that the source primary reports exactly 0 remaining keys in that slot:
CLUSTER SETSLOT <slot> NODE <dst-node-id> directly on an importing destination while keys still reside on the source bumps the configuration epoch and broadcasts ownership cluster-wide—causing the source primary to treat remaining unmigrated keys in that slot as orphan dirty-slot data and delete them. If a source primary fails over mid-slot, run CLUSTER SETSLOT <slot> STABLE on the destination before resuming.Between 256–512-slot waves, confirm the destination compression queue has drained and used_memory_rss has settled:
Once legacy Redis 7.2 shards hold 0 slots and zero active client traffic, decommission replicas first and primaries second via CLUSTER FORGET <old-node-id>. Reversing the direction and resharding slots back onto stock Valkey or Redis 7.2 nodes works identically at any time.
CLUSTER COUNTKEYSINSLOT, CLUSTER GETKEYSINSLOT materializes key names from compact records (decompressing if the underlying block is compressed). Keep batch count at 20–100 keys (1–10 for 100 KB+ values) to avoid stalling the source main thread.MIGRATE blocks the source main thread across each batch round-trip (keep --cluster-pipeline around 10–50). When an Engula node is the migration source, freed space across shared blocks returns to the OS asynchronously via background compaction and the ~1,000 ms block-arena decay window.maxmemory OOM enforcement: RESTORE-ASKING rejects writes with OOM if effective memory hits maxmemory; pace migration throughput to match background compression.CLUSTER GETKEYSINSLOT or MIGRATE triggers immediate Fail-Stop containment and writes engula-corruption.marker rather than silently skipping damaged keys across shards (see Incident Triage & Fail-Stop Playbook).