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