D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli...

Post on 29-Dec-2015

214 views 0 download

transcript

D.S.I. VeneziaD.S.I. VeneziaL.N.LL.N.L

CMS

Error Handling in RCMSError Handling in RCMS

An Overview

Francesco LelliFrancesco.lelli@lnl.infn.it

D.S.I. VeneziaD.S.I. VeneziaL.N.LL.N.L

CMS

• Error Handler Principles

• An Error Handling Framemork: Purpose & Functionality

• Framework Customization

Overview

D.S.I. VeneziaD.S.I. VeneziaL.N.LL.N.L

CMS

Error Handling

DB

App 1

App 2

App 3

Error: DB Connection Broken

An Accademic Scenario:

Probably App 1 is wrong

Error: DB Connection Broken

Error: DB Connection Broken

Probably the DB is crashed

Error: Clients Connection Broken

Probably we have a Network Problem

• Error is “just a point of view”

• We need to have a global point of view to try to be objective

Conclusion:

D.S.I. VeneziaD.S.I. VeneziaL.N.LL.N.L

CMS

Error Handling

DB

App 1

App 2

App 3

• Error is “just a point of view”

• We need to have a global point of view to try to be fair

Consideration:

Function Manager

D.S.I. VeneziaD.S.I. VeneziaL.N.LL.N.L

CMS

Handler in the RCMS context

Handler

Function Manager

Display

Send to..

Collector

SOAP/XMLLog

State

Error

Monitor

Comands

PublishSubscribe

System

Storage System

On-Line SUBSCRIBERS

Persistent SUBSCRIBERS

Handler

Collector

Different Formats

IMSIMS

Non XDaq Applications

D.S.I. VeneziaD.S.I. VeneziaL.N.LL.N.L

CMS

The Handler in the control tree

Handler Handler Handler

Controller

Handler

DB

Pub Sub System

DM Tools

Rule

Discover

Problem Solver

Controller ControllerController

D.S.I. VeneziaD.S.I. VeneziaL.N.LL.N.L

CMS

DB

PublishSubscribe System

DM Tools

Rule

Discover

t - At t t + AtX X X X X

Y - Y

Off line analysis, try to understand what happened during a system failure

On line analysis, try to prevent a system failure

Problem Solver

Problem Solver, a quick view

D.S.I. VeneziaD.S.I. VeneziaL.N.LL.N.L

CMS

Handler: how it works

Handler

Function Manager

Display

Send to..

Collector

Unknown Format Unknown Meaning

Non XDaq Applications

Known Format Unknown Meaning

Known Format known Meaning

D.S.I. VeneziaD.S.I. VeneziaL.N.LL.N.L

CMS

Handler: how it works (2)

DB

JMS

FMCollector

Tomcat

Display

Send to..

Handler

Collector

Log (log4j, log4Cplus)

State (log4j, XMLRappresentation)

Error (CMSError, CBE, any other XML rappresentation)

Monitor

Brain Action Maker

Event Listener

Event Listener

Event Listener Handler

Every possible algorithm can be plugged:Jess based systems, java classes, Neural Networks, etc..

They wait for an external input and they “present” it to the brain

Set of API that allows the brain to perform action

• Collector Listener• Multicollector Listener • Handler Listener • CMSError Simulator• CBE Simulator

Event Listener Implemented :

Handler Manager

WSDL

D.S.I. VeneziaD.S.I. VeneziaL.N.LL.N.L

CMS

What the final user has to do

Define his custom

handling algorithm

myHandlerBrain.doSomething();public void doSomething();

D.S.I. VeneziaD.S.I. VeneziaL.N.LL.N.L

CMS

What the final user can also do

Define his custom Event Listener

D.S.I. VeneziaD.S.I. VeneziaL.N.LL.N.L

CMS

Technical Preview Content

Release versions:

Messages API:

Event Listener Implemented:

•Stand alone version (JavaDoc and User Guide)•Tomcat version (JavaDoc and User Guide)

