CMS Error Handling in RCMS An Overview Francesco





















- Slides: 21

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

Overview CMS • Error Handler Principles • An Error Handling Framemork: Purpose & Functionality • Framework Customization D. S. I. Venezia L. N. L

Error Handling CMS An Accademic Scenario: Probably Error: Clients the Connection is crashed Broken Probably we have a Network Problem DB Error: DB Connection Broken App 1 Error: DB Probably Connection Broken App 1 is wrong DB App 2 Error: DB Connection Broken App 3 Conclusion: • • D. S. I. Venezia Error is “just a point of view” We need to have a global point of view to try to be objective L. N. L

Error Handling CMS Function Manager App 1 DB Consideration: • • D. S. I. Venezia 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 L. N. L

Handler in the RCMS context CMS On-Line SUBSCRIBERS IMS Persistent SUBSCRIBERS Publish Subscribe System Display Handler Storage System Log State Send to. . Collector Handler Collector Different Formats Function Manager SOAP/XML Comands Error Monitor Non XDaq Applications D. S. I. Venezia L. N. L

CMS The Handler in the control tree Problem Solver Rule Discover Pub System Controller Handler DM Tools DB Controller Handler D. S. I. Venezia Controller Handler L. N. L

CMS Problem Solver, a quick view Problem Solver Rule Discover DM Tools DB D. S. I. Venezia Publish Subscribe System On line analysis, try to prevent a system failure Off line analysis, try to understand what happened during a system failure t - At t t + At X X X Y - Y L. N. L

Handler: how it works CMS Known Format Unknown Meaning Known Format known Meaning Handler Collector Display Send to. . Function Manager Unknown Format Unknown Meaning Non XDaq Applications D. S. I. Venezia L. N. L

Handler: how it works (2) CMS They wait for an external input and they “present” it to the brain Tomcat Set of API that allows the brain to perform action WSDL JMS Handler Manager Display Event Listener Brain Action Maker Send to. . Collector Handler DB Collector Event Listener Implemented : Log (log 4 j, log 4 Cplus) State (log 4 j, XMLRappresentation) Error (CMSError, CBE, any other XML rappresentation) Monitor D. S. I. Venezia FM Handler Every possible algorithm can be plugged: Jess based systems, java classes, Neural Networks, etc. . • • • Collector Listener Multicollector Listener Handler Listener CMSError Simulator CBE Simulator L. N. L

CMS What the final user has to do Define his custom handling algorithm my. Handler. Brain. do. Something(); D. S. I. Venezia public void do. Something(); L. N. L

CMS What the final user can also do Define his custom Event Listener D. S. I. Venezia L. N. L

CMS Technical Preview Content Release versions: Technical Preview On 31/03/2005 • Stand alone version (Java. Doc and User Guide) • Tomcat version (Java. Doc and User Guide) Messages API: • CBE messages format • Log 4 J&Log 4 Cplus messages format • CMSError schema (dummy) Event Listener Implemented: • Collector Event Listener • Multicollector Event Listener • Handler Event Listener • CBE messages Simulator • CMSError schema Simulator D. S. I. Venezia Code Available on CERN CVS L. N. L

CMS Technical Preview Content (2) Technical Preview On 31/03/2005 Remote Control GUI&UI: Code Available on CERN CVS • WS&WSDL • JSP Action Maker API for: • Function Manager Invocation • Messages display • Send messages to a collector • Send messages to an Handler Working Examples: • Jess Brain Sample (logic programming) • 2 Brain Class Sample • Chess Brain Sample (you can play chess with Xdaq!) D. S. I. Venezia L. N. L

Spares CMS D. S. I. Venezia L. N. L

Handler Comunication CMS Run Control and Monitor Handler Farm Manager Sub Farm Manager 1 Sub Farm Manager 2 Sub Farm Manager 3 Configuration Stored in a XML File D. S. I. Venezia L. N. L

Handler Comunication(2) CMS Run Control and Monitor Message: • Asynchronous Messages • JMS Object Messages • No XML Serialization • Any Possible Format • JMS Broker: Sun. Message. Queue 3. 5 Sub Farm Manager 1 D. S. I. Venezia Comunication: • Send to One Son Farm Manager Sub Farm Manager 2 Sub Farm Manager 3 L. N. L

Handler Comunication(3) CMS Run Control and Monitor Message: • Asynchronous Messages • JMS Object Messages • No XML Serialization • Any Possible Format • JMS Broker: Sun. Message. Queue 3. 5 Sub Farm Manager 1 D. S. I. Venezia Comunication: • Send to One Son • Send to Father Farm Manager Sub Farm Manager 2 Sub Farm Manager 3 L. N. L

Handler Comunication(4) CMS Run Control and Monitor Message: • Asynchronous Messages • JMS Object Messages • No XML Serialization • Any Possible Format • JMS Broker: Sun. Message. Queue 3. 5 Sub Farm Manager 1 D. S. I. Venezia Comunication: • Send to One Son • Send to Father • Send to Children Farm Manager Sub Farm Manager 2 Sub Farm Manager 3 L. N. L

Handler Comunication(5) CMS Run Control and Monitor Message: • Asynchronous Messages • JMS Object Messages • No XML Serialization • Any Possible Format • JMS Broker: Sun. Message. Queue 3. 5 Sub Farm Manager 1 D. S. I. Venezia Comunication: • Send to One Son • Send to Father • Send to Children • Send to All Farm Manager Sub Farm Manager 2 Sub Farm Manager 3 L. N. L

Handler Comunication(6) CMS Run Control and Monitor Message: • Asynchronous Messages • JMS Object Messages • No XML Serialization • Any Possible Format • JMS Broker: Sun. Message. Queue 3. 5 Sub Farm Manager 1 D. S. I. Venezia Farm Manager Sub Farm Manager 2 Comunication: • Send to One Son • Send to Father • Send to Sons • Send to All • Send to a Generic Handler Sub Farm Manager 3 L. N. L

CMS Handler Comunication(7) Run Control and Monitor Message: • Asynchronous Messages • JMS Object Messages • No XML Serialization • Any Possible Format • JMS Broker: Sun. Message. Queue 3. 5 Sub Farm Manager 1 D. S. I. Venezia Farm Manager Sub Farm Manager 2 Comunication: • Send to One Son • Send to Father • Send to Children • Send to All • Send to a Generic Handler • Send to me Sub Farm Manager 3 L. N. L