Configuring the Environment Ubuntu 12.04torque 2.4.6
Configuration steps and problem resolution (run as Root) 1. Installing the torque installation Help documentation for the torque official website is not an installation procedure for Ubuntu, so it is very laborious to install, so it uses Apt-get to install
Apt-get Install torque-server torque-client torque-mom torque-pam
Torque-server is responsible for receiving task requests
Torque-client is responsible for submitting tasks to the server on each node that commits the task
Torque-mom compute nodes (named as their grade)
Torque-pam Effect Unknown
2. After setting torque install torque, it will be turned on automatically, so all services will be turned off before setting, otherwise the setting will be invalid
/etc/init.d/torque-mom Stop/etc/init.d/torque-scheduler stop/etc/init.d/torque-server stoppbs_server-t Create
Killall Pbs_server
Next configure the torque to modify the name of the computer before you configure it
Vim/etc/hosts Change the 127.0.1.1 hostname to the static address of the server, if you do not modify the subsequent qmgr does not run correctly
Execute the following command:
echo $HOSTNAME >/etc/torque/server_name
echo $HOSTNAME >/var/spool/torque/server_priv/acl_svr/acl_hosts
echo [email protected]$HOSTNAME >/var/spool/torque/server_priv/acl_svr/operators
echo [email protected]$HOSTNAME >/var/spool/torque/server_priv/acl_svr/managers
echo "$HOSTNAME np=8" >/var/spool/torque/server_priv/nodes (NP represents the number of processors for compute nodes)
echo $HOSTNAME >/var/spool/torque/mom_priv/config
The hostname here cannot be replaced with static IP, otherwise the PBS service cannot be opened.
3. Turn on the PBS service
/etc/init.d/torque-server Start/etc/init.d/torque-scheduler start/etc/init.d/torque-mom Start
When the service is turned on, you may encounter some directory permissions check error problem, because after running as root, some directory permissions open too much, chmod o-w the corresponding file directory can be
4. Set the scheduling information (the specific meaning is unclear)
Qmgr-c ' Set Server scheduling = True ' qmgr-c ' Set server keep_completed = ' qmgr-c ' Set server Mom_job_sync = True '
Qmgr-c ' Create queue batch ' creates a processing queue named batch and can modify Qmgr-c ' Set queue batch queue_type = Execution ' qmgr-c ' Set queue batch started = True ' qmgr-c ' Set queue batch enabled = True ' qmgr-c ' Set queue batch resources_default.walltime = 2:00:00 ' should is the default run time for the job Qmgr-c ' Set queue batch resources_default.nodes = 1 ' compute node only one qmgr-c ' Set server Default_queue = Batch
The following settings allow the server to submit tasks to itself
Qmgr-c ' Set Server submit_hosts = $HOSTNAME ' qmgr-c ' Set server Allow_node_submit = True '
5. Configure the test (non-root user)
Submit a Task
Qsub-i
Query task and Status Qstat-a
Reference https://jabriffa.wordpress.com/2015/02/11/installing-torquepbs-job-scheduler-on-ubuntu-14-04-lts/
http://www.douban.com/note/239136237/
Configure standalone PBS (torque) under Ubuntu 12.04