Channel Archiver Stats & Problems Kay Kasemir, Greg Lawson, Jeff Patton Presented by Xiaosong Geng (ORNL/SNS) March 2008.

Slides:



Advertisements
Similar presentations
Managed by UT-Battelle for the Department of Energy Best Ever Archive Utility, Yet (BEAUtY) Kay Kasemir April 2013.
Advertisements

Control System Studio (CSS)
17th February, 2000 by Maciej Korzeniowski (CERN-IT-IA-MI) 1 Oracle Discoverer Product Presentation  This is an ad hoc query and analysis tool for.
ESafe Reporter V3.0 eSafe Learning and Certification Program February 2007.
EPICS Channel Access Overview 2006
Archive Systems What you always wanted to know but were afraid to ask: What’s available? Who’s doing what? PAL EPICS Meeting Oct
A Comparison of Database Software CS 616 April 8, 2004 Team 7 Mandar Patankar Jonathan Cohen B. Timothy Walsh.
LCT2506 Internet 2 Data-driven web sites Week 5. LCT2506 Internet 2 Current Practice  Combining web pages and data stored in a relational database is.
The Soft-IOC Based Alarm Handler – an Operations View Pam Gurd October 31, 2007.
Data Warehousing: Defined and Its Applications Pete Johnson April 2002.
11 SERVER CLUSTERING Chapter 6. Chapter 6: SERVER CLUSTERING2 OVERVIEW  List the types of server clusters.  Determine which type of cluster to use for.
Air Quality Data Analysis Using Open Source Tools
DØ Channel Archiver Tutorial V.Sirotenko, 4/4/2001.
Managed by UT-Battelle for the Department of Energy Best Ever Archive Utility, Yet Creating a BEAST was easy. BEAUtY seems harder. April.
Software Engineer, #MongoDBDays.
2/10/2000 CHEP2000 Padova Italy The BaBar Online Databases George Zioulas SLAC For the BaBar Computing Group.
Loris Giovannini, Mauro Giacchini Epics Collaboration Meeting
Channel Archiver Introduction 2006
From the ChannelArchiver to the Best Ever Archive Utility, Yet July 2009.
Advanced Web Forms with Databases Programming Right from the Start with Visual Basic.NET 1/e 13.
Chapter 8 Implementing Disaster Recovery and High Availability Hands-On Virtual Computing.
Controls Murali Shankar Luofeng Li Mike Zelazny Archiver Appliance Report Fall 2012.
Stanford Linear Accelerator Center November 15, 2000Lee Ann Yasukawa1 Archive Data to ORACLE The Prototype PEPII model.
Hive Facebook 2009.
Update on a New EPICS Archiver Kay Kasemir and Leo R. Dalesio 09/27/99.
(Chapter 10 continued) Our examples feature MySQL as the database engine. It's open source and free. It's fully featured. And it's platform independent.
Stanford Linear Accelerator Center R. Hall/L. Yasukawa1 EPICS Collaboration Mtg May 21, 2002 Oracle Storage for the Channel Archiver Managing Channel Archiver.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Oct EPICS Meeting, PAL, Korea Control System Studio Training.
Stanford Linear Accelerator Center R. D. Hall1 EPICS Collaboration Mtg Oct , 2007 Oracle Archiver Past Experience Lessons Learned for Future EPICS.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Jan Control System Studio Training - Archive System Setup.
MASAR Service Guobao Shen Photon Sciences Department Brookhaven National Laboratory EPICS Collaboration Workshop Oct 05, 2013.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Oct EPICS Meeting, PAL, Korea Control System Studio Training.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Jan Control System Studio, CSS Overview.
SNS Control System Slide 1, 4/19/2002 Converting Applications to R3.14 June 2003,
General Time Update David Thompson Epics Collaboration Meeting June 14, 2006.
Tips and Tricks for Managing and Administering your Enterprise Project Management Server Solution Mike Joe / Karthik Chermakani Software Test Engineer.
Database Reports and the IOC Crawler Presented by Katia Danilova 09/01/2005.
ALMA Archive Operations Impact on the ARC Facilities.
SNS Alarm System Status Curtis Dunn Control System Suite/Eclipse Frameworks Workshop EPICS Collaboration Meeting June 12-16, 2006.
Spring 2003 EPICS Collaboration Controls Group CZAR 2.0 (in development) Christopher A. Larrieu Chris Slominski.
Lessons Learned From The SNS Relational Database Presented by David Purcell For David Purcell, Jeff Patton, and Katia Danilova.
At the SNS Kay Kasemir, Xiaosong Geng, Dave Purcell ORNL/SNS March 2008.
7 Strategies for Extracting, Transforming, and Loading.
Channel Access Client Coding 2006
ROCS Web Based Reporting Tool Using SNS Relational Database By Katia Danilova, Ernest L. Williams Jr. Control Systems group, ASD, SNS.
Senior Solutions Architect, MongoDB Inc. Massimo Brignoli #MongoDB Introduction to Sharding.
ESG-CET Meeting, Boulder, CO, April 2008 Gateway Implementation 4/30/2008.
SNS EPICS Config. Database Control System Configuration DB Workshop, Sep. Jlab … participants from BESSY, BNL, JLab, PSI IOC DB meeting, Oct. 2-3.
Applications Kay Kasemir ORNL/SNS Using Information and pictures from Matthias Clausen, Jan Hatje, and Helge Rickens (DESY) October 2007.
RDB Issues at SLAC Archiver Store General EPICS Support.
Scalable data access with Impala Zbigniew Baranowski Maciej Grzybek Daniel Lanza Garcia Kacper Surdy.
March 2004 At A Glance ITPS is a flexible and complete trending and plotting solution which provides user access to an entire mission full-resolution spacecraft.
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)
Channel Archiver Overview Jan Channel Archiver Channel Access client Stores samples in disk files Design target: handle values/sec Documentation,
XAL based PV Browser Jeff Patton, Chris Fowlkes EPICS Collaboration Meeting – RDB SIG June 12, 2006.
GPFS: A Shared-Disk File System for Large Computing Clusters Frank Schmuck & Roger Haskin IBM Almaden Research Center.
Channel Access Security 2006 O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 2 Channel Access Security  The IOC Application.
© 2006 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Database Growth: Problems & Solutions.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS 2012, April at SLAC Control System Studio Training - Alarm System.
Implementation and Testing of RDB Channel Archiver with MySQL Richard Ma, DePauw University Supervisor: Richard Farnsworth, Argonne National Laboratory.
Managed by UT-Battelle for the Department of Energy Quest for the Best Ever Alarm System Tool Kay Kasemir Oct
Cofax Scalability Document Version Scaling Cofax in General The scalability of Cofax is directly related to the system software, hardware and network.
Bastian Knerr, MKS2, DESY March 2011 XFEL The European X-Ray Laser Project X-Ray Free-Electron Laser 1 iPhone Apps for EPICS EPICS.
SERIALIZED DATA STORAGE Within a Database James Devens (devensj)
Managed by UT-Battelle for the Department of Energy Channel Archiver Update Oct Kay Kasemir
SQL IMPLEMENTATION & ADMINISTRATION Indexing & Views.
EPICS Channel History Storage
Database Management System (DBMS)
Current State - and Replacement
Presentation transcript:

Channel Archiver Stats & Problems Kay Kasemir, Greg Lawson, Jeff Patton Presented by Xiaosong Geng (ORNL/SNS) March 2008

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 2 Channel Archiver  1997 design goal: Write 10,000 samples/sec  Raw 'write' test on today's computers: >50,000 samples/sec  Used by several EPICS sites worldwide

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 3 SNS Stats  Need only ~2,000 samples/sec on average.  Configuration for ~80,000 channels split into ~70 sub-archives  … so that maintenance or problems on one sub-archive won't affect others  Means users have to retrieve from correct sub-archive  CSS DataBrowser makes that a bit easier (next talk)  Disk space: ~170 GB/month  Keep running into disk space limitations

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 4 Data Management Limitations  Difficult and time consuming  Moving data around requires manual index updates (takes hours, could be days)  Few Informational Tools  Nothing prevents duplication  Which channels contribute the most to data growth?  Storage only supports "Append new samples"  Removal of selected channels impossible  Removal of older data limited to complete 'sub archives'  No practical way to use Java or Matlab code to replace original samples with reduced sample count, .. or to insert computed data like daily statistics into "archive"

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 5 Question  Continue to invest in Channel Archiver's data management tools?  End up implementing a relational database?  Why not use existing RDB?

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 6 JLab: MySQL Transition (Chris Slominski)  Very promising performance tests!  Limitations by design  Stores every update from IOC. No 'sampling'.  'Double' stored as 'float' to save space.  Only small arrays.  Metadata: Units. No limits, precision. No status/severity.  MySQL Issues  Table size is limited  Need one table per channel  Table count is limited  Custom code implements 'clustering'  SQL "DELETE" doesn't free disk space, or is very slow (delete ONE week data --> take TWO weeks)

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 7 SNS Oracle Tests  Basic JDBC test code: up to 8,000 inserts/second via network  Tricks  "Batching" ~500 inserts  "Partitioning" spreads one big "sample" table over disk partitions  Currently one partition each day, automatically added. Details are still being developed.  Expensive, but looks like the way to go  Avoid MySQL workarounds  SNS committed to Oracle anyway, but will need partitioning license

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 8 Great! But what about SLAC?  Reported promising performance results for Oracle-based data storage  Lee Ann Yasukawa, Robert Hall: "Archiving Into Oracle", ICALEPCS2001  End of 2004: No more.  What do we need to learn from that?

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 9 Basic Sample Table Design  What data types to support?  Time stamp detail, enumerated values, arrays, meta data?  One table per channel (JLab)?  One table per data type (SLAC)?  SNS: One table for all scalar samples  Possibly wasting space, but best to use SQL across various channels of different types  Array elements in additional table

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 10 Archive Engine Prototype  Developed in Java  Eclipse/CSS command-line app  Reads existing engine config files  "Scanned" and "monitored" sampling as before  "Disabling"/"enabling" of groups of channels  Scalars, arrays, enumerated samples  Web-server interface for status which is similar to the original engine  Writes into Oracle  Write performance OK for scalar tests  Reaches the ~8000 samples/sec from original tests

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 11 Engine's Web Server

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 12 Archive Engine Prototype…  JNI vs. CAJ  Only JNI dependably handles many Channel Access connections (>10,000)  JCA/JNI Performance improved on Mar. 11, use “yield” call not “sleep” 10 msec, approximately factor of 30 improvement (from 45 seconds down to 1.5 seconds for 1460 non-blocking connection requests on SNS physics server)  Can run multiple engines, but RDB enforces that they handle different channels  Arrays are slow  One N-element array comparable to N scalars  Only "Double" type array elements  Need to implement meta data handling (units, limits, …)  Plan is to support MySQL, but "you get what you pay for"  No custom code to handle table size/count limitations  MySQL "Timestamp" only handles seconds, no nanoseconds

O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 13 Summary  Testing Oracle setups and prototype sampling engine  Oracle space currently only ~30GB  Data retrieval via CSS DataBrowser  RDB is just another data source  Compared to current SNS ChannelArchiver setup, performance expected to be  A little less  … but sustainable in the long run.