IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Version 6 and Version 7 of shepherding_the_pstamp_server


Ignore:
Timestamp:
Jun 23, 2011, 1:21:13 PM (15 years ago)
Author:
bills
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • shepherding_the_pstamp_server

    v6 v7  
    1212
    1313Each file is represented in the database by a row in the table pstampRequest. The request starts
    14 life in state 'new'. Once it is done parsing the state is set to 'run'. Request files are parsed into jobs by the task pstamp.job.run. The working directory for a request is /data/ippdb02.0/pstamp/work/$datestr/$req_id.
     14life in state 'new'. Once it is done parsing the state is set to 'run'. Request files are parsed into jobs by the task pstamp.job.run. The working directory for a request is /data/ippc17.0/pstamp/work/$datestr/$req_id.
    1515
    1616For example here is the entry for a request while it is being parsed
     
    3232Each row in the request table contains a request specification. Each row causes one or more pstampJobs to
    3333be entered into the database. Jobs are often entered with state = 'stop' and fault > 10. These are due
    34 to requests wanting images that haven't been destreaked or have been purged, bycoord requests that
    35 have no images or errors in the request. The set of errors is listed at the bottom of this page.
     34to requests for images that can not be satisfied. The set of errors is listed at the bottom of this page.
    3635
    37 Once the file has completed parsing successfully it's state is set to 'run'. Once the request is
     36Once the request table has completed parsing successfully it's state is set to 'run'. Once the request is
    3837in state run its jobs are eligible to run and will be output by pstamptool -pendingjob
    3938
     
    4948the outdir of the first request that needs the component.
    5049
    51 Dependents can start being processed before parsing completes. The -pendingdependent query is
    52 
    53 
    54 {{{
    55 SELECT DISTINCT
    56     pstampDependent.*,
    57     IFNULL(Label.priority, 10000) AS priority
    58 FROM pstampDependent
    59 JOIN pstampJob USING(dep_id)
    60 JOIN pstampRequest USING(req_id)
    61 LEFT JOIN Label ON pstampRequest.label = Label.label
    62 WHERE pstampDependent.state = 'new'
    63     AND pstampDependent.fault = 0
    64     AND pstampJob.state = 'run'
    65     AND (pstampRequest.state = 'run' OR pstampRequest.state = 'new')
    66     AND (Label.active OR Label.active IS NULL)
    67  ORDER BY priority DESC, req_id  LIMIT 1
    68 
    69 }}}
    70 
    7150
    7251
     
    8160
    8261
    83 Since the postage stamp / data store database is on ippdb02 and not ippdb01
     62Since the postage stamp / data store database is on ippc17 and not ippdb01
    8463some care must be taken when running commands.
    8564
    86 I define the environment variable PSDBSERVER=ippdb02 and the alias
     65I define the environment variable PSDBSERVER=ippc17 and the alias
    8766
    8867 
     
    11998
    12099Requests can fault for two reasons either at the parse stage or when finishing the request. Request
    121 faults rarely happen and are usually due to software bug. pst -revertreq doesn't work for requests that
    122 haven't finished parsing. (The scripts set the state to run when it shouldn't. I don't want to fix this
    123 problem right now. I want to be sure I don't break anything).
     100faults rarely happen and are usually due to software bug.
    124101
    125102Jobs can fault due to typical nfs errors. There is a revert task for jobs. It only resets jobs with
    126 fault > 0 and < 10. Faults >= 10 are faults for the users. Jobs which are faulted in this way should
     103fault > 0 and < 10. Faults >= 10 are faults that are to be reported to the users. Jobs which are faulted in this way should
    127104have had their state set to stop thus they are finished.
    128105
     
    167144to avoid faulted dependents from filling up the pantasks queue thus preventing other dependents from running.
    168145
    169 Once the chip fault has been cleared
     146Later the dependent fault will be reverted and the dependency checking will run again. Hopefully the chip fault
     147will have reverted and finished. After some number of dependency faults (3 currently) the server gives up
     148and faults the job.
     149
     150So if we have long periods of cluster trouble, postage stamp users will get lots of failed jobs.
    170151
    171152
     
    199180== Monitoring the Apache Server ==
    200181
    201 It is a good idea to check the Apache error log (/var/log/apace2/error_log) from time to time to look for unusual activity. On June 4 I found a user furtively looking for a results file for a request that was submitted May 24.
     182It is a good idea to check the Apache error log (/var/log/apace2/error_log) from time to time to look for unusual activity. On June 4, 2010 I found a user furtively looking for a results file for a request that was submitted May 24, 2010.
    202183
    203184