This guide explains how to deploy Engula 2.3.0 across multi-AZ high-availability topologies (Sentinel and 16,384-slot Cluster) and cross-datacenter (Cross-DC) asynchronous disaster-recovery links — detailing PSYNC2 offset-based resumable WAN replication, Dual-Channel Replication, 1.83s native whole-block fullsync with reconnect-storm protection, and zero-blackout double-buffered replica loading (repl-diskless-load swapdb).
Engula 2.3.0 implements the full Redis 7.2 and Valkey 7.2+ primary-replica, Sentinel, and 16,384-slot Cluster wire contracts (cross-DC disaster recovery uses single-primary asynchronous replication paired with remote DR replicas, Sentinel, or Cluster):
| Topology | Target Production Scenario | Verified Failover & Sync Metrics |
|---|---|---|
| Replication + Sentinel | Single-shard stateful workloads requiring automated failure detection and promotion | 1 primary + 2 replicas + 3 Sentinels (down-after=5000ms): 5.55 s median RTO (vs. 5.50 s vanilla baseline); mixed-engine failover 6.0–6.5 s |
| 16,384-Slot Cluster | Horizontal sharding beyond single-host DRAM capacity (hundreds of GBs to multi-TB fleets) | Unrestricted shard count in release builds; shard failover in 8.0 s; live reshard with 0.00% error rate |
| Cross-AZ / Cross-DC DR Replicas | Off-site hot standby, regional disaster-recovery cutover, and non-intrusive shadow validation | Bidirectional PSYNC2 offset-based stream resumption across WAN flaps; 12M-key native fullsync in 1.83 s with 86% smaller replication buffers |
Over high-latency WAN links, large vanilla Redis instances frequently fall into endless FULLRESYNC retry loops when a link flap overflows the backlog and subsequent 30–60+ s RDB transfers blow through client-output-buffer-limit replica. Engula 2.3.0 eliminates that failure mode with four shipped kernel mechanisms:
Across transient WAN link flaps and Sentinel/Cluster primary promotions (replid / replid2 history tracking), reconnecting replicas send PSYNC <replid> <offset>:
repl-backlog-size, the primary replies +CONTINUE and resumes streaming incremental commands from the exact byte offset with zero RDB re-transmission (verified bidirectionally across Engula 2.3.0 ↔ Redis 7.2 disconnects and failovers).When a fresh replica attaches or a long WAN outage exceeds the backlog, replicas with engula-rdb 1 advertise REPLCONF capa engula-rdb during handshake:
engula-rdb, the primary streams pre-compressed blocks directly (12M × 256 B keys over diskless sync completes in 1.83 s at 707 MB primary peak PSS vs. 29.3 s and 4,487 MB on Redis 7.2.14 — 16.0× faster and 84% lower primary RAM).engula-rdb 0), the primary intersects batch capabilities and falls back to standard REDIS0011 RDB (34.3 s on 12M keys due to decompression — stagger homogeneous and legacy replicas into separate sync batches during cross-DC migrations).Inherited from Valkey 8.1.8 and integrated with engula-rdb capability negotiation: enabling dual-channel-replication-enabled yes streams the RDB snapshot over a dedicated RDB connection while concurrently streaming live incremental writes over the main replication channel, preventing primary output-buffer pileups during WAN fullsyncs.
With repl-diskless-load swapdb, a replica loads an incoming fullsync into an isolated preload dataset while its active dataset continues serving read traffic without a cold/empty blackout window:
For dedicated remote DR replicas that should not be auto-promoted during local AZ blips, set replica-priority 0 until an explicit regional DR switchover is initiated.
Deploy an odd number of Sentinel instances (3 or 5) across independent failure domains so a single AZ partition never stalls quorum election.
Bootstrap and reshard using standard redis-cli --cluster commands (for mixed-cluster shard consolidation and live slot migration, see Mixed-Cluster Live Slot Migration):
redis-cli INFO replication for master_link_status:up and zero sustained offset lag; inject a brief network cut and confirm INFO stats | grep sync_partial_ok increments without incrementing sync_full.min-replicas-to-write and min-replicas-max-lag when bounding writes on an isolated primary.Related: Backup & Restore · Zero-Downtime Rolling Upgrade · Incident Triage & Fail-Stop Playbook