Changes between Version 6 and Version 7 of LogRotate
- Timestamp:
- Oct 13, 2009, 1:16:02 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LogRotate
v6 v7 2 2 = Log rotation = 3 3 4 The log files generated by BOINC's daemons and servers can grow to gigabyte size in a few days or weeks, and will eventually fill up your disk. When this happens your project will grind to a halt. In addition, if you use db_dump to export statistics, directories with names of the form '''html/stats_2006_4_3_15_50_2''' will build up, and you'll need to delete and possibly archive them. Most projects do this manually. 4 The log files generated by BOINC's daemons and servers can grow to gigabyte size in a few days or weeks, 5 and will eventually fill up your disk. 6 When this happens your project will grind to a halt. 7 In addition, if you use db_dump to export statistics, 8 directories with names of the form '''html/stats_2006_4_3_15_50_2''' will build up, 9 and you'll need to delete and possibly archive them. Most projects do this manually. 5 10 6 11 Initially you can deal with log files by hand, but eventually you may want an automated solution. Log rotation typically must be done while the project is [StartTool stopped]. 7 12 8 13 == Log Compression == 9 Here's a shell script (from Nicolas Alvarez) that tars and compresses log files (you'll still need to eventually deal with the compressed files). You can run this script as a periodic task in [ProjectConfigFile config.xml]. 14 Here's a shell script (from Nicolas Alvarez) that tars and compresses log files 15 (you'll still need to eventually deal with the compressed files). 16 You can run this script as a periodic task in [ProjectConfigFile config.xml]. 10 17 11 18 {{{ … … 27 34 28 35 == {{{logrotate}}} == 29 Other projects use the Linux 'logrotate' program. For example, Predictor@home uses the following logrotate input file (they run this while the project is down for database backups): 36 Other projects use the Linux 'logrotate' program. 37 WCG uses the following logrotate file, which they run while the project is online: 30 38 39 {{{ 40 /our/log/directory/log_server1/*.log { 41 compress 42 rotate 10 43 daily 44 copytruncate 45 olddir /our/log/directory/log_server1/archive 46 } 47 }}} 48 49 Predictor@home uses the following logrotate input file (they run this while the project is down for database backups): 31 50 32 51 {{{