T. Birke  IRMIS Collaboration meeting  March '05  APS  BESSY Configuration Management BESSY Configuration Management Plans / Wishes Thomas Birke, Benjamin.

Slides:



Advertisements
Similar presentations
Epics Configuration Management Steve Hunt v1.0. Goals Maximize control system availability Minimize development cycle time Reduce risk.
Advertisements

Control System Studio (CSS)
SNS Integrated Control System SNS RDB Requirements, wish list, status A little history l Oracle RDB used exclusively by accelerator physics group l JERI.
METS Creation in a production environment METS Opening Day Corey Keith
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
SPEAR PV RDB Database EPICS Collaboration Meeting April 27, SPEAR PV RDB Database Clemens Wermelskirchen.
Database Design and Introduction to SQL
By: Shawn Li. OUTLINE XML Definition HTML vs. XML Advantage of XML Facts Utilization SAX Definition DOM Definition History Comparison between SAX and.
JCE A Java-based Commissioning Environment tool Hiroyuki Sako, JAEA Hiroshi Ikeda, Visible Information Center Inc. SAD Workshop.
Database Design with VisualDCT Nicholas Di Monte.
SNS Integrated Control System EPICS IOCs – Relational DB Connectivity Bridge A. Liyu, A. Zhukov.
Epydoc API Documentation Extraction in Python Edward Loper.
W. Sliwinski – eLTC – 7March08 1 LSA & Safety – Integration of RBAC and MCS in the LHC control system.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
Introduction to Databases A line manager asks, “If data unorganized is like matter unorganized and God created the heavens and earth in six days, how come.
Database Design with VisualDCT Nicholas Di Monte.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC Michigan State.
Database structure for the European Integrated Tokamak Modelling Task Force F. Imbeaux On behalf of the Data Coordination Project.
March 9-11 IRMISRon Chestnut SLAC RDB and EPICS The World According to SLAC Ideas and Implementations by: J. Rock, D. Rogind, S. Allison.
Debby Quock November 13, 2012 IRMIS at CLS. IRMIS Currently at CLS PV Crawler –Perl modules that parse EPICS IOC st.cmd, db, and dbd files. Information.
1 CS 430 Database Theory Winter 2005 Lecture 17: Objects, XML, and DBMSs.
Stanford Linear Accelerator Center R. D. Hall1 EPICS Collaboration Mtg Oct , 2007 Oracle Archiver Past Experience Lessons Learned for Future EPICS.
Elder Matias, Diony Medrano, Dong Liu (At Michigan State University - Nov 2011) IRMIS at CLS.
Prachi Chitnis.  The CSS feel  SDS – Synoptic Display Studio  ADL Converter  PV table, Probe…
The european ITM Task Force data structure F. Imbeaux.
PI Data Archive Server COM Points Richard Beeson.
March 2008EPICS Meeting in Shanghai1 KEKB Control System Status Mar Tatsuro NAKAMURA KEKB Control Group, KEK.
ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008.
R R R CSE870: UML Component Diagrams Implementation Diagrams.
Databases in CMS Conditions DB workshop 8 th /9 th December 2003 Frank Glege.
INTRODUCTION TO DBS Database: a collection of data describing the activities of one or more related organizations DBMS: software designed to assist in.
Evolution of VisualDCT Jaka Bobnar Matej Sekoranja Igor Verstovsek
Managed by UT-Battelle for the Department of Energy CSS Update Matthias Clausen, Helge Rickens, Jan Hatje and DESY Delphy Armstrong, Xihui Chen,
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
RDB for Controls Configuration Management: Complications Roland Müller Based on/ Update of previous Presentations given by B. Franksen: EPICS Meeting `01,
07/10/2007 VDCT Status Update EPICS Collaboration, October 2007 Knoxville, Tennessee
12 Copyright © 2009, Oracle. All rights reserved. Managing Backups, Development Changes, and Security.
Differences Training BAAN IVc-BaanERP 5.0c: Application Administration, Customization and Exchange BaanERP 5.0c Tools / Exchange.
Jožef Stefan Institute Visual DCT – EPICS Databases Can Be Fun Rok Sabjan Sunil Sah and Matej Sekoranja, JSI and Cosylab
BROOKHAVEN SCIENCE ASSOCIATES Enhanced Directory Service Ralph Lange EPICS Collaboration Meeting October 11, 2009.
Jan Hatje, DESY CSS – Control System Studio EPICS collaboration meeting CSS – Control System Studio Update EPICS collaboration meeting 2008 Shanghai.
ROCS Web Based Reporting Tool Using SNS Relational Database By Katia Danilova, Ernest L. Williams Jr. Control Systems group, ASD, SNS.
SNS EPICS Config. Database Control System Configuration DB Workshop, Sep. Jlab … participants from BESSY, BNL, JLab, PSI IOC DB meeting, Oct. 2-3.
Configuration database status report Eric van Herwijnen September 29 th 2004 work done by: Lana Abadie Felix Schmidt-Eisenlohr.
B. Dalesio, N. Arnold, M. Kraimer, E. Norum, A. Johnson EPICS Collaboration Meeting December 8-10, 2004 Roadmap for IOC.
SNS EPICS Config. Database May 2001 Kay-Uwe Kasemir, LANL.
R. Keitel IRMIS Workshop, APS, 9-Mar-2005 RDB Tools at TRIUMF/ISAC.
RDB Issues at SLAC Archiver Store General EPICS Support.
LHCb Configuration Database Lana Abadie, PhD student (CERN & University of Pierre et Marie Curie (Paris VI), LIP6.
UNICOS LHCLoggingDB Josef Hofer EN/ICE/SCD. Agenda The LHC Logging Database Purpose of the LHCLogging component Basic concepts Advanced concepts Logging.
December 2004EPICS JAERI/ KEK 1 EpicsOra EpicsOra and I/O hardware Judith Rock, Anatoli Khvorostianov.
Level 1-2 Trigger Data Base development Current status and overview Myron Campbell, Alexei Varganov, Stephen Miller University of Michigan August 17, 2000.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
CS 440 Database Management Systems Stored procedures & OR mapping 1.
An Introduction to Epics/Tango Steve Hunt Alceli EPICS Meeting 2008 INFN Legnaro 15 Oct 17:15.
SNS Integrated Control System ORACLE –JERI DB Generation April 27, 2004 Coles Sibley Jeff Patton.
R R R CSE870: UML Component Diagrams Implementation Diagrams.
Creating a simplified global unique file catalogue Miguel Martinez Pedreira Pablo Saiz.
RDB-Based Configuration Management - A New Approach
Relational Database Collaboration
ChannelFinder Directory Service
IRMIS Technical Details
CS 440 Database Management Systems
Control System Studio (CSS)
EPICS IOCs – Relational DB
Ralph Lange EPICS Seminar IHEP Beijing 2002
Aida; Accelerator Integrated Data Access
Configuration DB Status report Lana Abadie
Presentation transcript:

T. Birke  IRMIS Collaboration meeting  March '05  APS  BESSY Configuration Management BESSY Configuration Management Plans / Wishes Thomas Birke, Benjamin Franksen, Bernhard Kuner, Ralph Lange, Patrick Laux, Roland Müller, Götz Pfeiffer, Joachim Rahn Experiences with our old system Its deficiencies Lessons learned Requirements for a new system

T. Birke  IRMIS Collaboration meeting  March '05  APS  BESSY Configuration Management Experiences with our old system Device oriented approach  Set of RDB-tables and at least one application per device class 100s of tables in 10s of different structures  not maintainable (after a few years) Tight coupling of application and RDB is hindering,  several iterations with DB-admin in the beginning Data-maintenance by device-expert is nice – but never really worked Most parameters for most devices are in RDB Cross-application links (ALH, Archiver, Save/Restore…) require central structure or are also unmanageable

T. Birke  IRMIS Collaboration meeting  March '05  APS  BESSY Configuration Management Information from e.g. capfast-drawings is missing in RDB!  DEVICE:substructure:signal.ATTR for most applications, just the device-name is in the RDB What about version control and fallbacks?  Source-code is in CVS but RDB-contents? The older versions of an application may not even work with the newer RDB-contents!  Use ORACLE features? DBMS_FLASHBACK.ENABLE_AT_TIME(' :00') Experiences with our old system Text Editor Capfast, vdct… DB Template Text Editor SubstitutionsEPICS DB Script RDB

T. Birke  IRMIS Collaboration meeting  March '05  APS  BESSY Configuration Management More deficiencies No way to map hierarchies  Devices may consist of several sub-devices  A setpoint of a power supply may be the sum of several independent values (higher order inputs) Some devices / device-classes are not in RDB at all  No “need”/time to create appropriate RDB structures Information necessary to configure generic tools (ALH, Archiver…) is wide-spread or not even existing  those tools are configured manually! Set of tables per device-class  uncontrolled growth of RDB  RDB gets more and more unmanageable We found insufficiencies in our naming convention (side-show) DEVICE:substructure:signal.ATTR covereduncovered

T. Birke  IRMIS Collaboration meeting  March '05  APS  BESSY Configuration Management It’s quite comfortable (in some aspects)  Allows us to use convenient external tools like capfast, vdct, CVS, my-favourite-editor, scripts… to create databases, substitution-files, template-files or other configuration files  Device-oriented approach has some advantages in maintenance E.g. a broken power supply gets replaced by one of a different type  requires change of one entry in RDB Generic tools that access PVs directly (ALH, Archiver, Save/Restore …) are mostly configured by hand Higher level tools (orbit-correction …) access devices via cdev and hence are sufficiently supported (except…)  cdev-classes (for high-level-apps) map directly to device- classes (but also need information from other source!)  But parts of the cdev-ddl file are configured by hand as well Nevertheless, it’s not that bad…

T. Birke  IRMIS Collaboration meeting  March '05  APS  BESSY Configuration Management What we require a new system to support Generation of *.db, *.substitution, *.template All other kinds of configuration data ALH, Archiver, Save/Restore, Orbit-Correction, other yet unknown applications…  Different views to the same dataset EPICS DB CDEV ddl RDB Save/Restore Archiver AlarmHandlerStripToolgeneric Appl. Screens (adl) Orbit-Corr.Measurement High Level Applications Navigation Displays IOC Preconfigured Applications ** * * Actually configured from RDB **

T. Birke  IRMIS Collaboration meeting  March '05  APS  BESSY Configuration Management What we require … (contd.) Lose coupling between RDB and Application (ASCII-Files) Experiment with application without changing RDB-contents Develop an application without RDB and then import configuration data CVS-control May cause problems with information that is shared between applications (local copies!) Application generic standard and specialized scripts/programs script/program (may not be necessary) all under CVS control RDB ASCII-Files Capfast, vdct…

T. Birke  IRMIS Collaboration meeting  March '05  APS  BESSY Configuration Management What else … Continue to use external tools to create configuration data  Capfast, vdct, emacs…  primary source of information may not be in RDB One common generic RDB-structure for all applications  Every type of configuration information goes into this generic RDB structure Application specific frontends for maintenance  web-based, Java, whatever… Scripts to import and export application-specific configuration data  EPICS-DB, Archiver, ALH… Version-Control, Logging  What did who change when (and maybe even why)? CVS of the results gives hints, but may not be enough Application-specific access control  All users/applications use one table!

T. Birke  IRMIS Collaboration meeting  March '05  APS  BESSY Configuration Management What else … (contd.) Development of a new Application must be possible without requiring the DB-admin or anybody else to create new RDB-structures Generic tools for basic tasks  A simple application should not need to provide fancy SQL-statements or scripts/programs written in whatever language to create its configuration data  Im-/export of standard configuration data db/template/substitution/bpt, ALH, Archiver… Arbitrary hierarchies of name/value pairs with inheritance, overloading, typing, tagging… Object-oriented data model  Classes with inheritance, overloading, types, tags  Complex applications define their own classes  Base functionality stored in base classes Have all existing PVs available in RDB (upfront!) Storage for other user-data (maybe not a must-have…)  part-/serial-numbers, repair/maintenance history…

T. Birke  IRMIS Collaboration meeting  March '05  APS  BESSY Configuration Management There may be more … … but that’s basically it.

T. Birke  IRMIS Collaboration meeting  March '05  APS  BESSY Configuration Management What we already did Developed a generic RDB-model  Represents a directed acyclic graph with name/value pairs attached to nodes  4 tables and a few views gadget –nodes in graph gadget_relation –edges in graph gadget_type –arbitrary grouping/tagging attribute –name/value pairs  Access-functions (API) implemented in PL/SQL e.g. access gadgets by path with wildcards /ArchiverConfig/ctl/HF/PAH1R/pCavRdbk /ArchiverConfig/ctl/HF/PAH_R/pCavRdbk /ArchiverConfig/%/pCavRdbk 27 functions/procedures with 60 signatures (~1500 LOC) All write-access and most reads go through API Interfaces with all scripting languages used at BESSY First tests with sample applications  Had to “improve” quality of SQL-statements because of degrading performance

T. Birke  IRMIS Collaboration meeting  March '05  APS  BESSY Configuration Management DB Structure gadget PKgadget_key name gadget_relation FK1 FK2 FK3 parent child distance type gadget_type FK1 FK2 gadget type gadget_attribute FK1 FK2 gadget name value

T. Birke  IRMIS Collaboration meeting  March '05  APS  BESSY Configuration Management Gadgets Example A B C1C2 KeyName 1A 2B 3C1 4C2 ParentChildDistance gadget gadget_relation

T. Birke  IRMIS Collaboration meeting  March '05  APS  BESSY Configuration Management Sample Graph ArchiverConfig ctl HFLifetimePowerSupplies …… … PAH1R …… PAH2R pCavRdbk …… monitor1 period1 write_period30 buffer_reserve3 file_size500 … Application Config-File Group PV-Name

T. Birke  IRMIS Collaboration meeting  March '05  APS  BESSY Configuration Management Sample Graph PAH1RPAH2R pCavRdbk … HOPR650 LOPR0 …… CAN-timeout500 … EPICS-DB RF-System IOC1S15G … …… Application Device-class IOC-name PV-Name CANPORT2 NODEID12 ……