IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Version 1 and Version 2 of DistribFileSets


Ignore:
Timestamp:
Apr 9, 2009, 10:37:55 AM (17 years ago)
Author:
bills
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DistribFileSets

    v1 v2  
    11== Contents of IPP Distribution File Sets ==
     2Distribution bundles are built and placed in file sets on the outgoing data store by the
     3server side of the ipp distribution system.
     4
     5Each destination site runs the client sideis programmed to query a particular data store
     6product for new filesets.
     7
     8Fileset Names
     9-------------
     10Runs that are the result of a particular exposure
     11
     12
     13    $exp_name.$stage.$stage_id.$dist_id.$prod_id
     14
     15$exp_name is rawExp.exp_name
     16$stage is raw, chip, camera, fake, warp, or diff
     17$dist_id is distRun.dist_id       (This table is internal to the server side of the distribution system)
     18$prod_id is rcDSProduct.prod_id   (This table is internal to the server side of the distribution system)
     19
     20
     21Examples
     22
     23
     24
     25
     26    o4741g0239o.raw.36625.27.1
     27    o4741g0239o.chip.11955.2.1
     28
     29
     30For stackRun distributions the fileset name is
     31
     32 
     33   $stack.$stack_id.$dist_id.$prod_id
     34
     35
     36for example
     37
     38
     39    stack.9554.42.2
     40
     41
     42The name of detrend filesets is TBD.
     43
     44
     45Contents of the fileset
     46-----------------------
     471) An mdc file containing the database information for the run with the name
     48
     49    dbinfo.$stage.$stage_id.mdc
     50
     51for example
     52
     53    dbinfo.chip.11955.mdc
     54
     55This file is the output from the -exportrun mode of the stage's ippTool (regtool, chiptool, etc).
     56If the run is exported with the -clean option when the run is in full state
     57the state and data state are changed from 'full' to 'cleaned'
     58
     59XXX: Should we be doing something with the nebulous paths in this file here? Here I assume this
     60is the client's job.
     61
     622) A set of gzipped tar files containing the files for a given component of the run.
     63
     64For stages raw, chip, camera, and fake the name of the file for each component is
     65
     66    basename($component_path_base).$class_id.tgz
     67
     68and for stages warp, diff, and stack the filenames are
     69
     70    basename($component_path_base).tgz
     71
     72For example the files for chip XY01 for chipRun 11955 the path_base is
     73
     74    neb://anyhost/md01_20081002/o4741g0239o.36625/o4741g0239o.36625.ch.11955
     75
     76so the name of the tarfile is
     77
     78    o4741g0239o.36625.ch.11955.XY05.tgz
     79
     80The filenames in the tarfile are the basenames of the nebulous paths. For example
     81
     82        % tar tf  o4741g0239o.36625.ch.11955.XY05.tgz
     83        ./
     84        ./o4741g0239o.36625.ch.11955.XY05.ppImage.mdc
     85        ./o4741g0239o.36625.ch.11955.XY05.b2.fits
     86        ./o4741g0239o.36625.ch.11955.XY05.stats
     87        ./o4741g0239o.36625.ch.11955.XY05.cmf
     88        ./o4741g0239o.36625.ch.11955.XY05.trace
     89        ./o4741g0239o.36625.ch.11955.XY05.log
     90        ./o4741g0239o.36625.ch.11955.XY05.mdl.fits
     91        ./o4741g0239o.36625.ch.11955.XY05.b1.fits
     92
     93
     94Notes on the process of importing the data into the mirror system
     95------------------------------------------------------------------
     96The client system runs a task that queries the ipp distribution data store product for new
     97filesets
     98
     99        dsproductls --uri $uri --last_fileset $last_fileset_processed
     100
     101For each fileset to be downloaded
     102        dsget each file in the fileset to local temporary storage
     103
     104        parse the dbinfo file to find the workdirs and path_base
     105        foreach component
     106            edit paths as necessary for the mirror installation
     107            foreach file insert into nebulous
     108        import the dbinfo into the database using xxxtool -importrun
     109
     110ISSUES/Question?
     111---------------
     112