IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Initial Version and Version 1 of Nebulous_FAQ


Ignore:
Timestamp:
Feb 24, 2009, 4:23:57 PM (17 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Nebulous_FAQ

    v1 v1  
     1=== What is Nebulous? ===
     2
     3Nebulous is the file distribution program for pantasks.  It takes a list of available hosts, and distributes the output files from any pantasks processing across those hosts, so that no one disk is being heavily abused by lots of file I/O.
     4
     5=== How do I configure nebulous? ===
     6In your site.config file, specify the nebulous server:
     7
     8 # nebulous server
     9 NEB_SERVER     STR     http://ipp004/nebulous/ # Nebulous server
     10
     11Set up a metadata config file that tells pantasks where to allow Nebulous to place files. 
     12This is the ipphosts.config file indicated in the server.pro script on the  [wiki:Pantasks_server_mode Pantasks_server_mode] page.
     13
     14=== How do I list the contents of a directory located by Nebulous? ===
     15
     16Use  '''neb-ls''' which is like 'ls' for nebulous.
     17
     18=== Nebulous has assigned a path, how do I find the file? ===
     19
     20e.g.  suppose you want to find some files that were processed with nebulous file assignments:
     21
     22<pre>
     23+------------------------------------+---------+-------------------------------------------------------------------------------+
     24| workdir                            | chip_id | path_base                                                                     |
     25+------------------------------------+---------+-------------------------------------------------------------------------------+
     26| neb://@HOST@.0/gpc1/scitest.200807 |     293 | neb://ipp009.0/gpc1/scitest.200807/o4642g0414o.19490/o4642g0414o.19490.ch.293 |
     27| neb://@HOST@.0/gpc1/scitest.200807 |     293 | neb://ipp011.0/gpc1/scitest.200807/o4642g0414o.19490/o4642g0414o.19490.ch.293 |
     28| neb://@HOST@.0/gpc1/scitest.200807 |     294 | neb://ipp009.0/gpc1/scitest.200807/o4642g0415o.19491/o4642g0415o.19491.ch.294 |
     29</pre>
     30
     31If you know the full nebulous name of the file (with extension) then you can use <code>ipp_datapath.pl</code>:
     32
     33<pre>
     34ipp_datapath.pl neb://ipp009.0/gpc1/scitest.200807/o4642g0414o.19490/o4642g0414o.19490.ch.293.XY10.ch.fits
     35
     36/data/ipp006.0/nebulous/ae/ed/3145232.gpc1:scitest.200807:o4642g0414o.19490:o4642g0414o.19490.ch.293.XY10.ch.fits
     37</pre>
     38
     39Alternatively, the program <code>neb-locate</code> is slightly faster.  Use the <code>--path</code> argument to return just the path to the file of interest, without the "file://" prefix (useful for scripting).
     40
     41
     42=== neb-locate says that "--server" is a required option, but I already set the NEB_SERVER in site.config! ===
     43
     44We don't have a solution for this.  (Please chime in if you do!)
     45
     46A workaround is just to give it what it wants.  Put this in your .tcshrc or equivalent:
     47
     48 alias neb-locate "neb-locate --server http://ipp004/nebulous/"
     49
     50(where you should replace the http:// part with the URL for whatever machine is running your nebulous server).
     51
     52=== A pantasks process failed, where did Nebulous put  the .trace and .log files? ===
     53
     54First, figure out the base path of the output files you are looking for.  This may appear in the error stream on pantasks, or you can query the MySQL database, or dig it out of ippMonitor, or (perhaps?) use one of the ippTools.  Once you have path_base, you need to determine the extension that your trace or log file has.   If it was a chip-level process that failed, then you need to know which chip.  This is stored in the  "class_id"  column of the chipProcessedImfile table in mySQL.   Then you can tack on the .log or .trace extension to finish off the query. 
     55
     56Here is an example:
     57
     58 * path_base = neb://ipp036.0/gpc1/MD09.SR/o4678g0219o.24452/o4678g0219o.24452.ch.2584
     59 * class_id = XY01
     60 * command :
     61  neb-locate neb://ipp036.0/gpc1/MD09.SR/o4678g0219o.24452/o4678g0219o.24452.ch.2584.XY01.log