• No results found

Data Management. Issues

N/A
N/A
Protected

Academic year: 2021

Share "Data Management. Issues"

Copied!
28
0
0

Loading.... (view fulltext now)

Full text

(1)

ARDA Wo rkshop

Data Management

Issues

Lassi A. Tuura

Northeastern University

(2)

ARDA Wo

rkshop

22 June 2004

Part I

(3)

ARDA Wo

rkshop

22 June 2004

DC04 Transfer System

Data challenge started in March 2004

No suitable data movement system existed Ò

We quickly developed Transfer Management DB (TMDB) 

In total a few weeks from design to operation



Emphasis on T1 choices of data transf

er tools, not imp

osing central choice

Ò

State in Oracle, all file transfers made by simple software agents

Ò

“Free for all”: agents written in C, perl, bash

Agents Ò

Tier-0 agents received “drops” from the reconstruction farm and published the information int

o RLS and TMDB

Ò

Configu

ration agent assigned files t

o destination

s



Capability to reassign when T1 is down was not exercised

Ò

Transfer agents moved files to desired destinations

Ò

Cleaning agents evicted safely transferred files from disks

Ò

(4)

ARDA Wo rkshop 22 June 2004 4

Transfer Overview

T0 Farm Global Distribution Bu ffer SE SRB SRM

INFN PIC RAL INP23 FZK FNAL

Export Buffers

(5)

ARDA Wo

rkshop

22 June 2004

File Catalogues

We used RLS as global, omniscient POOL file catalogue

Ò

Initial entries were made

by

Tier-0 “publishing” agent

Ò

Each transfer & cleaning agent maintained replica information

Ò

File information by GUID 

LFN; PFNs for

every replic

a; Meta data attributes

Ò

Meta data schema handled and pu

shed into cata

lo



Some attributes are highly CMS-specific

Ò

CMS does not use a separate

file catalogue for meta data

Some sites also maintained local catalogues

Ò

POOL MySQL catalogue with all

th

e files,

but only local PFNs



On file copy, copy also the c

atalo

gue entries to the local c

Ò

Dump the cat

alogue needed by an

analysis job into a XML file



(6)

ARDA Wo rkshop 22 June 2004 6

Description of RLS usage

in DC04

CERN RLS POOL catalog

ue RM/SRM/SRB EB agents Configuration agent Tier-1 Transfer agent LCG ORCA Analysis Job SRB GMCAT XML Public ation Agent Rep lica Manager 1. Register Files

2. Find Tier-1 Location (based on metadata)

4. Copy files to Tier-1’s

6. Process DST and register private data

Loca

l POOL

catalogue

TMDB

Resource Broker

Specific client tools: POOL CLI, Re

plica Manager CLI, C++ LRC API based

programs, LRC java API tools (SRB/GMCAT), Resource Broker

CNAF RLS replica

5. Submit analysis job

ORA

C

LE

mirroring

(7)

ARDA Wo

rkshop

22 June 2004

Interactions with RLS in DC04

RLS use as the global POOL catalogue:

Publishing Agent: Register files produced at Tier-0 into RLS Ò

Transfer POOL XML catalogue fragment into RLS;

POOL CLI

