Presentazione di PowerPoint - LNL-INFN
Download
Report
Transcript Presentazione di PowerPoint - LNL-INFN
CMS
RCMS – Plan of work
Michele Gulmini
DAQ Weekly
7th May 2002
Michele Gulmini, Cern, DAQ Weekly 07/05/2002
1
CMS
Run Session
–
•
the hardware and software needed to
operate a physics or test run with the
entire or a partition of the CMS apparatus.
–
Multiple Run Sessions may coexist and
run concurrently
–
Every activated run session has the own
Session Manager
Services
–
–
–
–
–
SECURITY SERVICE (SS)
• login and authentication procedures
RESOURCE SERVICE (RS)
• It manages the elements of the DAQ
system:
– configuration of the
components
– Session and Partition mngrs
Information and Monitor System (IMS)
• It collects all the information
originated from the sub-systems,
and provides them to the requesting
clients
JOB CONTROL
• It starts, monitor and kill the
software infrastructure of the RCMS
PROBLEM SOLVER
• It uses the information provides by
IMS to catch severe malfunctions of
the apparatus and try to fix them
Michele Gulmini, Cern, DAQ Weekly 07/05/2002
UI
UI
UI
Session
Manager
RCMS
Services Connection
•
RCMS Summary
Security
Service
UserDB
Resource
Service
ConfDB
Info&Mon
Service
Job Ctrl
LogDB
Run
Bkkpng
Problem
Solver
Sub-System
Controller
All the Services are accessible via well defined
APIs. So they can work independently to serve a
specific application (e.g. configure a XDAQ system)
or fully integrated in the RCMS to provide a full
Run Control System.
2
CMS
UI
UI
GUI
RCMS
Servlet Container
Apache TomCat
Internet
XML http
UI
UI
GUI
Session
Manager
FSM
XML over http protocols
RCMS prototype status
Security
Service
UserDB
Resource
Service
ConfDB
Info&Mon
Service
Job Ctrl
XML:DB +
mySQL
LogDB
Run
Bkkpng
Problem
Solver
Function
Manager
FSM
XDAQ Adapter
Sub-System
XDAQ Resources
Michele Gulmini, Cern, DAQ Weekly 07/05/2002
3
CMS
RCMS prototype status
•
Resource Service with Security Service. Interactive GUI to handle
run sessions, partitions, etc. Customizable according to the
application needs (e.g. Test beams, simple test environment, etc.)
•
Session Manager
•
Function Manager
•
XDaq adapter (XDAQ december version)
•
Finite State Machine
•
First integration and tests with xdaq nodes
•
GUI: work in progress
•
IMS: under development
Michele Gulmini, Cern, DAQ Weekly 07/05/2002
4
Resource Service Implementation
Manual
Resources
Handler
Session,
Partition
Setup
CONFIG DB
CMS
Available
Resources
Partition
Data Base
Software
Data Base
Resource
Subscribing
Handler
Still alive
heartbeat
New Node
subscribe request
ping all the
Registered nodes
Session,
Partition
management
Sessions,
Partitions
definition
http
API to add, modify
delete, retrieve a resource
description.
Resources can be:
sessions, partitions, hrdw
description, sftw, FSM
description, FSM code, etc.
Michele Gulmini, Cern, DAQ Weekly 07/05/2002
Resource Service Servlet
XML
XML Parser
(Castor)
Java Objs
Java Servlet
XML
XML:DB
REL DB
5
CMS
Session and Function Manager Implementation
Resource Service
SM servlet
F
S
XML definition
Java
M
Impl.
F
F
SF
S
MS
M
M
download def. +
impl.
FM servlet
F
S
XML definition
Java
M
Impl.
XML definition
XMLJava
definition
XMLJava
definition
Java
Impl.
Impl.
Impl.
FM servlet
F
S
XML definition
Java
M
Impl.
SOAP
XDAQ
Resources
Function Managers and
Session Manager have a
built in FSM to track the
status of the related
controlled components.
The FSM is composed of
a XML definition and a
Java class
implementation
reppresenting the actions
to be performed.
FSM definition and
implementation are
managed by the
Resource Service.
Resources
XML/HTTP
Michele Gulmini, Cern, DAQ Weekly 07/05/2002
6
CMS
RCMS Light to configure small systems
GUI
PC1
PC2
SS
RS
FM
Tomcat
XDAQ resources
•
•
This light version of RCMS allows to handle (store, retrieve, download)
configurations of small systems and control them
The version can include:
– Simple command and resource configuration GUI
– A single Tomcat managing SS, RS and FM and the download mechanism to
the XDAQ resources
Michele Gulmini, Cern, DAQ Weekly 07/05/2002
7
CMS
RCMS
Servlet Container
Apache TomCat
GUI
XML over http protocols
RCMS prototype status
Security
Service
UserDB
Resource
Service
ConfDB
Info&Mon
Service
Job Ctrl
XML:DB +
mySQL
LogDB
Run
Bkkpng
Problem
Solver
Function
Manager
FSM
XDAQ Adapter
Sub-System
XDAQ Resources
Michele Gulmini, Cern, DAQ Weekly 07/05/2002
8
CMS
RCMS
Servlet Container
Apache TomCat
GUI
Session
Manager
FSM
XML over http protocols
RCMS prototype status
Security
Service
UserDB
Resource
Service
ConfDB
Info&Mon
Service
Job Ctrl
XML:DB +
mySQL
LogDB
Run
Bkkpng
Problem
Solver
Function
Manager
FSM
XDAQ Adapter
Sub-System
XDAQ Resources
Michele Gulmini, Cern, DAQ Weekly 07/05/2002
9
CMS
RCMS
Servlet Container
Apache TomCat
GUI
Session
Manager
FSM
XML over http protocols
RCMS prototype status
Security
Service
UserDB
Resource
Service
ConfDB
Info&Mon
Service
Job Ctrl
XML:DB +
mySQL
LogDB
Run
Bkkpng
Problem
Solver
Function
Manager
FSM
XDAQ Adapter
Sub-System
XDAQ Resources
Michele Gulmini, Cern, DAQ Weekly 07/05/2002
10
CMS
Information and Monitor Service
• IMS requirements:
• collecting all the information coming from any DAQ resource or
RCMS internal component
• storing the information in a DBMS
• providing the information to the clients “on request”
• providing the information ‘asynchronously’ to the clients who
subscribed to receive it (publish/subscribe protocol)
The information can be of several types:
- log and error messages (information, warning, error, failure)
- resource status change
- monitor information (statistics, histograms,...)
- others...
Michele Gulmini, Cern, DAQ Weekly 07/05/2002
11
CMS
Information and Monitor Service - Example
System
State Display
SM
Query/response
FM
FM
subscribe
publish
status change
msg
IMS
XDAQ
Appl.
Error, monitor
msgs
Michele Gulmini, Cern, DAQ Weekly 07/05/2002
12
IMS logical view
Error
Statistics
Error
Statistics
Error
Statistics
Message
Logger (DB)
Message
Filtering and
Dispatcher
Client
Subscriber
CMS
Alarm Display
Michele Gulmini, Cern, DAQ Weekly 07/05/2002
State logger
System
State Display
Log Messages
Resource
Status Change
Monitor - History
DB
Monitor Info
More
More…
…
Info
Monitor
Systems
13
CMS
IMS prototype (I)
Soap
Messages
IMS Tomcat servlet container
Filter
NOTIFY
SUBSCRIBE
Soap
XML message
Engine
XPath
based
JAXM
QUERY
subscriber 1
subscriber n
XMLDB
• Web Services technology
– Sun JWSDP (Java Web Services Development Package)
• Tomcat servlet container
• JAXM (SOAP XML Messaging)
• JAXP (XML Processing – SAX, DOM, XSLT + Xpath)
• JAX-RPC (Java API for XML-based RPC)
• JAXR (XML Registries)
• XMLDB: Exist, mySQL
Michele Gulmini, Cern, DAQ Weekly 07/05/2002
14
CMS
IMS Prototype (II)
• IMS: “standalone” or integrated in the RCMS
• IMS core: new services can be plugged in
status
IMS
core
?
Log
XML Registries:
Tomcat 1
Service 1
WSDL
Tomcat 2
UDDI
Service 1
client
Service n
The single servlet container describes its
services by means of the Web Service
Description Language (WSDL) and then
publishes them to the Universal Description
Discovery and Integration (UDDI) registries
Michele Gulmini, Cern, DAQ Weekly 07/05/2002
Clients looking for services,
query first the UDDI server to
discover the location of the
service and then access to it
15
CMS
IMS plans
•
IMS protocol definition (XML schema)
– First proposal delivered end of March
– This proposal is the reference of the first prototype
•
First prototype: (June CMS Week)
– Log service
– Subscribe/Publish mechanism
– XPath based filtering mechanism
– RCMS integration
•
Full prototype: (September)
– XML Registries
– Documentation
– Software packaging and Distribution (release 0.1 delivering)
Michele Gulmini, Cern, DAQ Weekly 07/05/2002
16
CMS
RCMS Plans
•
June CMS Week:
– RCMS prototype with RS and “IMS first prototype” integrated
– Functionality tests with small (xdaq based) DAQs (e.g.: muon DAQ) (LegnaroCern)
– First performances tests on a XDAQ enabled Linux cluster (Legnaro)
– RCMS Light: packaging, documentation and distribution (release 0.1) to be
discussed (Legnaro)
•
September CMS Week:
– IMS full prototype (Cern)
– Moving Resource Service, Session and Function Managers communication
protocol to SOAP (Legnaro)
– RCMS services compliant to web services technologies
– Packaging, software distribution, documentation (RCMS release 0.1 delivering)
•
Other issues:
– XML:DB product investigations:
• Apache Xindice
• Oracle 9i vers. 2 (May) (Legnaro)
– GUI product investigations:
• Flash Mx (embedded Flash code into Java) (Legnaro)
– XML Registries investigation (Cern-Legnaro)
Michele Gulmini, Cern, DAQ Weekly 07/05/2002
17
CMS
RCMS – a step forward
Info&Mon
Service
Resource
Service
Security
Service
UDDI
WSDL
1
2
UI
UI
GUI
SOAP
Servlet Containers = web services
Problem
Solver
Job Ctrl
Sub-System
Ctrl
DataMover
Service
DCS GTW
Service
Conditions
DB Srvc
Event Ctlg
Srvc
Session
Session
Manager
Manager
WebCam
Service
Sub-System
XDAQ Resources
Michele Gulmini, Cern, DAQ Weekly 07/05/2002
18