Installation of a local DBS
The DBS (Dataset Bookeeping Service) is used to keep track of datasets. It basically consists of a database (operated by MySQL or Oracle) with a Tomcat applet interface.
ProdAgent uses two DBS:s: one global and one local. The global DBS is used to keep track of finished, merged datasets, and is administered centrally at CERN, so T1/T2 sites do not need to worry about it themselves. The "local" DBS can be running either at CERN (in which case CERN has to be asked to set it up), or locally. These instructions are for those who choose the latter alternative.
Installing packages
First, install the needed packages. This is most easily done in the same way as in the CMSSW installation using a bootstrap script and APT.
We'll install the packages under /opt/prodagent, and store a database under $HOME. Feel free to change values of the variables WORKDIR and BASE_DIR as you please.
Setting up a database server
We'll use MySQL:
Replace <version> with whatever version number you've got installed. And feel free to chose other port numbers and socket files (or rely on the defaults).
Set a password for the 'root' user, and import a schema:
Setting up Tomcat
(Again, replace <version> with whatever you have.)
- First, a few environment variables:
- If you don't want to use the default port numbers (8080 etc), edit port numbers in $CATALINA_HOME/conf/server.xml
- Go to $BASE_DIR/$SCRAM_ARCH/cms/dbs-server/$DBSVERSION/Servers/JavaServer/etc and edit the file context.xml (or create one from context.xml.tobe). This file is needed to tell Tomcat how to connect to your database.
- Compile the server applet:
- Copy the DBS server java applet to Tomcat:
- (Optional) Test that the server can talk to the database
- Set up the DBS client; edit the file
$BASE_DIR/$SCRAM_ARCH/cms/dbs-client/$DBSVERSION/lib/Clients/Python/DBSAPI/dbs.config; set the URL parameter to your DBS applet:
- (Optional) Test the client