IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Initial Version and Version 1 of DVO_Parallel


Ignore:
Timestamp:
May 30, 2012, 3:21:29 PM (14 years ago)
Author:
eugene
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DVO_Parallel

    v1 v1  
     1== Parallel Operations and DVO ==
     2
     3DVO now has a parallel mode.  This page is meant to describe at a high level how this works in software and user guidance for working with a parallelized DVO database.
     4
     5=== Parallel Tables and the HostTable ===
     6
     7A parallelized DVO database has the Image and other top-level tables stored on a single machine (top-level host) in the primary CATDIR, while all of the average, measure, secfilt, missing (optional) tables are stored in a parallel set of directories on multiple machines.  Parallel operations are initiated on the top-level host machine, with the database of interest specified as usual with the catdir command (in dvo shell) or the CATDIR config variable.  Queries which need to interact with the parallel tables are sent to a remote client program.  The remote client may do some work or simply return the results of a query (presumably with the total amount of data substantially reduced).  The DVO program on the top-level host collects the results and uses them if needed for further operations locally.
     8
     9The remote machines and directories are managed with the file CATDIR/HostTable.dat.  This file contains one line for each remote host.  Line which start with '#' are comments and ignored, as are empty lines.  Each host listed in the table is associated with a host ID (integer > 0) and a directory where the remote data is stored.  A single real computer may be represented more than once, with different directories for each entry and different host ID values.
     10
     11The distribution of the remote files is managed with the program {{{dvodist}}} and tracked in the SkyTable table.  This table includes fields to identify the (primary) host id, an optional backup host ID, and a set of flags to track if the given table is available from the primary or backup location (or from the top-level host). 
     12
     13By default, the program dvodist will assign random hosts to each of the table sets.  (XXX: add user guide to dvodist)
     14
     15When table are distributed to the remote hosts, a soft link is created on the original top-level host pointing at the new location.
     16This last feature means that any DVO function can work with parallel DVO without modifcation.  (However, this might be quite slow).
     17
     18Interacting with a parallelized DVO database is not completely user friendly.  First, it requires the user to make informed decisions about which database and which commands should be run in a parallel mode.  Second, I/O timeouts on the remote host can occasionally cause trouble and the user must be cautions of these errors.
     19
     20=== Parallel Queries in dvo shell ===
     21
     22The following dvo shell commands are parallelized.  To perform them in parallel on a parallelized DVO, add the option {{{-parallel}}}
     23
     24 * avextract
     25 * avmatch
     26 * mextract
     27 * gstar
     28
     29In addition, the following utility functions are helpful with parallel DVO operations:
     30
     31 * catlist : return a list of region files include in the given region
     32   * with -this-host, limit to files associated with this remote host
     33   * with -parallel-local, give the list of local file names as instead of the remote ones
     34 * catstats : give information about the catalog files
     35   * with -this-host, limit to files associated with this remote host
     36 * remote : perform the given command on the remote hosts (this can be used to perform more complex remote operations)
     37
     38=== Other Parallelized DVO Tools ===
     39
     40The following programs / program options have been parallelized.   To perform them in parallel on a parallelized DVO, add the option {{{-parallel}}}
     41
     42 * relphot
     43 * relastro
     44 * photdbc
     45 * addstar -resort
     46 * dvomerge : perform merge of serial db into parallel db
     47 * setphot
     48