4 Oct 2005 / Offline week Shuttle program for gathering conditions data from external DB Boyko Yordanov 4 October 2005 ALICE Offline week.

Slides:



Advertisements
Similar presentations
System Integration and Performance
Advertisements

1 1999/Ph 514: Channel Access Concepts EPICS Channel Access Concepts Bob Dalesio LANL.
Copyright © 2001 Qusay H. Mahmoud RMI – Remote Method Invocation Introduction What is RMI? RMI System Architecture How does RMI work? Distributed Garbage.
11th April 2008TOF DA & ppChiara Zampolli. DAQ-DA Three DAQ-DAs implemented, deployed, validated, and tested: TOFda TOFnoiseda TOFpulserda DCS-DA One.
1 Databases in ALICE L.Betev LCG Database Deployment and Persistency Workshop Geneva, October 17, 2005.
Peter Chochula, January 31, 2006  Motivation for this meeting: Get together experts from different fields See what do we know See what is missing See.
NextGRID & OGSA Data Architectures: Example Scenarios Stephen Davey, NeSC, UK ISSGC06 Summer School, Ischia, Italy 12 th July 2006.
LDAP LIGHT WEIGHT DIRECTORY ACCESS PROTOCOL PRESENTATION BY ALAKESH APURVA DHAN AND ASH.
Object-Oriented Analysis and Design
1.  TCP/IP network management model: 1. Management station 2. Management agent 3. „Management information base 4. Network management protocol 2.
CVSQL 2 The Design. System Overview System Components CVSQL Server –Three network interfaces –Modular data source provider framework –Decoupled SQL parsing.
PVSS SOAP Interface RCMS  DCS XDAQ  DCS (anyclient  PVSS) Peter Rosinsky, CERN PH/CMD CMS week 15-19/3/2004.
Guide to TCP/IP, Third Edition
Test Of Distributed Data Quality Monitoring Of CMS Tracker Dataset H->ZZ->2e2mu with PileUp - 10,000 events ( ~ 50,000 hits for events) The monitoring.
Alice off-line meeting Alberto Colla Cern, October 3, 2005 AliEn How-To Alice off-line meeting Cern, October 3, 2005 Alberto Colla (Alice off-line Calibration.
A Metadata Based Approach For Supporting Subsetting Queries Over Parallel HDF5 Datasets Vignesh Santhanagopalan Graduate Student Department Of CSE.
JCOP Workshop September 8th 1999 H.J.Burckhart 1 ATLAS DCS Organization of Detector and Controls Architecture Connection to DAQ Front-end System Practical.
A. Cavalli - F. Semeria INFN Experience With Globus GIS 1 A. Cavalli - F. Semeria INFN First INFN Grid Workshop Catania, 9-11 April 2001 INFN Experience.
Lec 3: Infrastructure of Network Management Part2 Organized by: Nada Alhirabi NET 311.
© 2006 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice HP Library Encryption - LTO4 Key.
Framework for Raw Data Thomas Kuhr Offline Week 29/06/2004.
Databases E. Leonardi, P. Valente. Conditions DB Conditions=Dynamic parameters non-event time-varying Conditions database (CondDB) General definition:
Andrew S. Budarevsky Adaptive Application Data Management Overview.
ALICE, ATLAS, CMS & LHCb joint workshop on
LDAP (Lightweight Directory Access Protocol ) Speaker: Chang-Yu Wu Adviser: Quincy Wu Date:2007/08/22.
Naming and Code Conventions for ALICE DCS (1st thoughts)
Clara Gaspar, March 2005 LHCb Online & the Conditions DB.
Efficient RDF Storage and Retrieval in Jena2 Written by: Kevin Wilkinson, Craig Sayers, Harumi Kuno, Dave Reynolds Presented by: Umer Fareed 파리드.
The Persistency Patterns of Time Evolving Conditions for ATLAS and LCG António Amorim CFNUL- FCUL - Universidade de Lisboa A. António, Dinis.
Chapter 6 Introduction to Defining Classes. Objectives: Design and implement a simple class from user requirements. Organize a program in terms of a view.
ALICE Condition DataBase Magali Gruwé CERN PH/AIP Alice Offline week May 31 st 2005.
Apr. 8, 2002Calibration Database Browser Workshop1 Database Access Using D0OM H. Greenlee Calibration Database Browser Workshop Apr. 8, 2002.
Peter Chochula ALICE Offline Week, October 04,2005 External access to the ALICE DCS archives.
1 SDD: DA and preprocessor Francesco Prino INFN Sezione di Torino ALICE offline week – April 11th 2008.
Lecture 4 Mechanisms & Kernel for NOSs. Mechanisms for Network Operating Systems  Network operating systems provide three basic mechanisms that support.
W. Hong & S. Madden – Implementation and Research Issues in Query Processing for Wireless Sensor Networks, ICDE 2004.
Alberto Colla - CERN ALICE off-line week 1 Alberto Colla ALICE off-line week Cern, May 31, 2005 Table of contents: ● Summary of requirements ● Description.
1 CMPT 471 Networking II DNS © Janice Regan,
Status of the Shuttle Framework Alberto Colla Jan Fiete Grosse-Oetringhaus ALICE Offline Week October 2006.
Network Management Mechanisms Two major network management protocols: Simple Network Management Protocol (SNMP) Common Management Information Protocol.
1 Channel Access Concepts – IHEP EPICS Training – K.F – Aug EPICS Channel Access Concepts Kazuro Furukawa, KEK (Bob Dalesio, LANL)
11th November Richard Hawkings Richard Hawkings (CERN) ATLAS reconstruction jobs & conditions DB access  Conditions database basic concepts  Types.
Summary of User Requirements for Calibration and Alignment Database Magali Gruwé CERN PH/AIP ALICE Offline Week Alignment and Calibration Workshop February.
1 SDD offline status Francesco Prino INFN sezione di Torino ALICE offline week – October 20th 2008.
AFS/OSD Project R.Belloni, L.Giammarino, A.Maslennikov, G.Palumbo, H.Reuter, R.Toebbicke.
Summary of Workshop on Calibration and Alignment Database Magali Gruwé CERN PH/AIP ALICE Computing Day February 28 th 2005.
The DCS Databases Peter Chochula. 31/05/2005Peter Chochula 2 Outline PVSS basics (boring topic but useful if one wants to understand the DCS data flow)
Copyright 2007, Information Builders. Slide 1 iWay Web Services and WebFOCUS Consumption Michael Florkowski Information Builders.
1 A Scalable Distributed Data Management System for ATLAS David Cameron CERN CHEP 2006 Mumbai, India.
Summary of TPC/TRD/DCS/ECS/DAQ meeting on FERO configuration CERN,January 31 st 2006 Peter Chochula.
AliRoot Classes for access to Calibration and Alignment objects Magali Gruwé CERN PH/AIP ALICE Offline Meeting February 17 th 2005 To be presented to detector.
DEVELOPING WEB SERVICES WITH JAVA DESIGN WEB SERVICE ENDPOINT.
Maria del Carmen Barandela Pazos CERN CHEP 2-7 Sep 2007 Victoria LHCb Online Interface to the Conditions Database.
PART1 Data collection methodology and NM paradigms 1.
Jean-Philippe Baud, IT-GD, CERN November 2007
DCS Status and Amanda News
Lec 5: SNMP Network Management
z/Ware 2.0 Technical Overview
BDII Performance Tests
News on the CDB Framework
Calibrating ALICE.
The new AliRoot DB access classes
Off-line weekly meeting
Conditions Data access using FroNTier Squid cache Server
Analysis framework - status
Slava Filimonov & Jim Cook, PVSS - ROOT Interface
Corr framework Computing in High Energy and Nuclear Physics
Status and plans for bookkeeping system and production tools
Offline framework for conditions data
Calibration Infrastructure Design
Presentation transcript:

4 Oct 2005 / Offline week Shuttle program for gathering conditions data from external DB Boyko Yordanov 4 October 2005 ALICE Offline week

Outline General Overview DCS Conditions Data Model CDB Preprocessors and Default Storage Shuttle Configuration DCS API General Tests Conclusion

Overview Collecting conditions data from external DCS DB at predetermined time intervals (for example at the end of every run) Processing collected data using specific CDB preprocessor for every sub-detector Storing conditions data in the Conditions Data Base (CDB)

General Schema of the Shuttle AliShuttle – The Shuttle program manager. Organizes conditions data retrieval, preprocessing and storing it into CDB. AliShuttleConfig – Interface to the configuration stored into LDAP server AliCDBStorage – CDB storage interface AliDCSClient – Provides DCS API. Communicates with DCS AMANDA server over TCP/IP

Conditions Data in DCS DB The abstract representation of every conditions parameter (temperature, voltage etc.) is organized in DataPoints (DP) Additional attribute "alias" is assigned to every DP to provide constant identifier for the relevant parameter Conditions data is organized in value/timestamp series (one for every parameter). As the DCS data is collected independently on the experimental runs, part of it doesn’t belong to any run Every DP representing conditions parameter has one of the following types: Primitive typeDynimic type BooleanDynBoolean ByteDynByte IntegerDynInteger UIntegerDynUInteger FloatDynFloat

DCS Conditions Data in AliRoot AliDCSValue Particular value/timestamp pair is organized in AliDCSValue object with the following composite structure:  AliSimpleValue  AliSimpleValue - Union like holder for DP value. Provides setter and getter for every DP type  UInt_t  UInt_t - Timestamp field TListAliDCSValue The value/timestamp series is represented by collection (TList) of AliDCSValue objects Two value/timestamp (before and after requested interval) pairs are included into the series (if they exist). Especially useful if extrapolation/interpolation procedures are used AliDCSValue As AliDCSValue is a ROOT object that can be directly stored into the Conditions DB

Calibration Data Preprocessors Motivation for a CDB preprocessor:  Assuming that the DCS data is slowly changing and well-behaved over a “long” time period: User-defined objects can be created (histograms, functions, average values) depending on the data type and observed behavior The amount of data stored in CDB will be minimized It is simpler to use specific object than long value/timestamp series AliCDBPreProcessor Every sub-detector can use its own CDB preprocessor implementing AliCDBPreProcessor interface:  Allows for intelligent treatment of raw conditions data If specific preprocessor is not provided, the raw series value/timestamp is stored (default behavior)

AliCDBPreProcessor AliCDBPreProcessorTNamedTNamed::GetName() AliCDBPreProcessor is a subclass of TNamed. Method TNamed::GetName() is used as preprocessor identifier (sub-detector name) AliShuttle::RegisterCDBPreProcessor(AliCDBPreProcessor*) AliShuttle::RegisterCDBPreProcessor(AliCDBPreProcessor*) is used to register specific preprocessor to the Shuttle manager AliCDBPreProcessor AliCDBPreProcessor interface methods:  void Initialize(Int_t run, UInt_t startTime, UInt_t endTime)  void Initialize(Int_t run, UInt_t startTime, UInt_t endTime) – Called at the beginning of conditions data retrieval (Before the first alias is processed)  void Finalize()  void Finalize() – Called at the end of conditions data retrieval (After the last alias is processed)  void Process(const char* alias, TList& valueSet, Bool_t hasError)  void Process(const char* alias, TList& valueSet, Bool_t hasError) – Called sequentially for every alias in the configuration after its data is retrieved from DCS DB AliCDBPreProcessor AliCDBPreProcessor helper methods:  Bool_t Store(const char* specType, TObject* object, AliCDBMetaData* metaData)  Bool_t Store(const char* specType, TObject* object, AliCDBMetaData* metaData) – Stores object and metaData to the underlying CDB storage using pathname: /DCS/

Default Storage to CDB TList AliDCSValue Whole value/timestamp series (TList of AliDCSValue object) is stored to CDB with pathname: /DCS/ AliCDBMetaData Two properties are added to AliCDBMetaData: AliSimpleValue  StartTime - AliSimpleValue denoting run start time AliSimpleValue  EndTime - AliSimpleValue denoting run end time Getting run start time example: AliSimpleValue* startTimeHolder; startTimeHolder = (AliSimpleValue*) metaData->GetProperty("StartTime"); UInt_t startTime = startTimeHolder->GetUInt();

Shuttle Configuration Conditions data is retrieved only for those detectors for which there is a valid configuration LDAP server is used for keeping configuration entries and organizing access policy AliShuttleConfig AliShuttleConfig provides transparent interface to the underlying configuration server TLDAP package in ROOT is used as API for the LDAP server ipHost – Single value attribute describing AMANDA server host ipServicePort – Single value attribute describing AMANDA server port alias – Multi value parameter describing the set of aliases which will be retrieved from DCS DB

Configuration Example Example of sub-detector entry in ldif format which can be written to LDAP server #TPC config dn: dt=TPC,dc=alice,dc=cern,dc=ch objectClass: shuttleConfig dt: TPC ipHost: ipServicePort: 4242 alias: HighVol01 alias: HighVol02 alias: TpcTempSect01 alias: TpcTempSect02

AliDCSClient – DCS API DM – Data manager part of PVSS SCADA system which organizes the work with the underlying data base. AMANDA – Communication layer implementing server side of AliDCSProtocol AliDCSClient – Client side of AliDCSProtocol which provides DCS API

AliDCSClient Overview Int_t GetDPValues(const char* dpName, UInt_t startTime, UInt_t endTime, TList& result) Int_t GetDPValues(const char* dpName, UInt_t startTime, UInt_t endTime, TList& result) - Retrieves data from DCS DB for data point dpName in time interval startTime – endTime Int_t GetAliasValues(const char* alias, UInt_t startTime, UInt_t endTime, TList& result) Int_t GetAliasValues(const char* alias, UInt_t startTime, UInt_t endTime, TList& result) - Retrieves data from DCS DB for alias in time interval startTime – endTime In case of negative value returned it indicates that some of the following errors occurred:  BadState  Timeout  BadMessage  CommunicationError  ServerError

AliDCSProtocol AliDCSProtocol is simple message protocol over TCP/IP Every message has header with fixed structure and variable body depending on the message type Following message types constitute the protocol:  Request – Sent by AliDCSClient to initiate data retrieval  Count – Sent by Amanda server to indicate total number of value/timestamp pairs belonging to the request  ResultSet – Contains part of value/timestamp series returned by Amanda server  Error – Sent by Amanda server in case of error

AliDCSProtocol Flow Chart

General Tests Tests of DM-AMANDA -> AliDCSClient have been discussed with DCS team:  DCS DB: 20GB test data generated with about 30 data points (2 Hz update data frequency for every DP series)  Client: Sequential data retrieval for 1 DP and time interval 1 hour (about 7200 values per series)  The amount of data requested will be increased gradually (changing the number of DP and increasing the time interval)  The client side test suite ready. Tests will be done with a stable version of AMANDA server (also ready), provided by the DCS group

Conclusion Avoiding high load on the external DB: periodic polling, long series of data extracted with one call and small overhead External DBs are accessed only for data relevant to offline processing/analysis Only this data is stored in the Conditions DB AliCDBPreProcessor allows for the raw calibration/alignment data to be treated before storing into the Conditions DB: smart treatment, minimizes the amount of calibration/alignment data in memory during reconstruction Unified method for accessing replicated data is provided by CDB storage infrastructure Worldwide availability through the Grid Features and benefits of the presented approach: