WP5 Analysis Systems
Luke Kreczko for SWIFT-HEP WP5
1
Outline
News since Workshop #3
Roadmap for the next few months
2
Since Workshop #3
3
WP5 in a nutshell: run analysis workloads optimally** on distributed (GridPP) resources
4
** balanced between user-experience and computing efficiency
SWIFT-HEP
5
*no relation to IRIS-HEP; **no relation to DIRAC
Shared Jupyter-hub via iris.ac.uk*
Can run on DiRAC**
Data lake
(D1.1)
Virtual analysis facility
(D1.4)
Roadmap overview
6
Dask to DIRAC interface (dask-dirac)
Connect to data lake (caching)
Specify resource requirements per analysis component (portability)
Data lake to DIRAC (via Rucio)
Virtual analysis facility
DIRAC workflow manager
Via tags (slide 26)
REST API
FileCatalog?
Closes example of what we want to achieve: Dask-based Distributed Analysis Facility (kubernetes slides)
Caching at analysis step level
WP1
WP5
Intermission: Dask
Scale any Python code
Parallelize any Python code with Dask Futures, letting you scale any function and for loop, and giving you control and power in any situation.
From https://www.dask.org/
Dask can submit to most batch systems all the same - fantastic from users’ perspective
Can we use Dask in HEP?
Coffea (Analysis Grand Challenges)
RDataframe
Awkward-array (native support)
FAST-HEP (custom graphs)
7
If infrastructure can be used via Dask → wide use is possible
Dask-dirac
Pre-requisites:
We envision this through the HTTP
8
* try `pip install DIRAC`
Analysis Grand Challenges
IRIS-HEP currently provides
What SWIFT-HEP could provide
To start with analyses need to be able to use Dask.
Later also custom graphs (caching, portability).
9
Next steps
Basic test of D1.1
Complex test of D1.1
Test of D1.4 and D1.7
Tying it all together
10
Discussion topics
11
Backup
12
Analysis key points
Physics
Last mile of long chain of data recording and processing.
Goals: gain insight and create new knowledge
Computing
Analysis workflow (data + software) depends on experiment, analysis group, subset of data (signal + relevant backgrounds), analysis iteration.
Flexibility is paramount.
13
Anatomy of an analysis workflow
14
data
Task
Task
Task
data
Task
Task
data
Task
data
Anatomy of an analysis workflow
15
Data Formats
data
Task
Task
Task
data
Task
Task
data
Task
data
ROOT files: standard for input/output
Internally: Experiment/analysis specific
HDF5
npz
pandas
datacard
parquet
other?
Anatomy of an analysis workflow
16
Processing
data
Task
Task
Task
data
Task
Task
data
Task
data
Event loop vs vectorized processing
Monoliths vs compute graphs
GPU/FPGA capable vs strictly CPU
Parallelizable vs strictly sequential
Time sensitive vs “sometime next week”
Failure tolerance vs all or nothing
Varied resource requirements/efficiency
The cycle of analysis (an oversimplified view)
17
New idea/extension of existing work
Publication
create/modify code
Run analysis on laptop/cluster/grid
Understand results
New ideas for improvement,
mistakes identified, or updates
One cycle as short as a day or as long as a month
Work Package 5: Analysis
WP1
Analysis workflow
WP5
18
Analysis step
output
Data lake
DIRAC
caching
data
Task
Task
Task
data
Task
Task
data
Task
data
Work Package 5: Analysis
WP1
Analysis workflow
WP5
19
Virtual Analysis Facility
Analysis step
output
Data lake
Heterogeneous hardware
Specialised hardware (GPU, FPGA, etc)
DIRAC
portability
caching
GPU
capable
CPU-only
data
Task
Task
Task
data
Task
Task
data
Task
data