CrabServer InstallationGuide

CRAB server requires some components of the Production Agent. Instructions in this page has to be complemented with installations instruction of the Production Agent, which are described in the ProdAgent twiki installation page.

Requirements

Follow instructions in Production Agent requirements section, ignoring comments on Phedex.

CVS Checkout

Follow instructions in Production Agent CVS check out section, and then checkout the CRAB server code:

cvs co -r CRAB_SERVER_0_0_1 CRABSERVER

Dependencies

Follow the instructions on the Production Agent dependencies section.

Building the CRAB server

Follow the instructions on the Production Agent Building section. After that, change to the directory CRABSERVER and build the CRAB server. If you have followed rigorously all the instructions described in the last section, you should execute the command:

cd ../CRABSERVER
export PATH=$PATH:`pwd`/bin
export PYTHONPATH=${PYTHONPATH}:`pwd`/lib
make

Initial configuration

Create the initial configuration by executing:

crabServer-new-config

This command will create a file in the location specified by $PRODAGENT_CONFIG that will contain default values for the set of components imported from the Production Agent and the new components introduced by CRAB.

The configuration consists of named blocks of key/value pairs which can be edited using the prodAgent-edit-config tool.

One configuration parameter which you should set right away is the working area that Production Agent will use for its temporary files:

prodAgent-edit-config --component=ProdAgent --parameter=ProdAgentWorkDir --value=$PRODAGENT_WORKDIR

Database setup

Follow the instructions on the Production Agent database setup twiki page. After that, execute the following command:

for database setup with option1:

mysql -u root -p --host=SomeHost --port=SomePort ProdAgentDB < ${PRODAGENT_WORKDIR}/CRABSERVER/src/sql/CrabServerDB.sql

or for option 2:

mysql -u root -p --socket=$PRODAGENT_WORKDIR/mysqldata/mysql.sock ProdAgentDB < ${PRODAGENT_WORKDIR}/CRABSERVER/src/sql/CrabServerDB.sql

Starting CRAB server

CrabServer components are run as daemons and are controlled by the crabServerd command:

   crabServerd --start     # startup the components
   crabServerd --shutdown  # shuts down the components
   crabServerd --status    # prints the status of each component

-- CarlosKavka - 05 Feb 2007

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2007-02-09 - SpigaDaniele
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback