Thursday, October 2, 2014

Slurm's logs are too big

To fix the issue where Slurm's logs are getting to large, create the following file:
vi /etc/logrotate.d/slurm
### SLURM Logrotate Configuration##
/var/log/slurm/*log { 
compress
missingok 
nocopytruncate 
nocreate 
nodelaycompress 
nomail  
notifempty 
noolddir 
rotate 5 
sharedscripts 
size=5M 
create 640 slurm root 
postrotate /etc/init.d/slurm reconfig 
endscript
}

No comments:

Post a Comment