Changes between Version 13 and Version 14 of FileDeleter
- Timestamp:
- Feb 23, 2012, 7:33:55 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FileDeleter
v13 v14 1 [[PageOutline]] 1 2 = Server-side file deletion = 2 Files are deleted from the data server's upload and download directories by the '''file_deleter''' daemon. 3 4 Files are deleted from the data server's upload and download directories by two 5 programs: 6 * The '''file_deleter''' daemon, which deletes input and output files 7 as jobs are completed. 8 * The '''antique file deleter''', which deletes files that have 9 "fallen through the cracks". 10 11 == The File Deleter 12 3 13 Typically you don't need to customize this. 4 14 The default file deletion policy is: … … 8 18 * A result's output files are deleted after the workunit is assimilated. 9 19 The canonical result is handled differently, 10 since its output files may be needed to validate results that are reported after assimilation;11 hence its files are deleted only when all results are over, and all successful results have been validated.12 * Periodically remove 'antiques': output files that are older than the oldest WU in the database.13 These files are created when BOINC clients return after the corresponding WU has been deleted from the database.20 since its output files may be needed to validate results 21 that are reported after assimilation; 22 hence its files are deleted only when all results are over, 23 and all successful results have been validated. 14 24 15 25 Command-line options: … … 19 29 --one_pass:: exit after one pass through DB 20 30 --dont_retry_errors:: Don't retry file deletions that failed previously. 21 --dont_delete_antiques:: Don't delete antiques22 --delete_antiques_interval S:: change the interval between delete antique passes (S in seconds, defaults to 24h)23 --delete_antiques_limit N:: change the maximum number of files deleted in one delete antique pass (defaults to 50000)24 31 --preserve_wu_files:: Update the DB, but don't delete input files 25 32 --preserve_result_files:: Update the DB, but don't delete output files … … 34 41 --app S:: only process workunits of app with name S 35 42 36 If the web-server account on your system is not 'apache',37 add a {{{<httpd_user>}}} element to your [ProjectOptions#dirs config.xml] file.38 Otherwise antique deletion won't work.39 40 43 In some cases you may not want files to be deleted. There are three ways to accomplish this: 41 44 … … 45 48 * Include nodelete in the workunit name. 46 49 47 The antique files are deleted by using a Unix 'find' command to locate files that are older than the oldest workunit. 48 The find command will work on NFS mounted file systems, and will ignore .nfs stale file markers. 50 == The Antique File Deleter == 51 52 Runs as a periodic task. 53 Removes 'antiques': output files that are older 54 than the oldest WU in the database. 55 These files are created when BOINC clients 56 return after the corresponding WU has been deleted from the database. 57 58 The antique files are deleted by using a Unix 'find' command to locate files 59 that are older than the oldest workunit. 60 The find command will work on NFS mounted file systems, 61 and will ignore .nfs stale file markers. 49 62 The output of find is limited by a 'head' to 50000 files by default. 63 64 If the web-server account on your system is not 'apache', 65 add a {{{<httpd_user>}}} element to your [ProjectOptions#dirs config.xml] file. 66 Otherwise antique deletion won't work. 67