Skip to main content
KUTT REDIRECTEDGE LAB // REDIS 302 RPS & POSTGRES PARTITIONING STUDIO KUTT V3 + SHLINK ROADRUNNER | HOSTINGER KVM | VULTR HIGH FREQUENCY | 2026-10-27
KuttLinkVPS
KuttLinkVPS Affiliate Notice: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero added cost (Affiliate Policy).
Redirect & DB Tuning

Redis LRU Slug Cache Sizing & Cache-Miss Latency Penalty

Quantify why undersized Redis maxmemory drops 302 throughput from 6,200 req/s to under 500 req/s once cold misses hit PostgreSQL.

340 B/Slug · 2.4-4.1 ms Hit vs 38+ ms PG Miss · allkeys-lru

Redis LRU Slug Cache Sizing & Cache-Miss Latency Penalty
Shortener telemetry baseline verified 2026-10-27 by RedirectEdge Lab.

Calculating Exact Redis Slug Working Set Bytes

Each cached redirect key in Redis 7 consumes roughly 340 bytes including short slug string, destination URL, domain identifier, and jemalloc allocator metadata. Covering 35% of 1,000,000 active slugs requires only ~119 MB of pure key memory.

Enforcing allkeys-lru Over volatile-lru

Always configure --maxmemory-policy allkeys-lru when Redis serves both redirect lookups and rate-limit counters without uniform TTLs, ensuring cold slugs evict cleanly without OOM errors.

Measured Thresholds & Shortener Stack Parameters

Cache StateMeasured Throughput (2 vCPU)p95 Redirect Latency
99%+ Redis Slug Hit2,800 - 9,500 req/s2.4 - 4.1 ms
85% Hit (Mild Eviction)1,450 req/s14.8 ms
< 50% Hit (PG Fallback Storm)480 req/s collapse38 - 95 ms
340 B/Slug · 2.4-4.1 ms Hit vs 38+ ms PG Miss · allkeys-lru Deploy Hostinger KVM ($4.99/mo)Vultr HF NVMe