Setup job submission server » History » Revision 32
« Previous |
Revision 32/43
(diff)
| Next »
Neil Voss, 03/02/2012 01:34 PM
Setup job submission server¶
In this case, we are setting up a job submission server that will have all of the data directories mounted and external packages installed (EMAN, Xmipp, etc.) on the compute nodes. Most institutions have a job submission server already, but the data is not accessible. Appion is not set up for this scenario except for large reconstruction jobs.
PBS and the Torque Resource Manager¶
PBS stands for a Portable Batch System. It is a job submission system meaning that users submit many jobs and the server prioritizes and executes each job as resources permit. Below we show how to install the popular open source PBS system called TORQUE.
A TORQUE cluster consists of one head node and many compute nodes. The head node runs the pbs_server daemon and the compute nodes run the pbs_mom daemon. Client commands for submitting and managing jobs can be installed on any host (including hosts not running pbs_server or pbs_mom). More documentation about Torque is available here.
Head node installation¶
Install Torque-server¶
Torque available with Fedora and CentOS 5.4 (through the EPEL). For YUM based systems type:
sudo yum -y install torque-server torque-scheduler torque-client
Initialize Torque-server, because PATH setting you will need to become root¶
Make sure the directory containing the pbs_server executable is in your PATH. For CentOS this is usually /usr/sbin.
sudo pbs_server -t create
Activate Torque-server¶
Enable the torque pbs_mom daemon on reboot:
sudo /sbin/chkconfig pbs_server on sudo /sbin/service pbs_server restart sudo /sbin/chkconfig pbs_sched on sudo /sbin/service pbs_sched start
Add nodes to Torque-server nodes file: /var/torque/server_priv/nodes¶
The format is:
node-name[:ts] [np=] [properties]
To add the localhost with two processors as a node, you would add:
localhost np=2
You should add every compute node to this file, e.g.,
node01.INSTITUTE.EDU np=2 node02.INSTITUTE.EDU np=4 node03.INSTITUTE.EDU np=2
Compute node installation¶
Install Torque-mom¶
Torque available in with Fedora and CentOS 5.4 (through the EPEL). For YUM based systems type:
sudo yum -y install torque-mom torque-client
Configure node to receive jobs from headnode:¶
see http://www.clusterresources.com/products/torque/docs/1.2basicconfig.shtml#initializenode for more details
Edit the /var/torque/mom_priv/config (CentOS 5) OR /var/lib/torque/mom_priv/config (CentOS 6) file:
$pbsserver headnode.INSTITUTE.EDU # hostname running pbs_server
For the localhost add:
$pbsserver localhost # hostname running pbs_server
Activate Torque-mom¶
Enable the torque pbs_mom daemon on reboot:
sudo /sbin/chkconfig pbs_mom on sudo /sbin/service pbs_mom start
Munge¶
http://www.clusterresources.com/torquedocs/1.3advconfig.shtml
sudo /sbin/chkconfig munge on sudo service munge start
___
Test Torque Setup¶
On the head node, see if you can run a qstat
:
qstat
You can type:
pbsnodesto check the state of the compute clusters.
On the head node, create a job and submit it:
echo "sleep 60" > test.job echo "echo hello" >> test.job qsub test.job qstat
^ Setup Remote Processing | Install SSH module for PHP >
Updated by Neil Voss over 12 years ago · 32 revisions