Managing the database servers

Once the database file has been created, the server must be configured for this file. This is done using a NAMES file, as follows.

              Names file entries for a database file
                                  
:nick.config
            :list.ge au
            :log./hepdb/cplear/logs
            :queue./hepdb/cplear/queue
            :todo./hepdb/cplear/todo
            :save./hepdb/cplear/save
            :bad./hepdb/cplear/bad
            :logl.3
            :wakeup.60
:nick.ge
            :file./hepdb/cplear/database/geo.dbs
            :servers.geolist
            :desc.Geometry database for the CPLEAR experiment
:nick.au
            :file./hepdb/cplear/database/aux.dbs
            :servers.auxlist
            :desc.Auxiliary database for the CPLEAR experiment
:nick.geolist
            :list.geo1 geo2 geo3
:nick.geo1
            :userid.cdcplear
            :node.hepdb
            :localq./hepdb/l3/todo
:nick.geo2
            :userid.cdcplear
            :node.vxcpon
            :queue.disk$db:[cdcplear.todo]
            :transport.tcpip
            :localq./hepdb/cplear/tovxcpon
:nick.geo3
            :userid.cdcplear
            :node.cernvm
            :queue./hepdb/cplear/tocernvm
            :transport.tcpip
            :localq./hepdb/cplear/tocernvm

The various tags in the preceding names file have the following meanings.

CONFIG
Configuration details for the server, as follows.
LIST
A list of two character database prefixes
LOG
The directory where the server logs are written
QUEUE
The directory where new updates are placed by HEPDB clients
TODO
The directory scanned by the HEPDB servers for updates to process. In the case of MASTER servers, the todo and queue directories are the same. In the case of SLAVE servers, these queues are different.
BAD
The directory where the server places bad updates. Bad updates are files for which the corresponding database cannot be found, or updates which cannot be successfully processed by the database server.
SAVE
The directory where the server saves updates after processing
LOGL
The log level for the server
WAKEUP
The wakeup interval in seconds for the server
prefix
The two character database prefix, e.g. aa.
FILE
The full name of the database file. For VM/CMS systems, the syntax is filename.filetype
DESC
A comment string identifying the database and/or its purpose
SERVERS
The list of remote servers for this database
server
The nickname of the servers, e.g. aa1.
USERID
Userid under which the server runs on the remote node
NODE
Node on which the server runs
QUEUE
Input queue on the remote node
TRANSPORT
Method by which updates are transmitted
LOCALQ
The local directory where updates are written pending transmission to the remote node. This may, in fact, be the same as QUEUE, e.g. when the directory is accessible via NFS or AFS.

Master and slave database servers

Creating a new server on CERNVM

Creating a new server on VXCRNA

Accessing remote database files over NFS

VMS systems running UCX

Setting up a new server on hepdb