Presentation is loading. Please wait.

Presentation is loading. Please wait.

Configuration Database Antony Wilson MICE CM 29 15-18 February 2011 RAL 1.

Similar presentations


Presentation on theme: "Configuration Database Antony Wilson MICE CM 29 15-18 February 2011 RAL 1."— Presentation transcript:

1 Configuration Database Antony Wilson MICE CM 29 15-18 February 2011 RAL 1

2 Overview Handover Configuration – Deployment – Backups Software – Move to WSDL Issues 2

3 Handover David has provided a document as a mice note – http://mice.iit.edu/micenotes/restricted/pdf/MICE03 27/MICE0327.pdf http://mice.iit.edu/micenotes/restricted/pdf/MICE03 27/MICE0327.pdf Beam Line Settings – needs extending, discussed later Calibrations Electronic Channel Mapping and Cabling Alarm Handler – newer version implemented with WSDL interface Geometry – newer version implemented with WSDL interface 3

4 CONFIGURATION 4

5 PPD micewww Tomcat CDB read only API Tomcat CDB read only API FIREWALL MICENET configDB postgres Configuration database Tomcat CDB API Tomcat CDB API online box CDB client API read only db user read/write db user new mouse box postgres Configuration database Tomcat CDB API Tomcat CDB API continuous update This is a manual failover controlled by a configuration file read/write db user Deployment All client access is via Tomcat Off site access is read only via micewww Access from MICENET is read write 5

6 Backups 6 Config DB – on PPD OS on mirrored array Database on mirrored array Transaction logs on mirrored array Hourly off site backup Config DB – on MICENET OS on mirrored array Database on mirrored array Transaction logs on mirrored array continuous update Coming soon SALVE MASTER

7 Recovery Procedure Recovery procedure tested on one machine http://micewww.pp.rl.ac.uk:8080/projects/co nfigdb/wiki/Backups http://micewww.pp.rl.ac.uk:8080/projects/co nfigdb/wiki/Backups Postgres 9 provides native support for master slave mechanism. N.B. slave is read only ISSUE – The redmine database is on heplnm069 7

8 SOFTWARE 8

9 Updating Config DB Code Coding standards introduced for G4Mice group (C++) Analogous standards being used for the Config DB (Java) As code is updated – Fully documented with javadoc – Logging added using log4j – Unit tests with junit JAX-WS used to generate WSDL interface 9

10 Move to Web Service Definition Language (WSDL) A WSDL interface describes how to communicate with the Config DB The WSDL can be used to generate client APIs All new/updated component will provide a WSDL interface – AlarmHandler – Geometry – Controls API documentation is provided via javadoc – http://hepunx.rl.ac.uk/egee/mice/doc/ http://hepunx.rl.ac.uk/egee/mice/doc/ 10

11 WSDL Clients Java clients – Generated using JAX-WS – Used for system testing Python clients – Use suds from suds.client import Client url= 'http://micewww.pp.rl.ac.uk:8080/cdb/geometry?wsdl' cdbGeometyClient = Client(url) # client to talk to Config DB print cdbGeometyClient # list available methods on Config DB print cdbGeometyClient.service.getStatus() # call Config DB method 11

12 WSDL Clients C++ clients – Generate using gSoap – James has generated a C++ client for the AlarmHandler – Ivan has generated a C++ client for the Geometry – Controls is a work in progress 12

13 Issues Controls interface requires access to HV cabling data Beam line settings – extra fields required 13

14 Access to HV Cabling Data Current Electronic Channel Mapping and Cabling API takes a file as input parameter Config DB has no knowledge of the contents of the file Config DB needs access to HV cabling data Is HV cabling data embedded in these files? Need to agree on common format for all HV cabling data and provide new Config DB API What to do with the rest of the cabling data? 14

15 Beam Line Settings We already have a Boolean status flag Need to add “run type” flag? – Use bit map Cosmic test Target not dipped Normal mice run Additional data quality information stored in the metadata database? 15

16 Beam Line Settings To Do Add “run type” flag Change Depth from mm to microns These are in the ops room spreadsheet – Triggers per spills – Particle triggers – Proton absorber thickness (mm) – Momentum at target Run 1 1 Magnets Id[primary key] MagnetName SetCurrent RunNumber [foreign key] 1 1 1 1 1..* RunNumber[primary key] Start End Notes MomentumD1 MomentumD2 Species PulseStart PulseEnd Step Status DaqId [foreign key] TargetId [foreign key] ISISId [foreign key] ISIS Id[primary key] RepRate NominalBeamCurrent NominalBeamLoss TargetFrequency Target Id[primary key] DriveVoltage Delay Depth DAQ Id[primary key] Trigger GateWidth Version 1 16

17 Summary Recovery mechanism from transaction logs tested and documented Alarm Handler WSDL interface in use Geometry WSDL interface prototyped Blocking issue on Controls WSDL interface – Require access to HV cabling data Beam line settings WSDL conversion not started yet – Require agreement for new field(s) 17


Download ppt "Configuration Database Antony Wilson MICE CM 29 15-18 February 2011 RAL 1."

Similar presentations


Ads by Google