A Software Event Summation System for MDSplus



Similar documents
MDSplus Automated Build and Distribution System

GA A23162 ENHANCED COMPUTATIONAL INFRASTRUCTURE FOR DATA ANALYSIS AT THE DIII D NATIONAL FUSION FACILITY

WHAT IS SCADA? A. Daneels, CERN, Geneva, Switzerland W.Salter, CERN, Geneva, Switzerland. Abstract 2 ARCHITECTURE. 2.1 Hardware Architecture

FOXBORO. I/A Series SOFTWARE Product Specifications. I/A Series Intelligent SCADA SCADA Platform PSS 21S-2M1 B3 OVERVIEW

Detailed Design Report

Learning More About Load Testing

Cover. SEB SIMOTION Easy Basics. Collection of standardized SIMOTION basic functions. FAQ April Service & Support. Answers for industry.

Component Based Rapid OPC Application Development Platform

Integrating the Internet into Your Measurement System. DataSocket Technical Overview

SyncLockStatus Evaluator s Guide

Boost Database Performance with the Cisco UCS Storage Accelerator

IP-Based Communications Solutions

DATA ANALYSIS SOFTWARE ON THE FTU EXPERIMENT AND ITS RECENT DEVELOPMENTS

INTELLECT TM Software Package

Municipality Moves SCADA System from Desktop Computers to Terminal Services

Redundant Serial-to-Ethernet Data Connections for Mission-critical Devices

OVERVIEW. CEP Cluster Server is Ideal For: First-time users who want to make applications highly available

TNT SOFTWARE White Paper Series

Design of Remote data acquisition system based on Internet of Things

DATA LOGGING FOR TECHNICAL SERVICES AT CERN

5 Reasons Your Business Needs Network Monitoring

POS UNITS. Installation and user guide. Count, video recording and POS control unit ENGLISH

Product Brief. DC-Protect. Content based backup and recovery solution. By DATACENTERTECHNOLOGIES

Big Data Functionality for Oracle 11 / 12 Using High Density Computing and Memory Centric DataBase (MCDB) Frequently Asked Questions

SenseLink TM. End-Point Controller. Addendum

Asynchronous data change notification between database server and accelerator control systems

Web site:

ActiveXperts Network Monitor. White Paper

Out n About! for Outlook Electronic In/Out Status Board. Administrators Guide. Version 3.x

Safeguarding Your Plant Automation Programs with Change Management

High Availability and Disaster Recovery Solutions for Perforce

Automation Engine 14. Troubleshooting

Crow Limited Warranty. Print Version 017

EUROPEAN ORGANIZATION FOR NUCLEAR RESEARCH CERN ACCELERATORS AND TECHNOLOGY SECTOR A REMOTE TRACING FACILITY FOR DISTRIBUTED SYSTEMS

EWeb: Highly Scalable Client Transparent Fault Tolerant System for Cloud based Web Applications

Release Notes OPC-Server V3 Alarm Event for High Availability

Integrated Building Management and Security System. Building Automation & Security.

A Proposed Integration of Hierarchical Mobile IP based Networks in SCADA Systems

EnerVista TM Viewpoint Monitoring v7.10

Rosemount Analytical s X-STREAM XE Web-Browser Interface Takes Process Analysis to the Next Level

Instrumentation for Linux Event Log Analysis

EDM SOFTWARE ENGINEERING DATA MANAGEMENT SOFTWARE

AlphaTrust PRONTO - Hardware Requirements

SCADA Questions and Answers

SystemWatch SM. Remote Network Monitoring

Multi-DNC. by Spectrum CNC Technologies

Compaq Batch Scheduler for Windows NT

Domain Time II s management tools enable complete control of your entire network time hierarchy from a single workstation.

There are numerous ways to access monitors:

Overlapping Data Transfer With Application Execution on Clusters

Highly Available Mobile Services Infrastructure Using Oracle Berkeley DB

Lowering Storage TCO with Iomega NAS

Advantage Database Server or Microsoft SQL Server which one is right for you?

EDM Cloud Remote Monitoring Solutions. Crystal Instruments, January 2014

Selecting the Right NAS File Server

SysAidTM Product Description

CPS104 Computer Organization and Programming Lecture 18: Input-Output. Robert Wagner

Adaptation of General Purpose CFD Code for Fusion MHD Applications*

Performance Comparison of Database Access over the Internet - Java Servlets vs CGI. T. Andrew Yang Ralph F. Grove

