Pupu Technology
Nov 27, 2023 · Databases
How Midnight Key Expiration Spiked Redis CPU and the Optimizations That Fixed It
The article examines a nightly Redis CPU‑100% alert caused by massive simultaneous key expirations, analyzes the active and slow expire cycles, and presents two practical redesigns—randomized expiration with real timestamps and time‑suffix keys—that eliminated the spike.
CPU spikeRedisactive expire
0 likes · 10 min read
