| | 2 | Distribution bundles are built and placed in file sets on the outgoing data store by the |
| | 3 | server side of the ipp distribution system. |
| | 4 | |
| | 5 | Each destination site runs the client sideis programmed to query a particular data store |
| | 6 | product for new filesets. |
| | 7 | |
| | 8 | Fileset Names |
| | 9 | ------------- |
| | 10 | Runs 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 | |
| | 21 | Examples |
| | 22 | |
| | 23 | |
| | 24 | |
| | 25 | |
| | 26 | o4741g0239o.raw.36625.27.1 |
| | 27 | o4741g0239o.chip.11955.2.1 |
| | 28 | |
| | 29 | |
| | 30 | For stackRun distributions the fileset name is |
| | 31 | |
| | 32 | |
| | 33 | $stack.$stack_id.$dist_id.$prod_id |
| | 34 | |
| | 35 | |
| | 36 | for example |
| | 37 | |
| | 38 | |
| | 39 | stack.9554.42.2 |
| | 40 | |
| | 41 | |
| | 42 | The name of detrend filesets is TBD. |
| | 43 | |
| | 44 | |
| | 45 | Contents of the fileset |
| | 46 | ----------------------- |
| | 47 | 1) An mdc file containing the database information for the run with the name |
| | 48 | |
| | 49 | dbinfo.$stage.$stage_id.mdc |
| | 50 | |
| | 51 | for example |
| | 52 | |
| | 53 | dbinfo.chip.11955.mdc |
| | 54 | |
| | 55 | This file is the output from the -exportrun mode of the stage's ippTool (regtool, chiptool, etc). |
| | 56 | If the run is exported with the -clean option when the run is in full state |
| | 57 | the state and data state are changed from 'full' to 'cleaned' |
| | 58 | |
| | 59 | XXX: Should we be doing something with the nebulous paths in this file here? Here I assume this |
| | 60 | is the client's job. |
| | 61 | |
| | 62 | 2) A set of gzipped tar files containing the files for a given component of the run. |
| | 63 | |
| | 64 | For 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 | |
| | 68 | and for stages warp, diff, and stack the filenames are |
| | 69 | |
| | 70 | basename($component_path_base).tgz |
| | 71 | |
| | 72 | For 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 | |
| | 76 | so the name of the tarfile is |
| | 77 | |
| | 78 | o4741g0239o.36625.ch.11955.XY05.tgz |
| | 79 | |
| | 80 | The 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 | |
| | 94 | Notes on the process of importing the data into the mirror system |
| | 95 | ------------------------------------------------------------------ |
| | 96 | The client system runs a task that queries the ipp distribution data store product for new |
| | 97 | filesets |
| | 98 | |
| | 99 | dsproductls --uri $uri --last_fileset $last_fileset_processed |
| | 100 | |
| | 101 | For 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 | |
| | 110 | ISSUES/Question? |
| | 111 | --------------- |
| | 112 | |