•CBE messages format•Log4J&Log4Cplus messages format•CMSError schema (dummy)

•Collector Event Listener•Multicollector Event Listener•Handler Event Listener•CBE messages Simulator•CMSError schema Simulator

Technical Preview On 31/03/2005

Code Available on CERN CVS

D.S.I. VeneziaD.S.I. VeneziaL.N.LL.N.L

CMS

Technical Preview Content (2)

Remote Control GUI&UI:

Action Maker API for:

Working Examples:

•WS&WSDL •JSP

•Function Manager Invocation •Messages display•Send messages to a collector•Send messages to an Handler

•Jess Brain Sample (logic programming)•2 Brain Class Sample•Chess Brain Sample (you can play chess with Xdaq!)

Technical Preview On 31/03/2005

Code Available on CERN CVS

D.S.I. VeneziaD.S.I. VeneziaL.N.LL.N.L

CMS

Spares

D.S.I. VeneziaD.S.I. VeneziaL.N.LL.N.L

CMS

Handler Comunication

HandlerRun Control and Monitor

Farm Manager

Sub Farm Manager 1

Sub Farm Manager 2

Sub Farm Manager 3

Configuration Stored in a XML File

D.S.I. VeneziaD.S.I. VeneziaL.N.LL.N.L

CMS

Handler Comunication(2)Run Control and Monitor

Farm Manager

Sub Farm Manager 1

Sub Farm Manager 2

Sub Farm Manager 3

Message:• Asynchronous Messages• JMS Object Messages• No XML Serialization • Any Possible Format • JMS Broker:

SunMessageQueue3.5

Comunication:• Send to One Son

D.S.I. VeneziaD.S.I. VeneziaL.N.LL.N.L

CMS

Handler Comunication(3)Run Control and Monitor

Farm Manager

Sub Farm Manager 1

Sub Farm Manager 2

Sub Farm Manager 3

Comunication:• Send to One Son• Send to Father

Message:• Asynchronous Messages• JMS Object Messages• No XML Serialization • Any Possible Format • JMS Broker:

SunMessageQueue3.5

D.S.I. VeneziaD.S.I. VeneziaL.N.LL.N.L

CMS

Handler Comunication(4)Run Control and Monitor

Farm Manager

Sub Farm Manager 1

Sub Farm Manager 2

Sub Farm Manager 3

Comunication:• Send to One Son• Send to Father• Send to Children

Message:• Asynchronous Messages• JMS Object Messages• No XML Serialization • Any Possible Format • JMS Broker:

SunMessageQueue3.5

D.S.I. VeneziaD.S.I. VeneziaL.N.LL.N.L

CMS

Handler Comunication(5)Run Control and Monitor

Farm Manager

Sub Farm Manager 1

Sub Farm Manager 2

Sub Farm Manager 3

Comunication:• Send to One Son• Send to Father• Send to Children • Send to All

Message:• Asynchronous Messages• JMS Object Messages• No XML Serialization • Any Possible Format • JMS Broker:

SunMessageQueue3.5

D.S.I. VeneziaD.S.I. VeneziaL.N.LL.N.L

CMS

Handler Comunication(6)Run Control and Monitor

Farm Manager

Sub Farm Manager 1

Sub Farm Manager 2

Sub Farm Manager 3

Comunication:• Send to One Son• Send to Father• Send to Sons• Send to All• Send to a Generic

Handler

Message:• Asynchronous Messages• JMS Object Messages• No XML Serialization • Any Possible Format • JMS Broker:

SunMessageQueue3.5

D.S.I. VeneziaD.S.I. VeneziaL.N.LL.N.L

CMS

Handler Comunication(7)Run Control and Monitor

Farm Manager

Sub Farm Manager 1

Sub Farm Manager 2

Sub Farm Manager 3

Comunication:• Send to One Son• Send to Father• Send to Children • Send to All• Send to a Generic

Handler• Send to me

Message:• Asynchronous Messages• JMS Object Messages• No XML Serialization • Any Possible Format • JMS Broker:

SunMessageQueue3.5