CloudLink - The On-Ramp to the Cloud Security, Management and Performance Optimization for Multi-Tenant Private and Public Clouds

Social Innovation through Utilization of Big Data

Domain Time II. Time Synchronization Software Suite Precise Time Synchronization for the Entire Enterprise

Redundancy for OPC. by Robert McIlvride and Andew Thomas Cogent Real-Time Systems Inc.

SMS Alarm Messenger. Setup Software Guide. SMSPro_Setup. Revision [Version 2.2]

PORTrockIT. Veeam : accelerating virtual machine replication with PORTrockIT

The ABCs of SNMP. Info Sheet. The ABC of SNMP INTRODUCTION. SNMP Versions

VERITAS Cluster Server v2.0 Technical Overview

Wellness screening for your machine Remote Condition Monitoring

PATROL From a Database Administrator s Perspective

Using Network Application Development (NAD) with InTouch

Ensure Continuous Availability and Real-Time Monitoring of your HP NonStop Systems with ESQ Automated Operator

WhatsUp Gold v11 Features Overview

ProactiveWatch Monitoring For the Rest of Us

Veritas Cluster Server by Symantec

StruxureWare TM Center Expert. Data

Machine Data Analytics with Sumo Logic

Unitt Zero Data Loss Service (ZDLS) The ultimate weapon against data loss

DSX-Soft I/O Integration Software

Change Manager 5.0 Installation Guide

Whitepaper Continuous Availability Suite: Neverfail Solution Architecture

Xopero Centrally managed backup solution. User Manual

Statel Robot Service Help Eurostat

VM600 CMS Software. VM600 Series Software for Condition Monitoring System (CMS) FEATURES DESCRIPTION

Transcription:

A Software Event Summation System for MDSplus W. M. Davis a *, D.M. Mastrovito a, P.G. Roney a, P. Sichta a a Princeton Plasma Physics Laboratory, P.O. Box 451, Princeton, NJ, 08543, USA Abstract The MDSplus data acquisition and management system uses software events for communication among interdependent processes anywhere on the network. Actions can then be triggered, such as a data-acquisition routine, or analysis or display programs waiting for data. A small amount of data, such as a shot number, can be passed with these events. Since programs sometimes need more than one data set, we developed a system on NSTX to declare composite events using logical AND and OR operations. The system is written in the IDL language, so it can be run on Linux, Macintosh or Windows platforms. Like MDSplus, the Experimental Physics and Industrial Control System () is a core component of the NSTX software environment. The Event Summation System provides an IDLbased interface to. This permits -aware processes to be synchronized with MDSplus-aware processes, to provide, for example, engineering operators information about physics data acquisition and analysis. Reliability was a more important design consideration than performance for this system; the system s architecture includes features to support this. The system has run for weeks at a time without requiring manual intervention. Hundreds of incoming events per second can be handled reliably. All incoming and declared events are logged with a timestamp. The system can be configured easily through a single, easy-to-read text file. Keywords: NSTX, MDSplus, * Corresponding author. E-mail: bdavis@pppl.gov, Phone: (609)-243-2546, Fax: (609)-243-3086

1. Background MDSplus [1,2] is a set of Open Source software tools for data acquisition and storage, as well as a methodology for the management of complex scientific data. It is specifically targeted for pulse-based Fusion Energy experiments. Hardware and software settings may be configured from a standard tool (Traverser [3]) or from custom-built programs. These settings, along with monitored values and configuration details, all acquired and analyzed data, and subjective comments, may be stored in a hierarchical, self-describing data structure associated with a particular experimental pulse (shot). Like MDSplus, the Experimental Physics and Industrial Control System () [4] is, like MDSplus, a set of Open Source software tools developed collaboratively and used worldwide [5]. It is typically used for interactive control and continuous monitoring on large scientific instruments such as a particle accelerators and telescopes. Both of these systems have been used on National Spherical Torus Experiment (NSTX) [6] at the Princeton Plasma Physics Laboratory (PPPL) since it began operating in 1999. As shown in Fig. 1, for NSTX is primarily used for Engineering subsystems [7], such as the torus vacuum system, the water cooling system, and the power supply coils. MDSplus is primarily used on the Physics side for diagnostic control and data acquisition, display and analysis [8]. MDSplus supports 57 diagnostics and subsystems, and supports 19 subsystems for NSTX. Convenient communications and synchronization between and MDSplus is required. Workstations Workstations MDSplus Repository Unix & VMS Analysis Control System Network NSTX Fire Wall Office Network VME/vxWorks IOC Unix CA Clients Unix IOC VMS MDSplus server Linux MDSplus server CAMAC RS-232 PLC PC PC CAMAC PC Instrumentation & Controllers Fig. 1. The NSTX data acquisition and control system. Thousands of control and monitor points are necessary to operate a fusion experiment such as NSTX, similar to plant operations for a factory. In 2007 NSTX had 250 different display pages for 2500 I/O points for such functions. Additionally, pulsed fusion experiments have unique data handling requirements because large bursts of data are taken in a very short time. About every 15 minutes a one-second plasma is produced. Approximately 1 GB of raw data is acquired from instruments in dozens of subsystems, hosted by Unix, VMS and Windows computers. This raw data is transferred to and stored in an MDSplus repository and is available within a few minutes to anyone subscribed to particular signals. Some of this raw data is also

