cluster:Maui/326p21/server
Contents |
Maui server v.3.2.6p21
Prepare
It is required to install the Torque server (version 2.1.6 or version 2.3.6) before the maui scheduler packages.
administrator's script: prepare.sh
#!/bin/bash# prepare maui#-> start routineREPO_URL="http://dgiref.d-grid.de/svn/dgiref/PROD/cf3/repl/repos/external/"
wget -O /etc/yum.repos.d/sl-dgiref.repo ${REPO_URL}/sl-dgiref.repo
#<- end routine
Install
To install Maui, the following RPMs are needed :
- maui
- maui-server
Install rpms from dgiref binary repository.
administrator's script: install.sh
#!/bin/bash# install maui server#-> start routine# SL 5 installation:yum -y install maui-3.2.6p21-snap.1234905291.5.el5.x86_64 maui-server-3.2.6p21-snap.1234905291.5.el5.x86_64
#<- end routine
Configure
By default, batch systems like OpenPBS or Torque have their own job scheduler. Normally, this is much more simple-minded than Maui; for example, in the case of OpenPBS and Torque, the default is a simple fifo scheduler. Therefore, before Maui can be used, the batch system must be told to use it.
With OpenPBS or Torque, this is accomplished setting the scheduling state of the server to False:
qmgr -c "set server scheduling = False" qmgr -c "list server" ... server_state = Idle scheduling = False ...
The scheduling policies are defined in Maui’s configuration file : /var/spool/maui/maui.cfg
administrator's script: configure.sh
#!/bin/bash# configure maui server#-> start routineHOST=`hostname -f`
# In some cases the alias host name command HOST=`hostname -a` should be run. But the previous should work.echo `sed -i "s/localhost/$HOST/" /var/spool/maui/maui.cfg`
cat >> /var/spool/maui/maui.cfg << EOF
# The users edginfo and rgma query Maui from the glite-CE to provide data to the InfoSystemADMIN3 edginfo edguser rgma# Set the delay to 1 minute before Maui tries to run a job again,# in case it failed to run the first time.# The default value is 1 hour.DEFERTIME 00:01:00# Necessary for MPI grid jobsENABLEMULTIREQJOBS TRUEEOFqmgr -c "set server scheduling = False"
qmgr -c "list server"
#<- end routine
Proceed
Start service maui
administrator's script: proceed.sh
#!/bin/bash# proceed#-> start routine## start mauichkconfig maui on
/etc/init.d/maui start
# MAUI can be tested withshowq
diagnose -g#<- end routine