Linux Log Rotation Strategies for High Volume Application Logs
For high volume application logs, rotate by size as well as by time, compress old files, limit retention, and prefer telling the application to reopen its log...
All troubleshooting articles, newest first.
For high volume application logs, rotate by size as well as by time, compress old files, limit retention, and prefer telling the application to reopen its log...
The MySQL slow query log records statements that run longer than a threshold, and analyzing it shows which queries cost the most in total time, not just which...
The built-in getopts handles short options such as -v and -f file reliably and portably, but it does not support long options like --verbose. A manual while...
A Linux filesystem can run out of space in two ways: it can run out of blocks, which is what df -h shows, or it can run out of inodes, which is shown by df -i....
Nginx can add important security headers to every response: Strict-Transport-Security to enforce HTTPS, X-Content-Type-Options to stop MIME sniffing, a frame...
To proxy WebSockets through Nginx, use HTTP/1.1 and pass the Upgrade and Connection headers to the backend. Connections are closed when idle longer than...
Systemd can sandbox a network daemon with a few unit file options: run it as an unprivileged user, set NoNewPrivileges, make most of the filesystem read-only...
For stateless APIs, round robin is a sound default in Nginx, and least connections is usually the better choice when request durations vary a lot. Hash-based...
For static assets, the best Nginx setup combines fingerprinted filenames with long-lived Cache-Control headers, so browsers cache files for a long time and...