Changes between Version 1 and Version 2 of FileDeleter


Ignore:
Timestamp:
Apr 17, 2007, 11:11:11 AM (17 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FileDeleter

    v1 v2  
    1 Files are deleted from the data server's upload and download directories by the file_deleter daemon. Typically you don't need to customize this. The default file deletion policy is:
     1= Server-side file deletion =
     2Files are deleted from the data server's upload and download directories by the '''file_deleter''' daemon.
     3Typically you don't need to customize this.
     4The default file deletion policy is:
    25
    3     * A workunit's input files are deleted when all results are 'over' (reported or timed out) and the workunit is assimilated.
    4     * A result's output files are deleted after the workunit is assimilated. The canonical result is handled differently, since its output files may be needed to validate results that are reported after assimilation; hence its files are deleted only when all results are over, and all successful results have been validated.
     6 * A workunit's input files are deleted when all results are 'over' (reported or timed out)
     7and the workunit is assimilated.
     8  * A result's output files are deleted after the workunit is assimilated.
     9The canonical result is handled differently,
     10since its output files may be needed to validate results that are reported after assimilation;
     11hence its files are deleted only when all results are over,
     12and all successful results have been validated.
    513
    614Command-line options are:
    715
    8 -preserve_wu_files      Don't delete input files
    9 -preserve_result_files  Don't delete output files
    10 -retry_errors   Retry file deletions that failed previously.
    11 -delete_antiques        periodically (once per hour) removes any files in the upload/ directory that are older than the oldest WU in the database. These files are created when BOINC clients return work really late after the deadline -- so late that the corresponding WU has been deleted from the database.
     16 -preserve_wu_files::   Don't delete input files
     17 -preserve_result_files::       Don't delete output files
     18 -retry_errors::        Retry file deletions that failed previously.
     19 -delete_antiques::     periodically (once per hour) removes any files in the upload/ directory that are older than the oldest WU in the database. These files are created when BOINC clients return work really late after the deadline -- so late that the corresponding WU has been deleted from the database.
    1220
    1321In some cases you may not want files to be deleted. There are three ways to accomplish this:
    1422
    15     * Run the file_deleter daemon with the -preserve_wu_files and/or the -preserve_result_files command-line options.
    16     * Include <no_delete/> in the <file_info> element for a file in a workunit or result template. This lets you suppress deletion on a file-by-file basis.
    17     * Include nodelete in the workunit name.
     23 * Run the file_deleter daemon with the -preserve_wu_files and/or the -preserve_result_files command-line options.
     24 * Include <no_delete/> in the [http://boinc.berkeley.edu/files.php <file_info>]
     25 element for a file in a [http://boinc.berkeley.edu/tools_work.php workunit or result template].
     26This lets you suppress deletion on a file-by-file basis.
     27 * Include nodelete in the workunit name.
    1828
    1929You may need to implement your own scheme for deleting files, to avoid overflowing data server storage.