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. asp.net实现access数据库分页

    最近在编程人生上看到篇文章很有感触,觉得人生还是要多奋斗.今天给大家贡献点干货. <divclass="page"id="ctrlRecordPage"& ...

  2. 数据库-Core Data

    技术博客http://www.cnblogs.com/ChenYilong/ 新浪微博http://weibo.com/luohanchenyilong  数据库-Core Data  技术博客htt ...

  3. Java 9 中的 9 个新特性

    Java 8 发布三年多之后,java9已经发布了 . 你可能已经听说过 Java 9 的模块系统,但是这个新版本还有许多其它的更新. 这里有九个令人兴奋的新功能将与 Java 9 一起发布.   1 ...

  4. form表单token错误

    添加一段代码试试: <input type="hidden" name="_token" value="{{ csrf_token() }}&q ...

  5. NYOJ 228 士兵杀敌(五) (模拟)

    {题目链接](http://acm.nyist.net/JudgeOnline/problem.php?pid=228) 描述 南将军麾下有百万精兵,现已知共有M个士兵,编号为0~M,每次有任务的时候 ...

  6. struts2 constant详解

    <!-- 指定Web应用的默认编码集,相当于调用 HttpServletRequest的setCharacterEncoding方法 -->        <constant nam ...

  7. OGG相关操作

    参数文件详解: 1)truncate ogg 进程: Manager进程:manager进程是配置在源端和目标端 Extract(抽取)进程:部署在源端,用于捕获数据表或者日志中的数据文件: Pump ...

  8. ogg:Extract 进程遇长事务执行 Forcestop 引发的惨案

    http://www.linuxidc.com/Linux/2015-04/115777.htm SQL> select t.addr,t.START_DATE from v$transacti ...

  9. 超级ping(多线程版)

    发现学校公共wifi的ip段是10.1.0-255.0-255段的,还是之前的思路批量ping一波. 其实可以使用nmap的.但是脚本写都写了.是吧.你懂的. #!/usr/bin/env pytho ...

  10. ubuntu sudoers改坏了。

    pkexec bash 通过如上命令,可以进入root模式,然后恢复sudoers.前提是root账户没被禁用. precise (1) pkexec.1.gz Provided by: policy ...