1 of 19

WP5 Analysis Systems

Luke Kreczko for SWIFT-HEP WP5

​

1

2 of 19

Outline

News since Workshop #3

Roadmap for the next few months

2

3 of 19

Since Workshop #3

  • New hire - Sam Eriksen (LZ/SWIFT-HEP)
    • After initial difficulties, finally managed to find a suitable candidate
    • Going to start in the coming months
  • GridPP DIRAC
    • Upgraded to 7.3 in June
    • JobManager, JobMonitor, JobStateUpdate available via HTTP
  • Brunel site volunteered for Analysis Workflow
    • Will be first site we test via DIRAC

3

4 of 19

WP5 in a nutshell: run analysis workloads optimally** on distributed (GridPP) resources

4

** balanced between user-experience and computing efficiency

5 of 19

SWIFT-HEP

5

*no relation to IRIS-HEP; **no relation to DIRAC

“Adaptation” of Coffea-casa

​

​

​

​

​

​

As simple as adding DIRAC jobqueue to dask-jobqueue?

Shared Jupyter-hub via iris.ac.uk*

Can run on DiRAC**

Data lake

(D1.1)

Virtual analysis facility

(D1.4)

6 of 19

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

7 of 19

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

8 of 19

Dask-dirac

Step 1 of WP5:

Build connector between

Dask and GridPP DIRAC

(Github repo)

Pre-requisites:

  • No extra dependencies (DIRAC is hard* to add to standard python installs)
  • DIRAC should “just be an extra batch system Dask supports”

We envision this through the HTTP

  • Support starts in version 7.3
  • HTTP dask-client can be a free useful outcome

8

* try `pip install DIRAC`

9 of 19

Analysis Grand Challenges

Step 2: Run Analysis Grand Challenges at Brunel via DIRAC

​

(Github repo)

IRIS-HEP currently provides

  • ATLAS H→ZZ
  • CMS ttbar

What SWIFT-HEP could provide

  • CMS Higgs analysis (Imperial)
  • LZ Analysis (Bristol)

​

To start with analyses need to be able to use Dask.

Later also custom graphs (caching, portability).

9

10 of 19

Next steps

  1. Caching of analysis output
  2. Caching of individual analysis steps
  3. Portability: on-availability matching of specialised resources
  4. Test different use cases and improve setup�

​

​

​

Basic test of D1.1

Complex test of D1.1

​

Test of D1.4 and D1.7

​

Tying it all together

10

11 of 19

Discussion topics

  • Hiring difficulties have caused delays → how can we minimize the impact on other deliverables
  • AGC are based on open data → do we want an opendata.gridpp.ac.uk for non-LHC VOs?
    • I will try to convince LZ to release some of their MDC3 (simulation) data
  • Anything to add on the previous talks (ROOT, Analysis Facilities)?
  • Anything you would like to raise & discuss?

11

12 of 19

Backup

12

13 of 19

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

14 of 19

Anatomy of an analysis workflow

14

data

Task

Task

Task

data

Task

Task

data

Task

data

15 of 19

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?

16 of 19

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

17 of 19

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

18 of 19

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

19 of 19

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