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. 2017北京国庆刷题Day2 morning

    期望得分:100+100+40=240 实际得分:100+40+0=140 T1 一道图论神题(god) Time Limit:1000ms   Memory Limit:128MB 题目描述 LYK ...

  2. ZOJ 3781 Paint the Grid Reloaded 连通块

    LINK:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3781 题意:n*m只由OX组成的矩阵,可以选择某一连通块变成另一 ...

  3. 百度搜索URL中的参数都是什么

    最近,点石排名更新了一个新功能——站内搜索.其实理解起来也很简单,就是通过URL限定搜索结果为某个网站,从而参与点击(例如:https://www.baidu.com/s?wd=SEO&si= ...

  4. 在asp.net中使用加密数据库联接字符串

    在我们发布网站时,加密web.config,这样可以有效保证数据库用户和密码安全,其步骤如下: 1.添加密钥 执行:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50 ...

  5. 【CodeForces】698 C. LRU

    [题目]C. LRU [题意]给定空间为k的背包和n个物品,每次每个物品有pi的概率加入(Σpi=1),加入时若发现背包中已有该物品则不改变,若背包满k个物品后再加入新物品则弹出最早加入的物品,求加入 ...

  6. 【转载】iPhone系统概览

    iPhone OS OverviewiPhone系统概览iPhone OS comprises the operating system and technologies that you use t ...

  7. HDU 1214 圆桌会议 (找规律)

    题目链接 Problem Description HDU ACM集训队的队员在暑假集训时经常要讨论自己在做题中遇到的问题.每当面临自己解决不了的问题时,他们就会围坐在一张圆形的桌子旁进行交流,经过大家 ...

  8. Spring Data JPA笔记

    1. Spring Data JPA是什么 Spring Data JPA是Spring Data大家族中的一员,它对对持久层做了简化,用户只需要声明方法的接口,不需要实现该接口,Spring Dat ...

  9. 我的Apache又挂了之apache错误:server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName'

    表示物理机装Apache然后有时候关机会忘了关闭Apache然后长此以往会导致各种Apache起不来的缘故,上一次已经出现过一次.今天又出现了 再次记录一下解决的方法. 1.查看错误日志 /var/l ...

  10. MySQL源码分析(一)

    近段时间简单看了下Mysql源码相关内容,主要从一个select查询出发,查看了一下整个代码结构.分析总结如下: https://mubu.com/doc/explore/13965