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 fitsdump
|
---|
14 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/swdev_nfs/FACT++/.libs
|
---|
15 | export LC_ALL="en_US.UTF-8"
|
---|
16 |
|
---|
17 |
|
---|
18 | # setup to use ROOT
|
---|
19 | root=/swdev_nfs/root_v5.32.00/bin/thisroot.sh
|
---|
20 | source $root
|
---|
21 |
|
---|
22 | # software versions
|
---|
23 | export factpath=/swdev_nfs/FACT++
|
---|
24 | export mars=~/Mars.svn.r18753
|
---|
25 |
|
---|
26 | corsikapath=/home/projects/fact_opr/corsika-75000/run
|
---|
27 | corsika=corsika75000Linux_QGSJET_fluka
|
---|
28 | flukapath=/home/projects/fact_opr/fluka
|
---|
29 |
|
---|
30 | # site
|
---|
31 | processingsite=isdc
|
---|
32 | sitekey=4
|
---|
33 | storagesite=isdc
|
---|
34 |
|
---|
35 | # queuing system
|
---|
36 | queuesys=sge
|
---|
37 | sgepath=/usr/bin
|
---|
38 |
|
---|
39 | # logging and setup
|
---|
40 | logpath=~/logs.automatic.processing/autologs
|
---|
41 | lockpath=~/logs.automatic.processing/locks
|
---|
42 | rsynctempdir=/scratch/rsync_tmp
|
---|
43 |
|
---|
44 | # data paths
|
---|
45 | #datapath=/scratch/fact/data.2013.05.11
|
---|
46 | datapath=/gpfs0/fact/processing/data.r18753
|
---|
47 | datapath_for_sed=$(printf "%s\n" "$datapath" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
---|
48 | drstimepath=/gpfs0/fact/processing/drs_time_calib
|
---|
49 | #seqpath=/scratch/fact/sequences
|
---|
50 | seqpath=/gpfs0/fact/processing/sequences
|
---|
51 | auxdata=/fact/aux
|
---|
52 | auxdata_for_sed=$(printf "%s\n" "$auxdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
---|
53 | rawdata=/fact/raw
|
---|
54 | rawdata_for_sed=$(printf "%s\n" "$rawdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
---|
55 | # rawdata and ziprawdata are the same
|
---|
56 | # variable $ziprawdata needed for FillAuxData.sh
|
---|
57 | ziprawdata=/fact/raw
|
---|
58 | ziprawdata_for_sed=$(printf "%s\n" "$rawdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
---|
59 |
|
---|
60 | # get paths for mars, macros and scripts
|
---|
61 | # in case the variable is not yet set
|
---|
62 | if [ "$mars" == "" ]
|
---|
63 | then
|
---|
64 | mars=`dirname $0 | sed -e 's/\/datacenter\/scripts//'`
|
---|
65 | fi
|
---|
66 | macrospath=$mars/datacenter/macros
|
---|
67 | scriptspath=`dirname $0`
|
---|
68 |
|
---|
69 | # rcfiles
|
---|
70 | # dependencies of steps
|
---|
71 | steps=$scriptspath/../Setup/steps_fact_isdc.rc
|
---|
72 | # file with db information
|
---|
73 | sqlrc=$mars/sql.rc
|
---|
74 |
|
---|
75 |
|
---|
76 | #addresses to which information about full disks is sent
|
---|
77 | deladrs="shift@fact-project.org"
|
---|
78 | #addresses to which the errors are sent
|
---|
79 | erradrs="dorner@astro.uni-wuerzburg.de"
|
---|
80 | #addresses to which the changes are sent
|
---|
81 | adrs="dorner@astro.uni-wuerzburg.de"
|
---|
82 |
|
---|
83 |
|
---|
84 | #
|
---|
85 | #setup for jobmanager
|
---|
86 | #
|
---|
87 | sleeptime=300 #600 #30
|
---|
88 | sleeptimelimit=360 #360
|
---|
89 | errorsleeptimedefault=60 #60
|
---|
90 |
|
---|
91 | algorithm=2
|
---|
92 |
|
---|
93 | #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
|
---|
94 | 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 )
|
---|
95 | 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 )
|
---|
96 |
|
---|
97 | # set variables for jobmanager
|
---|
98 | scripts=( "RunCallisto.sh" "RunStar.sh" )
|
---|
99 | queues=( "fact_medium" "fact_short" )
|
---|
100 | scriptscolname=( "Callisto" "Star" )
|
---|
101 | ratio=( 0.6 0.4 )
|
---|
102 | maxjobs=( 25 50 )
|
---|
103 |
|
---|
104 | # fact_short 1h 192 slots
|
---|
105 | # fact_medium 6h 128 slots
|
---|
106 | # fact_long 168h 64 slots
|
---|
107 |
|
---|
108 | # further wishlist: adapt ratio automatically
|
---|
109 |
|
---|
110 | # setup for warning/errors
|
---|
111 | # print warnings/errors (eg for missing files) only after a delay of few days to account for transfer
|
---|
112 | transferdelay=3 #days
|
---|
113 | checknight=`date +%Y%m%d --date="-${transferdelay}day"`
|
---|
114 |
|
---|
115 | # setup transfer
|
---|
116 | numrsyncwuelimit=3
|
---|
117 |
|
---|
118 | # setup for qla
|
---|
119 | anapath=$datapath
|
---|
120 | qlasge="yes"
|
---|
121 | resulttable1="AnalysisResultsRunISDC"
|
---|
122 | resulttable2="AnalysisResultsNightISDC"
|
---|
123 | firstnight=20111115
|
---|
124 |
|
---|