mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-17 15:04:04 +02:00
The new logrotate settings assume that dragonfly closes a log file once it grows to large. It never rotates file that is currently open for writing. Specifically logrotate: 1. rotate only log files 2. skip those that are currently open by as process. 3. compresses using zstd which is more cpu efficient than gzip 4. does not truncate/create old files as 0-sized blobs - just renames them Fixes #1935 Signed-off-by: Roman Gershman <roman@dragonflydb.io>
5 lines
136 B
Text
5 lines
136 B
Text
--pidfile=/var/run/dragonfly/dragonfly.pid
|
|
--log_dir=/var/log/dragonfly
|
|
--dir=/var/lib/dragonfly
|
|
--max_log_size=20
|
|
--version_check=true
|