1 | #!/bin/bash
|
---|
2 | #
|
---|
3 | # This a resource file for the scripts, in which paths, variables
|
---|
4 | # and setups are defined
|
---|
5 | #
|
---|
6 | # This setup file is for the machines on the FACT cluster at ISDC
|
---|
7 | #
|
---|
8 |
|
---|
9 | # setup to use ftools
|
---|
10 | export HEADAS=/swdev_nfs/heasoft-6.11.1/x86_64-unknown-linux-gnu-libc2.12
|
---|
11 | export HEADASPROMPT=/dev/null
|
---|
12 |
|
---|
13 | # setup to use ROOT
|
---|
14 | root=/swdev_nfs/root_v5.32.00/bin/thisroot.sh
|
---|
15 | source $root
|
---|
16 |
|
---|
17 | # software versions
|
---|
18 | export factpath=/swdev_nfs/FACT++
|
---|
19 | export mars=~/Mars.svn.r18330
|
---|
20 |
|
---|
21 | # site
|
---|
22 | processingsite=isdc
|
---|
23 | sitekey=4
|
---|
24 | storagesite=isdc
|
---|
25 |
|
---|
26 | # queuing system
|
---|
27 | queuesys=sge
|
---|
28 | sgepath=/usr/bin
|
---|
29 |
|
---|
30 | # logging and setup
|
---|
31 | logpath=~/logs.automatic.processing/autologs
|
---|
32 | lockpath=~/logs.automatic.processing/locks
|
---|
33 | rsynctempdir=/scratch/rsync_tmp
|
---|
34 |
|
---|
35 | # data paths
|
---|
36 | #datapath=/scratch/fact/data.2013.05.11
|
---|
37 | datapath=/gpfs0/fact/processing/data.r18330
|
---|
38 | datapath_for_sed=$(printf "%s\n" "$datapath" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
---|
39 | drstimepath=/gpfs0/fact/processing/drs_time_calib
|
---|
40 | seqpath=/scratch/fact/sequences
|
---|
41 | auxdata=/fact/aux
|
---|
42 | auxdata_for_sed=$(printf "%s\n" "$auxdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
---|
43 | rawdata=/fact/raw
|
---|
44 | rawdata_for_sed=$(printf "%s\n" "$rawdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
---|
45 | # rawdata and ziprawdata are the same
|
---|
46 | # variable $ziprawdata needed for FillAuxData.sh
|
---|
47 | ziprawdata=/fact/raw
|
---|
48 | ziprawdata_for_sed=$(printf "%s\n" "$rawdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
---|
49 |
|
---|
50 | # get paths for mars, macros and scripts
|
---|
51 | # in case the variable is not yet set
|
---|
52 | if [ "$mars" == "" ]
|
---|
53 | then
|
---|
54 | mars=`dirname $0 | sed -e 's/\/datacenter\/scripts//'`
|
---|
55 | fi
|
---|
56 | macrospath=$mars/datacenter/macros
|
---|
57 | scriptspath=`dirname $0`
|
---|
58 |
|
---|
59 | # rcfiles
|
---|
60 | # dependencies of steps
|
---|
61 | steps=$scriptspath/../Setup/steps_fact_isdc.rc
|
---|
62 | # file with db information
|
---|
63 | sqlrc=$mars/sql.rc
|
---|
64 |
|
---|
65 |
|
---|
66 | #addresses to which information about full disks is sent
|
---|
67 | deladrs="shift@fact-project.org"
|
---|
68 | #addresses to which the errors are sent
|
---|
69 | erradrs="dorner@astro.uni-wuerzburg.de"
|
---|
70 | #addresses to which the changes are sent
|
---|
71 | adrs="dorner@astro.uni-wuerzburg.de"
|
---|
72 |
|
---|
73 |
|
---|
74 | #
|
---|
75 | #setup for jobmanager
|
---|
76 | #
|
---|
77 | sleeptime=300 #600 #30
|
---|
78 | sleeptimelimit=360 #360
|
---|
79 | errorsleeptimedefault=60 #60
|
---|
80 |
|
---|
81 | algorithm=2
|
---|
82 |
|
---|
83 | #hour: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
---|
84 | pnototal=( 180 180 180 180 180 180 180 180 180 180 180 180 180 180 180 180 180 180 180 180 180 180 180 180 )
|
---|
85 | pnototalwe=( 180 180 180 180 180 180 180 180 180 180 180 180 180 180 180 180 180 180 180 180 180 180 180 180 )
|
---|
86 |
|
---|
87 | # set variables for jobmanager
|
---|
88 | scripts=( "RunCallisto.sh" "RunStar.sh" )
|
---|
89 | queues=( "fact_medium" "fact_short" )
|
---|
90 | scriptscolname=( "Callisto" "Star" )
|
---|
91 | ratio=( 0.6 0.4 )
|
---|
92 | maxjobs=( 25 5 )
|
---|
93 |
|
---|
94 | # fact_short 1h 192 slots
|
---|
95 | # fact_medium 6h 128 slots
|
---|
96 | # fact_long 168h 64 slots
|
---|
97 |
|
---|
98 | # further wishlist: adapt ratio automatically
|
---|
99 |
|
---|
100 | # setup transfer
|
---|
101 | numrsyncwuelimit=3
|
---|
102 |
|
---|
103 | # setup for qla
|
---|
104 | anapath=$datapath
|
---|
105 | qlasge="yes"
|
---|
106 | resulttable1="AnalysisResultsRunISDC"
|
---|
107 | resulttable2="AnalysisResultsNightISDC"
|
---|
108 | firstnight=20111115
|
---|
109 |
|
---|