INSTALLATION:
1. Make a copy of this directory in your local area:
/afs/cern.ch/sw/arda/install/CMS/prototype/asap_2005_08_24/cms/ASAP
2. Modify in the setup scripts (*.sh, *.csh) the default
ASAP_LOCATION to be your asap directory.
3. Take a look in the directory in ASAP_LOCATION/service.
in the file crontab.listing one can see which kind of crontab
jobs you need to create for the monitor.
4. Remove from service/crontab.listing monitors 2, 3, 4 and
clean with there configs.
5. Change paths in crontab.listing.
6. Change hostname in ASAP/conf/asap.conf
Example:
host= xarda1502a.cern.ch
url=http://lxarda1502a.cern.ch (it means that you use a standard port).
7. Change directory names in conf/asap.conf:
Examples:
rootdir=/data/asap2 --> /home/berejnoi/ASAP_INSTALLATION/ASAP
dir-user=/data/asap2/user --> /home/berejnoi/ASAP_INSTALLATION/ASAP/service
dir-trace=/data/asap2/tracing --> /home/berejnoi/ASAP_INSTALLATION/ASAP/service/tracing
dir-unreg=/data/asap2/unregistered --> /home/berejnoi/ASAP_INSTALLATION/ASAP/service/unregistered
dir-monitoring=/data/asap2/monitoring --> /home/berejnoi/ASAP_INSTALLATION/ASAP/service/monitoring
dir-www=/data/asap2/www --> /home/berejnoi/ASAP_INSTALLATION/ASAP/service/www
www-url=http://asap-monitor.cern.ch:8088/user/ --> www-url=http://lxarda1502a.cern.ch/asap/
8. Install apache.
9. Create a directory somewhere in /tmp for htmls.
Example:
/tmp/asap/www
10. Create symbolic links as follows:
ln -s /tmp/asap/www /home/berejnoi/ASAP_INSTALLATION/ASAP/service/www
ln -s /tmp/asap/www /var/www/html/asap
11. Change in
asap-check-services.sh,
asap-run-job-monitor.sh,
asap-run-myproxy-monitor.sh
directory names.
- Example
- cd /home/berejnoi/ASAP_INSTALLATION/ASAP/service pushd /home/berejnoi/ASAP_INSTALLATION/ASAP > /dev/null
12. Write right new paths in crontab.listing
13. New version of apmon.py is needed for correct work.
14. Use command
crontab -e
to run cron scripts you need.
Just put into a pico screen the schedule for cron scripts and save it.
Examples:
SHELL=/bin/bash
MAILTO=berejnoi
#ASAP
58 * * * * /home/berejnoi/ASAP_INSTALLATION/ASAP/service/asap-check-services.sh
59 * * * * /home/berejnoi/ASAP_INSTALLATION/ASAP/service/asap-run-myproxy-monitor.sh
10,25,40,55 * * * * /home/berejnoi/ASAP_INSTALLATION/ASAP/service/asap-run-job-monitor.sh
* * * * * /home/berejnoi/ASAP_INSTALLATION/ASAP/service/asap-kill-hanging-edg.py
15. One can see what is happening with a job of user 'berejnoi'
in file monitoring/berejnoi/systemExecLog
Example:
tail -f monitoring/berejnoi/systemExecLog
16. To submit the job
in config file
you need to set
FinalDataSystem=FS if you want to put file on AFS.
JOB SUBMISSION (Example)
1. Setup LCG UI envaronment.
2. Set CMS_PATH variable value. It must be a path to the directory which
contains the standart CMS directory "Releases" (as at CERN lxplus claster).
3. Set SCRAM_ARCH if you need ORCA_8_7_*:
export SCRAM_ARCH=slc3_ia32_gcc323
4. pushd /afs/cern.ch/cms/Releases/ORCA/ORCA_8_7_*
eval `scram runtime -sh`
popd
or
pushd /afs/cern.ch/cms/Releases/ORCA/ORCA_8_8_0
eval `scramv1 runtime -sh`
popd
5. Correct a config file for ASAP (It is not the asap.conf file in the
ASAP installation directory).
Example:
1)
JobDir=/afs/cern.ch/user/b/berejnoi/jobsubmit/workdir
2)
FinalDataSystem=FS (to store data on a disk, RFIO to store data in
castor).
3)
FinalDataSystemPath=/afs/cern.ch/user/b/berejnoi/jobsubmit/data
(for castor case must point to castor directory).
4) Application=ORCA
ApplicationVersion=ORCA_8_7_3
5) Executable=/afs/cern.ch/cms/Releases/ORCA/ORCA_8_7_3/bin/slc3_ia32_gcc323/ExDigiStatistics
(path to the Executable).
7. Create proxy:
grid-proxy-init
8. Create long time proxy within ASAP:
asap-myproxy-init
9. Submit the jobs:
asap-job-make
ConfigFile=config.arda Nevents=200
NoSubmit
10.Register the jobs:
asap-job-monitor
TraceID=19665 Register=Submit ("Trace", not "Track")
TraceID is a number obtained during submission.
11.Now one can see what happens with the jobs on a web site with url,
which has been setup in asap.conf (see item 6 of INSTALLATION).
12.Unregister the jobs:
asap-job-monitor
TraceID=19665
UnRegister
-- Main.berejnoi - 06 Apr 2006