Difference: CrabServerInstallation (1 vs. 2)

Revision 22007-02-09 - SpigaDaniele

Line: 1 to 1
 
META TOPICPARENT name="CarlosKavka"

CrabServer InstallationGuide

Line: 38 to 38
 Create the initial configuration by executing:
Changed:
<
<
crab-Server-new-config
>
>
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.

Line: 58 to 58
 for database setup with option1:
Changed:
<
<
mysql -u root -p --host=SomeHost --port=SomePort < ${PRODAGENT_WORKDIR}/CRABSERVER/src/sql/CrabServerDB.sql
>
>
mysql -u root -p --host=SomeHost --port=SomePort ProdAgentDB < ${PRODAGENT_WORKDIR}/CRABSERVER/src/sql/CrabServerDB.sql
 

or for option 2:

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

Starting CRAB server

Revision 12007-02-05 - CarlosKavka

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="CarlosKavka"

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:

crab-Server-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 < ${PRODAGENT_WORKDIR}/CRABSERVER/src/sql/CrabServerDB.sql

or for option 2:

mysql -u root -p --socket=$PRODAGENT_WORKDIR/mysqldata/mysql.sock  < ${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

 
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