used as input for analysis programs, which also store their results in MDSplus, both to provide immediate feedback to the machine operators and diagnostic physicists so they may make adjustments for the next machine pulse or shot, as well as to provide a repository of information for later off-line analysis. Synchronization is needed between various phases of the experimental cycle, as well as between data providers and data consumers. For example, when an event issued by an MDSplus STORE action is received, it can trigger an analysis job for that data. There are 63,000 data nodes in MDSplus of which 15,000 are signals originating from analog channels. In addition to raw data, about 200 MB of analyzed data is stored per shot. A typical NSTX run day produces about 40 shots and the facility operates for between 60 and 100 days a year. Currently, about 4 terabytes of compressed raw and analyzed NSTX data reside on disk. 2. Objectives of the Event Summation System MDSplus communicates between tasks with software messages called events. This is done over the internet using TCP/IP socket connections to a designated Event Server host computer. Event messages can contain up to 2 KB of data. In NSTX applications, if this data field contains anything, it is usually just the NSTX shot number. Someone wishing to display data as soon as it is available, simply waits on the associated event. More complex analyses, however, typically need more than one data set, and must wait on what should be the latest-occurring event, and then poll for other data if it is not yet available; the Event Summation System declares composite events using logical AND and OR operations. There is no event-recording mechanism that is part of the standard MDSplus distribution; the log file for this system provides such a record. Previous work allowed MDSplus events to be generated from [9]; this work describes notifying of any MDSplus events. 3. System Design The key elements to the Event Summation System, shown in Fig. 2, are the processes ev2files.pro and sumevents.pro. These tasks were written in the IDL language [10], so they can be run on Linux, Macintosh or Windows platforms. Multiple instances of the IDL components may be run on more than one computer for performance or management reasons.

Event Test_a for Event Test_b for AandB = Test_a & Test_b CorD/ = Test_c Test_d Init File EVS.QCS MDSplus Event Server MonEvents.pro 0 0 0 X X X Test_a Test_b Test_c Test_d CorD AandB Displays Alarm Handlers Trending Plots Events ev2files.pr o EventShots/ Test_a. Test_b. sumevents.pro Distributed Database 11:29:01 ev2files wrote EventShots/Test_a. 11:29:02 sumevents saw event Test_a for shot 11:29:13 ev2files wrote EventShots/Test_b. 11:29:13 sumevents saw event Test_b for shot 11:29:13 sumevents declaring event AandB for shot Log File log/idlqcsserver.log Fig. 2. The Event Summation System for MDSplus. Events come into MDSplus as messages through TCI/IP connections. Processes subscribed to a particular event, ev2files.pro in this case, are notified when the event occurs and can be passed the shot number (or other data) in the message. For simplicity and reliability, ev2files.pro simply forms files (of length zero) whose names are the event name with the data value (usually the shot number) as the extension. sumevents.pro notices when these files are created and builds and fills a data structure to keep track of unfulfilled dependencies. This data structure in sumevents.pro is check-pointed to disk whenever it changes, so that crashes or restarts of the system lose few, if any, events. The initial event dependencies are represented in a text file (e.g., EVS.QCS at the top of Fig. 2), consisting of simple Boolean expressions, with optional keywords (such as /) after the event to be declared. When all dependencies for an event are satisfied for a particular shot, it is declared with that shot number. In Fig. 2, for example, after events Test_a and Test_b arrive for shot, the event AandB is generated for that shot. If the / keyword follows an event on the left-hand side of the equation, that event is relayed to an channel access process variable (by calling CAPUT [11]) with a name similar to the event name. The MonEvents.pro program is an auxiliary program, also shown in Fig. 2, that looks for the events used in the Event Summation System. Besides the advantage of visually seeing when events occur, the logging feature of this system is useful in diagnosing problems after the fact. allows users to generate a variety of sophisticated alarm handlers, panel displays, trending plots, etc. Another auxiliary system used on NSTX for reliability is the Auto-reload system (not shown). Linux processes are checked periodically and, if missing, restarted by a script 4. Performance Each instance of this system can watch for up to 2000 events. MDSplus events can be

