Changes between Version 12 and Version 13 of FileDeleter


Ignore:
Timestamp:
Oct 13, 2010, 11:00:48 AM (14 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FileDeleter

    v12 v13  
    44The default file deletion policy is:
    55
    6  * A workunit's input files are deleted when all results are 'over' (reported or timed out) and the workunit is assimilated.
    7  * 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.
    8  * periodically remove 'antiques': output files that are older than the oldest WU in the database. These files are created when BOINC clients return after the corresponding WU has been deleted from the database.
     6 * A workunit's input files are deleted when all results are 'over'
     7   (reported or timed out) and the workunit is assimilated.
     8 * A result's output files are deleted after the workunit is assimilated.
     9   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.
    914
    1015Command-line options:
    1116
    1217 -d N:: set debug output level (1/2/3)
    13  -mod M R:: handle only WUs with ID mod M == R
    14  -one_pass:: exit after one pass through DB
    15  -dont_retry_errors:: Don't retry file deletions that failed previously.
    16  -dont_delete_antiques:: Don't delete antiques
    17  -delete_antiques_interval S:: change the interval between delete antique passes (S in seconds, defaults to 24h)
    18  -delete_antiques_limit N:: change the maximum number of files deleted in one delete antique pass (defaults to 50000)
    19  -preserve_wu_files::   Update the DB, but don't delete input files
    20  -preserve_result_files:: Update the DB, but don't delete output files
    21  -dont_delete_batches:: Don't delete anything with positive batch number
    22  -input_files_only:: Don't delete output files.  If you store input and output files on different servers, you can improve performance by running separate file deleters, each one on the machine where the corresponding files are stored.
    23  -output_files_only:: Don't delete input files.
    24  -sleep_interval N:: Sleep for N seconds between scans (default 5)
    25  -appid N:: only process workunits with appid=N
    26  -app S:: only process workunits of app with name S
     18 --mod M R:: handle only WUs with ID mod M == R
     19 --one_pass:: exit after one pass through DB
     20 --dont_retry_errors:: Don't retry file deletions that failed previously.
     21 --dont_delete_antiques:: Don't delete antiques
     22 --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 --preserve_wu_files::  Update the DB, but don't delete input files
     25 --preserve_result_files:: Update the DB, but don't delete output files
     26 --dont_delete_batches:: Don't delete anything with positive batch number
     27 --input_files_only:: Don't delete output files.
     28  If you store input and output files on different servers,
     29  you can improve performance by running separate file deleters,
     30  each one on the machine where the corresponding files are stored.
     31 --output_files_only:: Don't delete input files.
     32 --sleep_interval N:: Sleep for N seconds between scans (default 5)
     33 --appid N:: only process workunits with appid=N
     34 --app S:: only process workunits of app with name S
    2735
    2836If the web-server account on your system is not 'apache',
     
    3240In some cases you may not want files to be deleted. There are three ways to accomplish this:
    3341
    34  * Use the -preserve_wu_files and/or the -preserve_result_files command-line options.
     42 * Use the --preserve_wu_files and/or the --preserve_result_files command-line options.
    3543 * Include <no_delete/> in the [BoincFiles <file_info>]
    3644 element for a file in a [WorkGeneration workunit or result template]. This lets you suppress deletion on a file-by-file basis.
    3745 * Include nodelete in the workunit name.
    3846
    39 The antique files are deleted by using a Unix 'find' command to locate files that are older than the oldest workunit. The find command will work on NFS mounted file systems, and will ignore .nfs stale file markers. The output of find is limited by a 'head' to 50000 files by default.
     47The antique files are deleted by using a Unix 'find' command to locate files that are older than the oldest workunit.
     48The find command will work on NFS mounted file systems, and will ignore .nfs stale file markers.
     49The output of find is limited by a 'head' to 50000 files by default.