Skip to content
← Engula Engineering BlogCase Studies

Production RDB Audit Across 8 Clusters: Dissecting Physical RSS from 35.07 TB to 18.57 TB

Run the exact same storage kernel across eight real production datasets and steady-state physical memory (used_memory_rss) drops by 41.79% at one end and 75.11% at the other—nearly a 2× spread. Summed across all eight…

Production RDB Audit Across 8 Clusters: Dissecting Physical RSS from 35.07 TB to 18.57 TB

Run the exact same storage kernel across eight real production datasets and steady-state physical memory (used_memory_rss) drops by 41.79% at one end and 75.11% at the other—nearly a 2× spread. Summed across all eight audited clusters, combined physical RSS fell from 35.07 TB to 18.57 TB, freeing 16.50 TB of server DRAM (47.1% aggregate sample RSS reduction).

What places a cluster at 42% versus 75% is neither its industry vertical nor its fleet size. It is data shape: what fraction of physical RAM was previously consumed by fixed per-key index and allocator headers, and how much cross-record structural redundancy shared-dictionary block compression can eliminate.

Production RDB Audit Across 8 Clusters: Dissecting Physical RSS from 35.07 TB to 18.57 TB

Architecture figure

Same-Host Physical RSS Measurement Protocol and Scoping Rules

  1. Real production datasets on matched hardware (used_memory_rss): Every card below uses live customer Redis datasets (no synthetic benchmarks) loaded onto matched hardware under identical maxmemory caps, reading operating-system resident set size (used_memory_rss, including steady-state allocator page overhead) on both engines.
  2. BGSAVE copy-on-write headroom excluded: All figures measure steady-state static RSS only. They exclude fork copy-on-write headroom saved during scheduled BGSAVE snapshots (where write-heavy Redis primaries routinely spike +74% vs. +14% under Engula's block-by-block page release). Including snapshot headroom yields larger host-count reductions than static RSS alone.
  3. What 47.1% measures: 35.07 TB → 18.57 TB (-47.1%) is the total physical RSS reduction across this 8-sample corpus, heavily weighted by two tens-of-terabytes large-value deployments (#06 and #07). Do not read 47.1% as an unweighted "average customer cost savings."
  4. Anonymization and deployment-stage separation: All eight cards are anonymized under customer confidentiality agreements. "Data sourced from production" is tracked separately from live cutover status (each sample represents an offline production snapshot replay, customer PoC, DR replica, or live production deployment; per-row stage tags are maintained in our verification registry).

Summary Ledger Across Eight Anonymized Production Snapshots

Card Sector & Scale Tier Workload Dominant Data Shape Redis Physical RSS Engula Physical RSS Sample RSS Reduction Physical RAM Freed
#01 Top-tier internet bank (100M+ users) Real-time risk control Boolean flags, small counters, short tokens (small-value, high-key-density extreme) 9.44 GB 2.35 GB 75.11% 7.09 GB
#02 Cross-border e-commerce (100M+ MAU) User profiling Short-string tags + multi-field small Hashes (per-key metadata dominant) 331.00 GB 108.24 GB 67.30% 222.76 GB
#03 Online recruitment platform (10M+ DAU) Candidate & job profiling Feature Hashes and short profile records at multi-TB scale 6,367.20 GB 2,421.60 GB 61.97% 3,945.60 GB
#04 Long-form video platform (10M+ subscribers) Membership & entitlements Short structured keys + medium-sized entitlement records 15.80 GB 6.34 GB 59.87% 9.46 GB
#05 Nationwide restaurant chain (10,000+ stores) Member profiling & loyalty Mixed small profile attributes and medium transaction labels 85.20 GB 42.80 GB 49.77% 42.40 GB
#06 Social networking app (core 10% fleet segment; 1,000+ services) General online cache Mixed microservice workloads with a rising share of larger serialized values 10,242.14 GB 5,713.87 GB 44.21% 4,528.27 GB
#07 Video community (core 10% fleet segment; 10,000+ instances) Media & feed cache 17.9 TB corpus with substantial large-value payloads 17,894.00 GB 10,199.00 GB 43.00% 7,695.00 GB
#08 Top-5 global smart-device maker Device ad-serving Large JSON and Protobuf business objects 128.45 GB 74.77 GB 41.79% 53.68 GB
Total Combined 8-deployment sample — Spanning 9 GB to 17.9 TB 35.07 TB 18.57 TB 47.1% (total sample RSS) 16.50 TB

Three Structural Laws Governing Physical Memory Reduction

Law 1: Data Shape Governs Savings Rate—Not Industry

Cards #01 through #04 cluster between 60% and 75%, while #06 through #08 settle between 41% and 45%:

  • Small-record, high-key-count workloads (#01–#03): Under chained hash slots and separate key/object heap allocations, fixed per-key pointers, wrapper headers, and jemalloc size-class rounding frequently consume 60%–75% of total DRAM. Packing keys and values into contiguous records, encoding structured suffixes, and compressing small values under shared dictionaries strips away that structural tax.
  • Large-payload JSON / Protobuf workloads (#06–#08): As payloads grow to hundreds of bytes or several kilobytes, fixed per-key headers become a small fraction of total bytes. Savings shift to per-batch shared-dictionary block compression, holding even the heaviest binary/JSON mix (#08) above 41.79%.

Law 2: Cluster Volume and Savings Percentage Are Independent

Card #01 at 9.44 GB saves 75.11%; Card #03 at 6,367 GB saves 61.97%; Card #07 at 17,894 GB saves 43.00%. Cluster scale spans three orders of magnitude without dictating rate. Practical implication: never run ValueSight on a 20 GB staging cluster and extrapolate its percentage to a 10 TB production cluster carrying a different schema—run ValueSight --batch per workload.

Law 3: Percentage Measures Structural Fit; Freed Terabytes Retire Hardware

Card #01 posts the highest rate (75.11%), but 7.09 GB freed does not retire a standalone server. Card #03 frees 3.95 TB, Card #06 frees 4.53 TB, and Card #07 frees 7.70 TB—translating directly into dozens of 512 GB dual-socket hosts removed from capital refresh or expansion budgets once combined with BGSAVE headroom.

Reproducing the Static Audit on Internal Snapshots

External case cards demonstrate that the storage physics generalize across production schemas, which vary solely by CPU cache-line geometry, allocator rounding, and payload entropy—not geography. Before bringing any estimate into a budget review:

  1. Run ValueSight offline (5 minutes): Scan an authorized backup dump.rdb locally (see the ValueSight Sizing Guide) to see where your schema lands on the 41%–75% curve.
  2. Attach a non-serving DR replica: Validate live steady-state used_memory_rss and BGSAVE rdb_last_cow_size over a full business cycle (see the Progressive Migration Guide).