Friday, January 14, 2011

Automatic installation of Athenaum Workers

First attempt to automatise the installation and updates of Athenaeum Workers.

All Worker code is now stored inside the Manager (in SVN). It can be installed using following commands:

# Preconditions:
# - Atlas offline environment

# set up the Manager
# PRO Manager in CERN:
# export MANAGER=http://j2eeps.cern.ch/atlas-project-Athenaeum
# DEV Manager in CERN:
# export MANAGER=http://j2eeps.cern.ch/test-Athenaeum

# ask for special configuration, if needed
# (otherwise you will get a configuration corresponding to the used Manager)
# currently, the only available special configuration is the default neutral configuration
export CONF=default

# download bootstrap file
wget -O boot.sh "${MANAGER}/Give.jsp?file=boot.sh"
chmod +x boot.sh

# 1.case: installation of new Worker
# get virgin configuration
./boot.sh init
# edit ???/config.sh
# and source it
source ???/config.sh
# get the Worker
./boot.sh

# 2.case: update of the existing Worker (can be done remotely from Athenaeum clients)
# it doesn't change the configuration
# get the Worker updates
./boot.sh

# 3.case: update of the existing Worker with configuration reset
# get the configuration and Worker updates
./boot.sh reset

# edit and submit ${ELSSICODE}/${TPSTAG}/scripts/cron.sh if you want it to manage you server


If there are any updates in the Manager, the Worker can be automatically updated using update option of the server management script.

No comments:

Post a Comment