TWiki
>
AtlasCanada Web
>
DistributedAnalysisTutorial
>
CronusGanga
(2026-10-05,
AsokaDeSilva
)
(raw view)
E
dit
A
ttach
---+ Introduction %BR%%BR%%BR%%BR%%BR% %X% *WARNING:* This page is obsolete. %BR%%BR%%BR%%BR%%BR% Cronus makes use of Condor glide-in processes running on worker nodes to send user jobs directly to the resource without the usual temperamental Grid machinery. This ensures that your job has a very good chance of succeeding. Cronus looks and feels like a local batch system, but the batch nodes are distributed around the grid. This gives significant advantages over the likes of LCG WMS in the performance, reliability and usability. It also gives perks such as live log updates to your desktop, and updates statistics on the cpu and RAM usage of your jobs. Cronus is in use for the MC production system, and has been integrated into Ganga for this workshop in order to let users take a look. It is not yet production quality, in terms of the ATLAS deployment, but could quickly become so if people like it. CDF pioneered the glide-in usage and have been using it for some time now. ---+ Hello World In your workarea, create a test directory and a place for the outputs <verbatim> mkdir -p CronusTest/outputs cd CronusTest</verbatim> Create some jdl helloWorld.jdl. It is not the same format as LCG WMS, but has similarities. <verbatim> Universe = vanilla Executable = /bin/hostname Arguments = -f dir=outputs output = $(dir)/$(Cluster).$(Process).out error = $(dir)/$(Cluster).$(Process).err log = /tmp/$ENV(USER)/SubmissionLog stream_output = True stream_error = True # To prevent filesystemdomain requirment. should_transfer_files = YES when_to_transfer_output = ON_EXIT queue 1</verbatim> and submit 1 test job. <verbatim> condor_submit helloWorld.jdl</verbatim> Check the status with condor_q [-l] , and see the output in CronusTest /outputs. Submit more jobs with "queue 10". ---+ Ganga hello world Cronus is integrated as a backend, just like LCG(), so only minor changes to your examples are needed. The workspace needs to be on a shared area because the Schedd is not on the submit machine(in the toronto setup). Therefore the tutorial instruction to put the workspace on the local disk, in .gangarc, must be undone for Cronus. <verbatim> #topdir=/data0/workshop/<username>/workspace</verbatim> will set it back to the shared home area. ~/gangadir/workspace/ I assume you can run ganga scripts, e.g. <verbatim> In [1]:execfile('/home/rodwalker/Ganga_scripts/cronus.sub')</verbatim> where cronus.sub is <verbatim> j=Job() j.application=Executable(exe='/bin/hostname',args=['-f']) j.backend=Cronus() j.backend.priority=998 #j.backend.requirements.CEs=['lcgce01.triumf.ca'] j.submit()</verbatim> This will match to glide-ins at TRIUMF and put output to gangadir/workspace/Local/NNN/output/. ---+ Ganga analysis job This assumes your testarea is setup etc. Create or modify anal.sub and execute <verbatim> j = Job() j.name='Ex3_3_1' j.application=Athena() j.application.prepare(athena_compile=False) j.application.option_file='$HOME/workarea/PhysicsAnalysis/AnalysisCommon/UserAnalysis/run/AnalysisSkeleton_topOptions.py' j.application.max_events='100' j.splitter=AthenaSplitterJob() j.splitter.numsubjobs=1 j.merger=AthenaOutputMerger() j.inputdata=DQ2Dataset() j.inputdata.dataset="trig1_misal1_csc11.005145.PythiaZmumu.recon.AOD.v12000501_tid005264" j.inputdata.type='DQ2_LOCAL' #j.inputdata.match_ce=True j.outputdata=ATLASOutputDataset() j.outputsandbox=['AnalysisSkeleton.aan.root'] j.backend=Cronus() j.backend.priority=998 #j.backend.requirements.CEs=['lcgce01.triumf.ca'] #j.backend.requirements.CEs=['bigmac-lcg-ce.physics.utoronto.ca'] j.backend.requirements.excludedCEs=['rubbish.ce','worse.ce'] j.submit()</verbatim> This time you should be able to see the stdout/stderr grow in almost realtime as the job runs. This particular dataset is complete at both TRIUMF and TORONTO, and, since there are only glide-ins on these 2 sites, the requirement need not be set and the jobs will run on the first available resource. This dataset has 19 files so to analyze 100 events from each set <verbatim> j.splitter.numsubjobs=19</verbatim> This will submit 19 jobs, each processing 1 file. ---+ More commands The man pages for these should work, and the -h option gives info too. ---++ condor_status Lists all the available resources, -format and -constraint can be used to show points of interest. * condor_status -format '%s' FileSystemDomain | sort | uniq -c * -schedd : show other schedulers submitting to this pool of resources (could be one per institute). ---++ condor_q * -l : long format * -analyze 26.0 : gives information on why the match has not happened. Try also -better-analyze * -format '%d\n' ImageSize : choose a format for anything in the classad * -constraint 'ImageSize> 220000' : list a subset of jobs (useful to remove(condor_rm) certain class of jobs, e.g. RAM>4GB) ---++ Accounting Finally, everyone loves a web page. http://carnage.triumf.ca/cronus/ shows the history of resources and usage per user. This gives a hint as to why Cronus will be so useful for analysis, as these shares are configurable and enforced by Condor, just as if it were a local batch system. For the interested try condor_userprio -all, and for the masochist see what it [[http://www.cs.wisc.edu/condor/manual/v6.9/3_4User_Priorities.html][means]]. -- Main.RodWalker - 12 Apr 2007
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r8
<
r7
<
r6
<
r5
<
r4
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r8 - 2026-10-05
-
AsokaDeSilva
AtlasCanada
Navigate ATLAS-Canada Wiki:
*
Home
* *
Activities
*
Analysis
Computing
Datasets
Getting Started
Grid Activities
*
Meetings
* *
People in ATLAS Canada
*
User Services
Travel To CERN
Wikis:
ATLAS
ATLAS Physics
Alberta
McGill
Montreal
SFU
Toronto
TRIUMF
UVic
ATLAS-Canada Institute Websites:
ATLAS-Canada
ATLAS Home
Alberta
UBC
Carleton
IPP
McGill
Montreal
SFU
Toronto
TRIUMF
UVic
York
Create New Topic
Search
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback