Posts

Showing posts from February, 2020

Benchmarking Redis vs Memcached for Session Storage (2020 Systems Notes)

Notes from our server logs during the 2020 infrastructure upgrade cycle regarding persistence guarantees, eviction policies, and memory fragmentation. When you maintain production environments over years of kernel releases, documenting these low-level interactions saves countless hours during emergency maintenance windows. Always verify your sysctl buffers and process memory limits against actual workload metrics rather than copying outdated configuration snippets from old forum threads.

Understanding Little's Law in Modern Microservice and PHP Sizing (Vol. 6)

Image
A common mistake sysadmins make when sizing application clusters is dividing total server RAM by average process size and calling it a day. If you have 8GB of free memory and each PHP process consumes 60MB, setting pm.max_children = 130 sounds great on paper until the first marketing blast crashes MySQL. Balancing dynamic memory limits across isolated cloud compute instances. Production Architecture & Empirical Constraints This is where queuing theory becomes essential. Applying Little's Law ($L = \lambda \times W$) reveals that required concurrency ($L$) is strictly a function of incoming request rate ($\lambda$) and mean service time ($W$). If your Redis cache keeps execution times at 180ms, you need dramatically fewer concurrent child workers than if uncached queries force processes to hang for 800ms. Engineering robust production environments requires adherence to proven industry specifications like Little's Law queuing theory rather than guessing resou...