Difference: SystemAdministratorGuideForEMI2 (4 vs. 5)

Revision 52012-01-30 - MassimoSgaravatto

Line: 1 to 1
 
META TOPICPARENT name="SystemAdministratorDocumentation"

System Administrator Guide for CREAM for EMI-2 release

Line: 1292 to 1292
  JobAdminPurger allows to purge jobs based on their CREAM jobids and/or their status (considering how long the job is in that status).
Added:
>
>
Usage:

JobDBAdminPurger.sh  [-c|--conf CREAMConfPath] [-j|--jobIds jobId1:jobId2:...] | [-f|--filejobIds filenameJobIds] | [-s|--status statusType0,deltaTime:statusType1:...] [-h|--help]

Options:

  • -c | --conf : the CREAM conf file (to be specified only if it is not the standard value /etc/glite-ce-cream/cream-config.xml)
  • -j | --jobids: the IDs (list of values separated by ':') of the jobs to be purged
  • -f | --filejobIds: the file containing a list of jobids (one per line) to be purged
  • -s | --status: the list of state,deltatime (list of values separated by ':') of the jobs to be purged. A job is purged if it is in specified state for more that deltatime days. deltatime can be omitted (which means that all jobs in that status will be purged). The possible states are:

  • REGISTERED
  • PENDING
  • IDLE
  • RUNNING
  • REALLY-RUNNING
  • CANCELLED
  • HELD
  • DONE-OK
  • DONE-FAILED
  • PURGED
  • ABORTED

Examples:

JobDBAdminPurger.sh  -j CREAM217901296:CREAM324901232

JobDBAdminPurger.sh  -s registered:pending:idle

JobDBAdminPurger.sh  -s registered,3:pending:idle,5

JobDBAdminPurger.sh  -c /etc/glite-ce-cream/cream-config.xml --status registered:idle

JobDBAdminPurger.sh  --jobIds CREAM217901296:CREAM324901232

JobDBAdminPurger.sh  -f /tmp/jobIdsToPurge.txt

Please note that this script should be run just to clean the CREAM DB in case of problems (i.e. jobs reported in a non terminal status while this is not the case)

Please also note that this script purges jobs from the CREAM DB. The relevant job sandbox directories are also deleted.

 
Deleted:
<
<
TBC
 

0.1 Proxy purging

 
This site is powered by the TWiki collaboration platformCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback