Show correct limits.conf syntax.
BeginnerProductionLogs, Limits & High-Traffic Tuning
Answer
# /etc/security/limits.d/90-app.conf
# <domain> <type> <item> <value>
appuser soft nofile 65536
appuser hard nofile 131072
@devops soft nproc 4096
* hard core 0
Changes apply to new login sessions only. The soft limit cannot exceed the hard limit; a user can raise their own soft limit up to hard with ulimit -n.
More on Logs, Limits & High-Traffic Tuning
How does log management work on a modern Linux server?BeginnerWhy centralize logs instead of reading them on each server?BeginnerWrite a logrotate config for an application log.BeginnerWhat is the difference between `copytruncate` and `create` + postrotate signal?IntermediateLogs rotated but disk usage did not drop. Why?IntermediateHow often does logrotate run, and why does `maxsize` sometimes not trigger in time?Intermediate