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 | rootsys=/swdev_nfs/root_v5.32.00
|
---|
15 | if ! export | grep ROOTSYS | grep $rootsys >|/dev/null
|
---|
16 | then
|
---|
17 | export ROOTSYS=$rootsys
|
---|
18 | export PATH=$PATH:$ROOTSYS/bin
|
---|
19 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
|
---|
20 | fi
|
---|
21 |
|
---|
22 | # software versions
|
---|
23 | export factpath=/swdev_nfs/FACT++
|
---|
24 | export mars=~/Mars.von.Thomas.2012.06.22
|
---|
25 |
|
---|
26 | # site
|
---|
27 | processingsite=isdc
|
---|
28 | sitekey=4
|
---|
29 | storagesite=isdc
|
---|
30 |
|
---|
31 | # queuing system
|
---|
32 | queuesys=sge
|
---|
33 | sgepath=/usr/bin
|
---|
34 |
|
---|
35 | # logging and setup
|
---|
36 | logpath=~/datacenter/autologs
|
---|
37 | lockpath=~/datacenter/locks
|
---|
38 | rsynctempdir=/scratch/rsync_tmp
|
---|
39 |
|
---|
40 | # data paths
|
---|
41 | datapath=/scratch_nfs/data.2012.06.22
|
---|
42 | seqpath=/scratch_nfs/sequences
|
---|
43 | auxdata=/fact/aux
|
---|
44 | rawdata=/fact/raw
|
---|
45 | rawdata_for_sed=$(printf "%s\n" "$rawdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
---|
46 | # rawdata and ziprawdata are the same
|
---|
47 | # variable $ziprawdata needed for FillAuxData.sh
|
---|
48 | ziprawdata=/fact/raw
|
---|
49 | ziprawdata_for_sed=$(printf "%s\n" "$rawdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
---|
50 |
|
---|
51 | # get paths for mars, macros and scripts
|
---|
52 | # in case the variable is not yet set
|
---|
53 | if [ "$mars" == "" ]
|
---|
54 | then
|
---|
55 | mars=`dirname $0 | sed -e 's/\/datacenter\/scripts//'`
|
---|
56 | fi
|
---|
57 | macrospath=$mars/datacenter/macros
|
---|
58 | scriptspath=`dirname $0`
|
---|
59 |
|
---|
60 | # rcfiles
|
---|
61 | # dependencies of steps
|
---|
62 | steps=$scriptspath/../Setup/steps_fact_isdc.rc
|
---|
63 | # file with db information
|
---|
64 | sqlrc=$mars/sql.rc
|
---|
65 |
|
---|
66 |
|
---|
67 | #addresses to which the errors are sent
|
---|
68 | erradrs="daniela.dorner@unige.ch"
|
---|
69 | #addresses to which the changes are sent
|
---|
70 | adrs="daniela.dorner@unige.ch"
|
---|
71 |
|
---|
72 |
|
---|
73 | #
|
---|
74 | #setup for jobmanager
|
---|
75 | #
|
---|
76 | sleeptime=150 #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=( 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 )
|
---|
84 | pnototalwe=( 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 )
|
---|
85 |
|
---|
86 | # set variables for jobmanager
|
---|
87 | scripts=( "RunCallisto.sh" "RunStar.sh" )
|
---|
88 | scriptscolname=( "Callisto" "Star" )
|
---|
89 | ratio=( 0.6 0.4 )
|
---|
90 | maxjobs=( 20 10 )
|
---|
91 |
|
---|
92 |
|
---|
93 | # further wishlist: adapt ratio automatically
|
---|
94 |
|
---|