Linux File Descriptor Limits for High Concurrency Services
Socket, pipe, and file handles consume process descriptors, and exhaustion can look like application failure. Begin with requirements and the workload. Record...
Category
Socket, pipe, and file handles consume process descriptors, and exhaustion can look like application failure. Begin with requirements and the workload. Record...
Errexit, nounset, and pipefail reveal some shell errors, yet conditional and pipeline semantics require explicit handling. An engineering decision begins with...
Restart policies are useful for transient crashes but can hide permanent configuration defects in an expensive failure loop. An engineering decision begins...
Direct answer: Cgroups account for memory use against configured limits. Production choices must account for a real workload, security boundaries and the...
Direct answer: A watchdog can detect when a service stops reporting liveness. Production choices must account for a real workload, security boundaries and the...
Direct answer: Static shell analysis identifies quoting and portability risks. Production choices must account for a real workload, security boundaries and the...
Quick answer: cron is simple and available everywhere, but it has a minimal environment, no built-in logging, and no catch-up for missed runs. Systemd timers...
Quick answer: SIGTERM is the polite request to terminate, and a service should catch it, stop accepting new work, finish or hand off what is in flight, and...
Quick answer: rotate logs by size or time, compress old files, and cap retention so disks never fill. With logrotate, prefer signaling the service to reopen...