+ All Categories
Home > Documents > D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli...

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

Date post: 29-Dec-2015
Category:
Upload: hector-pierce
View: 214 times
Download: 0 times
Share this document with a friend
21
D.S.I. D.S.I. Venezia Venezia L.N.L L.N.L CMS Error Handling in Error Handling in RCMS RCMS An Overview Francesco Lelli [email protected]
Transcript
Page 1: D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli Francesco.lelli@lnl.infn.it.

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

CMS

Error Handling in RCMSError Handling in RCMS

An Overview

Francesco [email protected]

Page 2: D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli Francesco.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

Page 3: D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli Francesco.lelli@lnl.infn.it.

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:

Page 4: D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli Francesco.lelli@lnl.infn.it.

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

Page 5: D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli Francesco.lelli@lnl.infn.it.

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

Page 6: D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli Francesco.lelli@lnl.infn.it.

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

Page 7: D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli Francesco.lelli@lnl.infn.it.

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

Page 8: D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli Francesco.lelli@lnl.infn.it.

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

Page 9: D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli Francesco.lelli@lnl.infn.it.

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

Page 10: D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli Francesco.lelli@lnl.infn.it.

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();

Page 11: D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli Francesco.lelli@lnl.infn.it.

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

CMS

What the final user can also do

Define his custom Event Listener

Page 12: D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli Francesco.lelli@lnl.infn.it.

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

Page 13: D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli Francesco.lelli@lnl.infn.it.

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

Page 14: D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli Francesco.lelli@lnl.infn.it.

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

CMS

Spares

Page 15: D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli Francesco.lelli@lnl.infn.it.

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

Page 16: D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli Francesco.lelli@lnl.infn.it.

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

Page 17: D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli Francesco.lelli@lnl.infn.it.

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

Page 18: D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli Francesco.lelli@lnl.infn.it.

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

Page 19: D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli Francesco.lelli@lnl.infn.it.

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

Page 20: D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli Francesco.lelli@lnl.infn.it.

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

Page 21: D.S.I. Venezia L.N.L CMS Error Handling in RCMS An Overview Francesco Lelli Francesco.lelli@lnl.infn.it.

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


Recommended