logrotate.d-helix-swarm #1

  • //
  • guest/
  • russell_jackson/
  • ansible-sdp/
  • swarm/
  • logrotate.d-helix-swarm
  • View
  • Commits
  • Open Download .zip Download (1 KB)
{
    # Choose rotation frequency and  criteria to suit your site needs.
    #
    # rotate N
    # daily, weekly, monthly
    # size, maxsize, minsize
    #
    # Every day, if the log file is greater than 100k in size then
    # we will rotate the file. We keep the last 14 log files. 
    # Remove minsize if you always want to rotate the logs each day.
    su www-data www-data
    rotate 30
    maxsize 10M
    daily
    create
    
    # Don't raise an error if the files are missing. Allows us to
    # specify both single and multi-p4d without causing error.
    missingok

    # Rename/move the log rather than copying because copying isn't
    # necessary and takes longer.
    nocopy

    # Old versions of the log are compressed with gzip by default. You
    # probably want to do this to save disk space but ensure you also
    # use the delaycompress option. See below. Typically, Swarm server
    # logs compress to 10% of their original size.
    compress

    # Postpone compression of the previous log to the next rotation
    # cycle because there may be worker threads that still have the
    # freshly rotated log open. Take care if you are rotating logs
    # very frequently as you don't what to be trying to delete logs
    # that Swarm still has open.
    delaycompress
}
# Change User Description Committed
#1 32488 Russell C. Jackson (Rusty) Ansible scaffolding for the sdp - Needs work.