Skip to content

log sizes #497

@rhclopes

Description

@rhclopes

A new perfSONAR host admin reported recently that their host stopped working because /var reached 100% usage.

Things could be immediately improved if perfSONAR shipped with log rotation and compression for all perfsonar-tool kit logs. Presently,
the toolkit does ship a logrotate configuration that does not rotate nor compress old logs, except swamp logs.

It could be shipped with something like
'''
/var/log/perfsonar/*.log {
sharedscripts
size 100M
rotate 54
compress
compresscmd /bin/bzip2
delaycompress
notifempty
missingok
postrotate
/bin/kill -HUP cat /var/run/syslogd.pid 2> /dev/null 2> /dev/null || true
/bin/kill -HUP cat /var/run/rsyslogd.pid 2> /dev/null 2> /dev/null || true
endscript
}
'''

In addition the documentation could advise sites about using OS installs with separate /var partition with suitable size.

A 64GB partition should be suitable for most hosts if rotation with compression is deployed.

Raul

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions