Operation system: CentOS 7.3

Torque PBS: torque-6.1.1.1.tar

hostname: rfmlab

user name: cfd01

1. Installation

$ tar -zxvf torque-6.1.1.1.tar

$ yum install -y libxml2-devel openssl-devel gcc gcc-c++ boost-devel libtool

$ cd torque-6.1.1.1

$ ./configure --prefix=/usr/local/torque --with-scp --with-default-server=rfmlab

$ make

$ make install

$ make packages

## After above command, there may be a warning about "libtool --finish", run it

$ libtool --finish /...

2. Configure pbs service: pbs_server, pbs_sched, pbs_mom, trqauthd

$ cp contrib/init.d/{pbs_{server,sched,mom},trqauthd} /etc/init.d/

$ for i in pbs_server pbs_sched pbs_mom trqauthd; do chkconfig --add $i; chkconfig $i on; done

## Set environment variable

$ TORQUE=/usr/local/torque

$ echo "TORQUE=$TORQUE" >> /etc/profile

$ echo "export PATH=\$PATH:$TORQUE/bin:$TORQUE/sbin" >> /etc/profile

$ source /etc/profile

## Set the manager user for TORQUE, not root user

$ ./torque.setup cfd01

## Start the services of pbs_server, pbs_sched, pbs_mom and trqauthd

$ qterm

$ for i in pbs_server pbs_sched pbs_mom trqauthd; do service $i start; done

3. Assign computational node

## Add computing node "rfmlab", set the number of CPU

## Check the number of CPU by using the command “lscpu" or "nproc"

$ vi /var/spool/torque/server_priv/nodes

rfmlab np=40

$ vi /var/spool/torque/mom_priv/config

pbsserver rfmlab

logevent 255

4. Check the information of pbs

$ ps -e | grep pbs

$ for i in pbs_server pbs_sched pbs_mom trqauthd; do service $i restart; done

## Check the node information, if "state= free", then everything is fine

$ qnodes  ## or use "pbsnodes -a"

4. Create default information of the queue

$ qmgr -c 'create queue rfmlab'

$ qmgr -c 'set queue rfmlab queue_type= execution'

$ qmgr -c 'set queue rfmlab started= true'

$ qmgr -c 'set queue rfmlab enabled= true'

$ qmgr -c 'set queue rfmlab resources_default.walltime= 240:00:00'

$ qmgr -c 'set queue rfmlab resources_default.nodes= 1'

$ qmgr -c 'set server default_queue= rfmlab'

5. Test

## Return back to the "cfd01" user

$ su cfd01

$ qstat

NOTES:

(1) ## start, stop and status of the pbs

$ for i in pbs_server pbs_sched pbs_mom trqauthd; do service $i start; done

$ for i in pbs_server pbs_sched pbs_mom trqauthd; do service $i stop; done

$ for i in pbs_server pbs_sched pbs_mom trqauthd; do service $i status; done

(2) Queue configuration

max_queuable: Specifies the maximum number of jobs allowed in the queue at any given time (includes idle, running, and blocked jobs).

$ qmgr -c "set queue batch max_queuable=20"

max_running: Specifies the maximum number of jobs in the queue allowed to run at any given time.

$ qmgr -c "set queue batch max_running=20"

max_user_queuable: Specifies the maximum number of jobs, per user, allowed in the queue at any given time (includes idle, running, and blocked jobs). Version 2.1.3 and greater.

$ qmgr -c "set queue batch max_user_queuable=20"

max_user_run: Specifies the maximum number of jobs, per user, in the queue allowed to run at any given time.

$ qmgr -c "set queue batch max_user_run=20"

priority: Specifies the priority value associated with the queue. Default value is "0".

$ priority: qmgr -c "set queue batch priority=20"

Website: http://docs.adaptivecomputing.com/torque/archive/3-0-2/4.1queueconfig.php

Centos7 安装单节点Torque PBS的更多相关文章

  1. Cloudera Manager安装之利用parcels方式安装单节点集群(包含最新稳定版本或指定版本的安装)(添加服务)(CentOS6.5)(四)

    不多说,直接上干货! 福利 => 每天都推送 欢迎大家,关注微信扫码并加入我的4个微信公众号:   大数据躺过的坑      Java从入门到架构师      人工智能躺过的坑          ...

  2. (一)Hadoop1.2.1安装——单节点方式和单机伪分布方式

    Hadoop1.2.1安装——单节点方式和单机伪分布方式 一.   需求部分 在Linux上安装Hadoop之前,需要先安装两个程序: 1)JDK 1.6(或更高版本).Hadoop是用Java编写的 ...

  3. centos7用docker安装单节点redis4.0.11

    [root@localhost conf]# docker search redisINDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATEDdocker.io d ...

  4. 全网最详细Apache Kylin1.5安装(单节点)和测试案例

    转:http://blog.itpub.net/30089851/viewspace-2121221/ 微视频链接: Apache Kylin初识      1.版本(当前实验版本组合,版本一定要兼容 ...

  5. CentOS7 部署单节点 FastDFS

    准备 环境 系统:CentOS7.5 软件即依赖 libfatscommon FastDFS分离出的一些公用函数包 FastDFS fastdfs-nginx-module FastDFS和nginx ...

  6. redis安装(单节点)

    # tar -zxvf redis.tar.gz # cd redis 安装(使用 PREFIX 指定安装目录): # make PREFIX=/usr/local/redis install 安装完 ...

  7. @ZooKeeper注册中心安装(单节点)

    1.下载zookeeper 下载地址:https://archive.apache.org/dist/zookeeper/,这里我们使用3.4.6版本. [winner-0715@localhost ...

  8. Mac OS用docker Desktop安装单节点kubernetes

    方案: 安装方式:阿里云minikube,k8s官方minikube,kubeadm, docker Desktop中自带第k8s 安装环境:在linux虚拟机中安装k8s,在macos中安装k8s, ...

  9. Centos7安装Redis-单节点

    1.安装 gcc 编译环境 由于 Redis 使用 C 语言开发,所以官网下载的源码需要进行编译,编译依赖 gcc 环境,如果没有 gcc 环境,则需要安装. ​[root@CentOS ~]# yu ...

随机推荐

  1. ③ 设计模式的艺术-03.工厂方法(Factory Method)模式

    public interface Car { void run(); } public class Audi implements Car { @Override public void run() ...

  2. JavaScript:详解 Base64 编码和解码

    Base64是最常用的编码之一,比如开发中用于传递参数.现代浏览器中的<img />标签直接通过Base64字符串来渲染图片以及用于邮件中等等.Base64编码在RFC2045中定义,它被 ...

  3. LintCode 156: Merge Interval

    LintCode 156: Merge Interval 题目描述 给出若干闭合区间,合并所有重叠的部分. 样例 给出的区间列表 => 合并后的区间列表: [ [ [1, 3], [1, 6], ...

  4. 【POJ】3070 Fibonacci

    [算法]矩阵快速幂 [题解] 根据f[n]=f[n-1]+f[n-2],可以构造递推矩阵: $$\begin{vmatrix}1 & 1\\ 1 & 0\end{vmatrix} \t ...

  5. CodeForces 990C

    Description A bracket sequence is a string containing only characters "(" and ")" ...

  6. 【洛谷 P2120】 [ZJOI2007]仓库建设(斜率优化)

    题目链接 斜率优化+1,好吧不水分了. 玩具装箱那题以后再做,当作复习吧. \(f[i]=f[j]-(sum[i]-sum[j])*dis[i]+p[i]\) \(f[j]=-dis[i]*sum[j ...

  7. echarts初探:了解模块化

    什么是echarts?这是官网:http://echarts.baidu.com/ 简单的说就是百度提供的一些画图表的库,用它你可以简便的画出一些你想要的图表效果. 虽然蛮好用的,但对于不知道模块化的 ...

  8. idea 控制台乱码

    第一步:修改intellij idea配置文件: 找到intellij idea安装目录,bin文件夹下面idea64.exe.vmoptions和idea.exe.vmoptions这两个文件,分别 ...

  9. 转:修改shape的文字

    Sub 修改shape的文字()'' 修改shape的文字 宏' '    ActiveSheet.Shapes.Range(Array("Flowchart: Connector 193& ...

  10. 42.Trapping Rain Water---dp,stack,两指针

    题目链接:https://leetcode.com/problems/trapping-rain-water/description/ 题目大意:与84题做比较,在直方图中计算其蓄水能力.例子如下: ...