Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Conditions MQ

Conditions MQ is a client/server CCDB implementation for O2. Currently the implementation supports two backends, an OCDB and a Riak one.

OCDB backend

To run the MQ server-client example with the MQ server replying with CDB objects to the client requests, the steps below should be followed:

  • Create a local O2CDB instance using the following macro in /bin/config/:
root -l fill_local_ocdb.C

This will create "DET/Calib/Histo" calibration objects for a hundred runs in the subdirectory O2CDB/ under the current directory.

  • In one shell run the server example:
conditions-server --id parmq-server --mq-config <installation directory>/bin/config/conditions-server.json --first-input-name local://<installation directory>/bin/config/O2CDB --first-input-type OCDB
  • In a separate shell run the client example:
conditions-client --id parmq-client --mq-config <installation directory>/bin/config/conditions-client.json --data-source OCDB --object-path <installation directory>/bin/config/O2CDB

Riak backend

To run the MQ server-client example with the MQ server executing PUT or GET commands to a Riak cluster through an MQ broker, the steps below should be followed:

  • In one shell run the server example:
conditions-server --id parmq-server --mq-config <installation directory>/bin/config/conditions-server.json
  • In a separate shell run the client example:
conditions-client --id parmq-client --mq-config <installation directory>/bin/config/conditions-client.json --data-source Riak

List of optional client arguments:

  • operation-type (default = "GET"): "PUT", "GET". Sets the operation type.
  • object-path (default = "./OCDB/"). Sets the directory that holds the condition objects.