Posts

Showing posts from August, 2013

Migrating from Apache to Nginx: The FastCGI Reality Check

Moving client sites from Apache to Nginx feels like magic until you realize your .htaccess rewrite rules no longer exist. Nginx forces you to treat configuration like real architecture rather than a pile of nested directory overrides. The real performance win isn't just event-driven connection handling; it's decoupling the web server from the application runtime via PHP-FPM. But it introduces its own gotchas: if your upstream unix socket backlog overflows, Nginx returns a cold 502 Bad Gateway while PHP silently chokes in the background.

Redis Persistent Connection Pooling: Eliminating TCP Handshake Overhead (Vol. 1)

Image
Installing Redis or Memcached is the single most effective way to eliminate repetitive MySQL query cycles. However, naive implementations that open and close a new TCP socket on every dynamic request end up shifting the bottleneck from the database to the networking stack. Physical hardware concurrency bottlenecks versus virtualized resource allocation. Production Architecture & Empirical Constraints Under heavy traffic, creating ephemeral TCP connections leaves hundreds of sockets lingering in TIME_WAIT status. Switching to persistent connections via local Unix domain sockets ( /var/run/redis/redis.sock ) eliminates network stack overhead and shaves 15ms to 30ms off each worker execution loop. Engineering robust production environments requires adherence to proven industry specifications like Redis in-memory caching rather than guessing resource limits. In real-world enterprise deployments, throughput is determined by queue latency and active worker memory consump...

Securing SSH Keys: Moving from RSA 2048 to Ed25519 (2013 Systems Notes)

Notes from our server logs during the 2013 infrastructure upgrade cycle regarding modern elliptic curve cryptography for systems administrators. 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.