(

FCpublish

Configu

ration Agent: Query the RLS me

tada

ta to assign files to Tier-1

Ò

POOL CLI

(FClistMeta)

… al

l data sent everywhere, not truly used

Export Buffer Agents: Insert/delete the PFNs for the files in the buffer Ò

POOL CLI

(FCaddReplica)

, C++ LRC API-based programs, LRC java API by

GMCAT

Tier-1 Agents: Insert PFN for the destination location upon transfer Ò

In some cases copy the RLS into local MySQL POOL catalogue

Ò

POOL CLI

(FCaddReplica,FCpublish)

, C++ LRC-API based programs, LRC

java AP I by GM CA T Analysis jobs on LCG Ò Us e the RLS thro ugh the Resource Broke r t o sub m

it jobs close to the data

Ò

Register the private output data into RLS

Humans trying to figu

re what was going on

(FCpu

(8)

ARDA Wo rkshop 22 June 2004 8

RLS issues

Total number of files registered in the RLS during DC04

Ò

About 570K

LFNs each with

5-10 PFN’s and 9 metadata attributes

General summary: we survived after several workarounds

Ò

PFN insertion: adequate with new tools developed in-course

Ò

Inserting files with their me

ta data attributes was slow

Ò

Queries woefully slow; resorted to

direct Oracle access at points



Other POOL catalogues are radically faster

Ò

RLS multi-master with updates at one end tested, new tests coming

RLS Real Time by Drop Time

0 50 100 150 200 250 0 500 1000 1500 2000 2500 3000 3500 4000 4500

Minutes from start

0 0.5 1 1.5 2 2.5 3 3.5 5 A p r 1 0 :0 0 2 A p r 1 8 :0 0 3 sec / file

Time to register the output of a Tier-0 job (16 files)

Sometimes the load on RLS increases and requires intervention on the server (i.g. log p

artition full,

switch of

se

rv

er node, un-optimized quer

ie

s)

able to keep up in optimal

(9)

ARDA Wo

rkshop

22 June 2004

Current Status

Improvements and continuing requirements

Ò

Replace Java CLI with C++ API;

POOL updates; index meta data

Ò

Bulk tr

ansfers now in RLS, promising reports from POOL, may

speed up queries considerably (o

therwise queries still an issue)

Ò

Transactions: not there, bulk transfer poor man’s replacement?

Ò

Overhead compared to direct RDBMS catalogues: unmet

RLS replication tests current carried out by IT-DB

Ò

ORACLE streams-based

replication mechanism

Ò

If RDMBS handles it, then catalogue design needs revision?

Not obvious RLS is the model we want to have

Ò

Global? Omniscient? Meta data vs. PFNs catalogue?

Ò

Query model may not be what we want

Ò

(10)

ARDA Wo

rkshop

22 June 2004

(11)

ARDA Wo

rkshop

22 June 2004

Agents Experience

Positive experience doing data transfers this way

Ò

A number of rather simple agents, reliable

Ò

Easy to develop and rewrite

Ò

Respect and support T1 choices

Performance was “sufficient”

Ò

Time to starting analysis was average 20 minutes (at PIC)

Ò

Seem to be able to saturate networks trivially

Ò

Very rarely saw agents take any significant resources 

File merging agent needs serious hardware



Almost everything we tried ground to halt



Finall

y 2-CPU Sun with SAN/RAID

disks and Gigabit Ethernet was

(12)

ARDA Wo

rkshop

22 June 2004

12

Simulated Data Movement

Have developed statistical dummy transfer system

Ò

Replay authentic “drops” from DC04 through the chain again

Ò

Timing statistics from T

M

DB history and other agent logs

Ò

Fake out desired parts, or run only parti

al system

Ò

In theory, you can

replay entire data challenges



See what happens when you unplug component X



WAN/LAN tests depending on what you want to test



What-if analysis wit

h different timing profiles

Simulation plans

Ò

Tests starting with

RLS

Ò

Transf

ers and file merging will follow

Ò

Expecting to maintain near-full-sc

ale test system in parallel to

(13)

ARDA Wo

rkshop

22 June 2004

TMDB V2 Plans

Short-term ongoing needs while EGEE delivers tools Ò

CMS is in continuous production mode 

From May/June:

1 TB/month “forever”



Multiple data sources and destinations

Ò

Parts possibly also in trigger farm environment

Conceptual design Ò

Data movement service 

Transfer files from source A to d

estination(s) B



Provide transfer state information +

safe completion (e

.g. file has been

copied to mass storage on all intended destinations)



Answer: “What is the cost and late

ncy of moving these files there



Transien

t: does not remember

files after move

is complete!

Ò

Supports on-demand moves and continuous push

Ò

Someone else worries about what should go where 

Now: configuration agent decide

s base

d on owner/dataset/stream and T1

data “s

ubscriptions

(14)

ARDA Wo rkshop 22 June 2004 14

TMDB V2 Plans (II)

Design overview

Ò

Files are routed like similar

to internet routing protocols



Initially static routing only

, dynamic may follow in future

Ò

Agents maintain routing information in the database 

If agents or lin

ks go down, automatically adapts

Ò

Currently continuing to use one central database 

Not a fundam

ental d

esign fe

ature

Ò

Can maintain catalogues at

each site, or a global one

Ò

Common Perl transfer agent toolkit

Time scale: operational in a few weeks

Lots of room for co-operation

Ò

Not att

ached to our system—just need something that

works!

Ò

Will gladly provide use cases,

requirements, sit down with

(15)

ARDA Wo

rkshop

22 June 2004

Other Related Components

RefDB

Ò

Started out as production database

Ò

Evolving into three different views 

Virtual data catalogue



Production bookkeeping database



(Logical/data set) file catalogue

Ò

Discussions on extension beyond production 

Alread

y covered b

y Lucia’s presentation

Job status monitoring service

Ò
(16)

ARDA Wo

rkshop

22 June 2004

Part III

(17)

ARDA Wo

rkshop

22 June 2004

Defining System Architecture

Goal: Derive system architecture from features we want

Ò

Not

from services we happen to have/get/whip up

Ò

Target architecture doesn’t n

eed to be in place up front



But practical service implementation should not compromise it

EGEE/ARDA to provide guidance and recommendations

Ò

Research into prior art,

communicate to experiments

Ò

Recommendations on what to base decisions on

Ò

Recommendations on what

not

to do

Ò

Present range of possible system architectures

Ò

Request: system architecture

overview in middleware document

Discussion in CMS, exchange in ARDA

Ò
(18)

ARDA Wo rkshop 22 June 2004 18

Getting There

Deliver now, continuously, in real life

Ò

Evolution, not

revolution

Ò

Strongly prefer functional deep slices before diversity

Ò

We can live with short-term lim

itations



Example: “All muon data goes to INFN”



Simplified job submission is ok as long as it works

Ò

But don’t sacrifice system architecture vision

Technical aspects and assumptions

Ò

Catalogue

s: O(millions) is a boring triviality

Ò

Transfer system: trivially satu

rate present network capacity

Ò

We support and will use common guaranteed effort 

E.g. castorgrid type services



If the service challenge uses a

(19)

ARDA Wo

rkshop

22 June 2004

Architecture Features

Some key term definitions

Ò

Dataset is consistent set of events

Classify architectures based on key features

Ò

Pick system architecture wh

en matching features found

Ò

Key distinctive feat

ures



Op

en or closed? Can I enumerate all resources X on the grid? How about my virtual organisation?



Opportunistic? What mixture of

local and global optimisation?



Global, distributed or peer-to-peer?



Where does policy and strategy apply?

Ò

Deduce service composition from

(20)

ARDA Wo

rkshop

22 June 2004

20

Simple Architecture Classifications (I)

Opportunistic Ò

“Pure Condor” style: move p

rocess freel

y anywhere

Ò

In HEP: event generation, p

ossibly simulation type jobs

Ò

Restrictions on the job characteristic

s: shared libraries, network

connec

tions etc. not welcome

Pipeline or black board Ò

Jobs read data from and write to a central service

Ò

In HEP: e.g. min bias handling, much of what we’ve done to date

Data Grid: split and move the black board around Ò

Move data, not just jobs

Ò

We are just reall

y starting to experiment with this (LCG-2, TMDB)

Ò

Key question: what detail is specified to decide where jobs run

(21)

ARDA Wo

rkshop

22 June 2004

Simple Architecture Classifications (II)

Opportunistic Data Grid Ò

Like above, but use resources opportunistically

Ò

Substantially different system!

General Resource Matching: “Large Scale LSF” Ò

Data is just one of the job constraints

Ò

Other constraints: (COBRA) meta data

, calibration data, software, data

files, operating system version … —

the list is lon

g and growing

Ò

Much of the data is dynamic

Opportunistic Resource Matching Ò

A resource manager can 

Match against existing satisfied co

nstraints: file sets available



Change the constraints: move stuff

around, install and even recompile

software—each of these has an

associated cost and latency



Live with the constraints that can’t be violated or changed

Ò

Lots of prior art in operations

research and dynamic programming:

especially logistics and producti

(22)

ARDA Wo

rkshop

22 June 2004

22

Architecture Classifications (III)

What kind of a system architecture for these?

Ò

Opportunistic, black board, data grid specify t

hemselves

Ò

What’s best for opportunistic + (data grid | general)? 

Peer-to-peer systems?

Ò

Who is reviewing and presenting prior research? 

Present to bot

h experiments and grid projects



Recommendations on what to base decisions on

 Recommendations on what not to base decisions on  Best sc heduling strategies • E.g. I

P routing protocols we looked

at for TMDB expressly said “do not

use this algorithm when some

of cost measures are dynamic”

Ò

Need to maintain sufficient

system architecture “vision”

and design knowledge in the experiment

Ò

(23)

ARDA Wo

rkshop

22 June 2004

System Architecture Topology

Some questions on intended EGEE architecture space

Ò

The grid/vo is open? 

Your local file system is closed, you can enumerate every file



You can’t enumerate DNS, you can only list what you know



You can parti

ally enumerate AFS using well-known contacts

Ò

Is it central, distributed or peer-to-peer?  Can I set up my own catalogues for sharing with my peers? •

Should CMS even want to be able to do

this?  Whic h services u se which model? Do

some services support hybrids?

High-availability central database

(air-line reservation model)?

Local (partial?) databases, possibly ab

le to opera te w • Appears as centr al but real ly distribut ed, e.g. us in g ref •

(24)

ARDA Wo rkshop 22 June 2004 24

Resource Management

Currently the main focus for resource planning has been

Ò

Computing capacity

Ò

Which files the job will access

Inadequate for CMS’ needs

Ò

Too low level for our model, high

er level (e.g. data set) better



Otherwise experiments will do the real middleware



Not impossible: resource manager ca

n make decisions using entities

without knowing whic

h physical resources they represent

Can we help develop a better resource manager?

Ò

TMDB V2 is actually quite powerful engine for moving data sets around, just needs someone to

(25)

ARDA Wo

rkshop

22 June 2004

Higher Level Resources (I)

Imagine a directory of high-level resources

Ò

Data sets with ap

propriate matrix/slicing (AOD, DST

Ò

Computing elements, available capacity

Ò

What software is installed where

Ò

Which calibrations exist where, which generations?

Services provide estimates of change costs

Ò

How long would it take to copy this data there? What lat

Ò

Available computing capacity, can it be pre-empted

Ò

Quality-of-service, priority and policy

Considerably less information than file catalogue

Ò

If resource broker doesn’t need gl

obal file catalog, the whole file

catalog design can become tot

ally di

fferent, e.g. each site has its

(26)

ARDA Wo

rkshop

22 June 2004

26

Higher Level Resources (II)

Some resource management options

Ò

Global and omniscient: all information is always valid 

Resource manager’s job is easy

Ò

DNS model: distributed, advertise life time  What does resource manager do when data set expires at site X in three hours? Schedule or not? Let j

ob fail? Reschedule if the

data

isn’t there when the job finally runs?

Ò

AFS/DHCP model: resource reservation 

Sites publish resourc

es



Resource manager obtains leases



Job completion releases t

he lease



(27)

ARDA Wo

rkshop

22 June 2004

Data Management

Current expectations on data management services

Ò

Not all files are the same

Ò

Distributed databases (Dirk has good comments)

Ò

Currently expecting file needs to be expressed at high level 

Cells of data matrix (datas

et/slice/c

ollection

range)



If job description is wrong, not unreasonable for job to fail

Ò

On-demand file access and movement still required 

CMS software has plug-ins to handle

file access protocols (e.g. http,

ftp, zip-member, rfio, dcache, …)



“Contract” with resource management yet to be worked out



Worker nodes expected to have outbound access

Ò

Not yet clear on multiple processing

(28)

ARDA Wo rkshop 22 June 2004 28

Security

Not many comments right now

Ò

Read the classics already? 

Multic

s

Securit

y Evaluation: Vulnerability Analysis

http://www.acsac.org/2002/papers/classic-multics-orig.pdf



Thirty Years Later: Lessons

from the M ultics Security Evaluation http://www.acsac.org/2002/papers/classic-multics.pdf

References

Related documents

The Asset Support Center provided more than 1,000 hours of pro bono technical assistance to Bay Area asset- building stakeholders — nonprofits, public agencies, funders,

Permitted Accommodations for Students with Special Education Needs pages 2–4 English Language Learners and the Assessments page 7 Students with Special Circumstances page

• Using a Reference Lab Assigned Value for Measure of Location • Horwitz %RSD – Measure of Dispersion.. We will talk about the

Knowing the importance of technology integration in our educational climate today, and seeing a variety of levels of adoption among my colleagues in my district, I became curious

This study was significant because it moved beyond the element of simply improved social skills and school culture but examined school wide leadership and implementation of

The model focuses on the three-way interaction between changes in divorce laws, in di- vorce rate and in the degree of tolerance towards divorce, in other words social

As highlighted in the introduction, in the Danube basin area are concentrated some of the best known wine-growing regions / vineyards of Serbia, which were, by the Tourist Organization

This Act makes provision to phase in traditional leaders as part of local government by recognizing traditional “leadership, traditional institutions and communities, through