generated on one host and recognized anywhere on our network in about a millisecond, and thus satisfy most speed requirements for NSTX, although some real time operations, such as our Plasma Control System, require smaller latency. Event rates for this system were tested by generating them from one and from two different computers simultaneously (both connecting to a remote MDSip server). The system can process an event in ~5 ms. The performance of this system was largely independent of NSTX shot-processing activity. When events were generated at 5/s, none were missed by this system. At 10/s from one computer, none were missed, but at 10/s from two computers (5/s from each), ~0.1% of the events were missed about half of the time. As the frequency of event declaration increased, the percentage of missed events increased. At 10/s, ~0.2% were missed. At 1000/s ~1.5% were missed. These misses are not inherent in MDSplus events, because 6000 can be generated, from one or two servers, with no waiting between them (which takes 8.5 s and 12.75 s, respectively), and no events are missed by a simple program. Further work will be done to eliminate these misses (see below). During operations, NSTX has been summing only 30 events per shot, which depend on a total of 60 different events (most occur within a 5 minute period). No errors have been detected or suspected in several months of running. The tasks have run for 6 weeks without needing to be restarted. This Event Summation System can be easily distributed among different computers if higher rates are desired. 5. Future Plans Now that can know about MDSplus events, we have many areas in which we can improve our notifications of problems. Missing diagnostic information which is critical to operations will indicate alarms on operator screens and send e-mails to interested parties. While the reliability of the Event Summation System has been flawless during operations, if we increase the number of events by an order of magnitude, we need to improve the design, or distribute the system among several nodes. In order to make this into an Open Source system, it will be necessary to rewrite the modest amount of code that uses the proprietary IDL language. 6. Summary This straightforward add-on to MDSplus provides a reliable, easy-to-use system to recording desired MDSplus events and declaring composite events when logical combinations of other MDSplus events are satisfied. This system also provides a convenient way to inform of MDSplus events, so its sophisticated alarm and monitoring tools can be used. Acknowledgements This work was supported by DOE Contract DE-AC02-76CH03073. References [1] MDSplus, http://www.mdsplus.org/ [2] J.A. Stillerman, T.W. Fredian, K.A. Klare, G. Manduchi, MDSplus Data Acquisition System. Rev. of Sci. Instrum. 68 (1) January 1997, p. 939. [3] http://nstx.pppl.gov/nstx/software/traverser.html [4] - Experimental Physics and Industrial Control System, http://www.aps.anl.gov/epics/

[5] K.H. Kim, C.J. Ju, M.K. Kim, M.K. Park, J.W. Choi, M.C. Kyum, M. Kwon, the KSTAR Control Team, The KSTAR integrated control system based on, Fusion Eng. Des. 81 (2006), 1829-1833. [6] S. Kaye, M. Ono, Y.-K.M.Peng, D.B. Batchelor, M.D. Carter, W. Choe, et al., The Physics Design of the National Spherical Torus Experiment. Fusion Technology, 36, July 1999, p. 16, or http://nstx.pppl.gov/ [7] P. Sichta, J. Dong, G. Oliaro, P. Roney, Overview of the NSTX Control System, 8th ICALEPCS International Conference on Accelerator and Large Experimental Physics and Control Systems, San Jose, CA. (2001) [8] W. Davis, P. Roney, T. Carroll, T. Gibney, D. Mastrovito, The use of MDSplus on NSTX at PPPL, Fusion Eng. Des. 60 (2002), 247-251. [9] D. Mastrovito, W. Davis, J. Dong,, P. Roney, P. Sichta, Integrating and MDSplus, Fusion Eng. Des. 81 (2006), 1847-1851. [10] IDL, The Data Visualization & Analysis Platform, http://www.ittvis.com/idl/ [11] http://nstx.pppl.gov/nstx/software/programming/pppl_idl_routines.html#caput