IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16165


Ignore:
Timestamp:
Jan 19, 2008, 3:26:00 AM (18 years ago)
Author:
eugene
Message:

working on chip/hosts

Location:
branches/eam_branch_20080109/ippTasks
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080109/ippTasks/notes.txt

    r15313 r16165  
     1
     22008.01.18
     3
     4  I'm working on the summit.copy.pro interaction with nebulous (and
     5  those of the other ippTasks) and the assignment of jobs and data
     6  locations to hosts on the basis of the chip/host relationship.  I
     7  have defined a table which relates the chip (class_id) to the
     8  desired host name.  There are a few places, and a few slightly
     9  different ways, in which this gets used:
     10
     11  * choice of host for command execution:
     12
     13    every job which operates on a specific chip must be told the chip
     14    host so it can run the job on that machine.  the information is
     15    supplied in pantasks to the job with the 'host' command.  I've
     16    made a pantasks macro 'set.host.by.camera' which takes the camera
     17    and class_id, looks up the match in the chip/host table, and calls
     18    the host command with the desired host.  If there is no match
     19    (camera not listed in chip/host table or chip not listed in
     20    table), the host is set to 'anyhost', which randomly chooses one.
     21    I have used this command for all tasks which generate a pcontrol
     22    command.  For the tasks which are performed at the camera level,
     23    these are set to anyhost.  For the tasks which operate on stacks,
     24    we can use the same structure to associate the skycell with a
     25    host. 
     26
     27  * dsget output target:
     28
     29    dsget is called by pantasks in the task 'dsget'.  currently, dsget
     30    accepts a --filename argument which specifies the output filename
     31    to use.  we have to tell t
     32 
     33
     34  * choice of output directory.   
     35
     36    the
     37
    138
    2392007.10.11
  • branches/eam_branch_20080109/ippTasks/pantasks.pro

    r16149 r16165  
    340340end
    341341
     342macro set.workdir.by.camera
     343  if ($0 != 3)
     344    echo "USAGE: set.workdir.by.camera (camera) (class_id)"
     345    break
     346  end
     347
     348  if (not($parallel))
     349    ???
     350    return
     351  end
     352
     353  # missing camera and/or chiphosts table results in host = NULL
     354  book getword chiphosts $1 $2 -var $host
     355
     356  if ("$host" == "NULL")
     357    ???
     358    return
     359  end
     360
     361  $workdir = /data/$host.0
     362end
     363
    342364macro set.host.by.camera
    343365  if ($0 != 3)
Note: See TracChangeset for help on using the changeset viewer.