Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log sizes #497

Open
rhclopes opened this issue Jan 23, 2025 · 1 comment
Open

log sizes #497

rhclopes opened this issue Jan 23, 2025 · 1 comment

Comments

@rhclopes
Copy link

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

@mfeit-internet2
Copy link
Member

The log rotation configurations installed by pScheduler and the bundles inherit the default behavior from whatever the OS installs. We can't dictate behavior for specific configurations because they'd end up not working for someone else's system or violating retention rules.

Treat this as a configuration issue and make configuring the defaults part of the system setup procedure.

I'll move this over to Toolkit for further discussion, if any.

@mfeit-internet2 mfeit-internet2 transferred this issue from perfsonar/pscheduler Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready
Development

No branches or pull requests

2 participants