|
|||||||||||||||||
1.1 TORQUE Installation1.1.1 TORQUE ArchitectureA 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). The head node also runs a scheduler daemon. The scheduler interacts with pbs_server to make local policy decisions for resource usage and allocate nodes to jobs. A simple FIFO scheduler, and code to construct more advanced schedulers, is provided in the TORQUE source distribution. Most TORQUE users choose to use a packaged, advanced scheduler such as Maui or Moab. Users submit jobs to pbs_server using the qsub command. When pbs_server receives a new job, it informs the scheduler. When the scheduler finds nodes for the job, it sends instructions to run the job with the node list to pbs_server. Then, pbs_server sends the new job to the first node in the node list and instructs it to launch the job. This node is designated the execution host and is called Mother Superior. Other nodes in a job are called sister moms. 1.1.2 Installing TORQUEBuild the distribution on the machine that will act as the TORQUE server - the machine which monitors and controls all compute nodes by running the pbs_server daemon.
> tar -xzvf torque-2.3.4.tar.gz > cd torque-2.3.4/
> ./configure
> make > sudo make install
By default, make install creates a directory at /var/spool/torque. This directory is referred to as $TORQUEHOME. $TORQUEHOME has several sub-directories, including server_priv/, server_logs/, mom_priv/, mom_logs/, and other directories used in the configuration and running of TORQUE. TORQUE 2.0p2 and later includes a torque.spec file for building your own RPMs. You can also use the checkinstall program to create your own RPM, tgz, or deb package. 1.1.3 Compute NodesUse the Cluster Resources tpackage system to create self-extracting tarballs which can be distributed and installed on compute nodes. The tpackages are customizable. See the INSTALL file for additional options and features. To create tpackages
> make packages Building ./torque-package-clients-linux-i686.sh ... Building ./torque-package-mom-linux-i686.sh ... Building ./torque-package-server-linux-i686.sh ... Building ./torque-package-gui-linux-i686.sh ... Building ./torque-package-devel-linux-i686.sh ... Done. The package files are self-extracting packages that can be copied and executed on your production machines. Use --help for options. > cp torque-package-mom-linux-i686.sh /shared/storage/ > cp torque-package-clients-linux-i686.sh /shared/storage/ Cluster Resources recommends that you use a remote shell, such as SSH, to install tpackages on remote systems. Set up shared SSH keys if you do not want to supply a password for each host.
The following is an example on how to copy and install mom-linux in a distributed fashion: > for i in node01 node02 node03 node04 ; do scp torque-package-mom-linux-i686.sh ${i}:/tmp/. ; done
> for i in node01 node02 node03 node04 ; do scp torque-package-clients-linux-i686.sh ${i}:/tmp/. ; done
> for i in node01 node02 node03 node04 ; do ssh ${i} /tmp/torque-package-mom-linux-i686.sh --install ; done
> for i in node01 node02 node03 node04 ; do ssh ${i} /tmp/torque-package-clients-linux-i686.sh --install ; done
> prcp torque-package-linux-i686.sh noderange:/destinationdirectory/ > psh noderange /tmp/torque-package-linux-i686.sh --install Alternatively, users with RPM-based Linux distributions can build RPMs from the source tarball in two ways.
Although optional, it is possible to use the TORQUE server as a compute node and install a pbs_mom with the pbs_server daemon. 1.1.4 Enabling TORQUE as a service (optional)The method for enabling TORQUE as a service is dependent on the Linux variant you are using. Startup scripts are provided in the contrib/init.d/ directory of the source package.
> cp contrib/init.d/pbs_mom /etc/init.d/pbs_mom > chkconfig --add pbs_mom
> cp contrib/init.d/suse.pbs_mom /etc/init.d/pbs_mom > insserv -d pbs_mom > cp contrib/init.d/debian.pbs_mom /etc/init.d/pbs_mom > update-rc.d pbs_mom defaults See Also
|
|||||||||||||||||
| © 2001-2010 Adaptive Computing Enterprises, Inc. | |||||||||||||||||