Centos7 安装单节点Torque PBS
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的更多相关文章
- Cloudera Manager安装之利用parcels方式安装单节点集群(包含最新稳定版本或指定版本的安装)(添加服务)(CentOS6.5)(四)
不多说,直接上干货! 福利 => 每天都推送 欢迎大家,关注微信扫码并加入我的4个微信公众号: 大数据躺过的坑 Java从入门到架构师 人工智能躺过的坑 ...
- (一)Hadoop1.2.1安装——单节点方式和单机伪分布方式
Hadoop1.2.1安装——单节点方式和单机伪分布方式 一. 需求部分 在Linux上安装Hadoop之前,需要先安装两个程序: 1)JDK 1.6(或更高版本).Hadoop是用Java编写的 ...
- centos7用docker安装单节点redis4.0.11
[root@localhost conf]# docker search redisINDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATEDdocker.io d ...
- 全网最详细Apache Kylin1.5安装(单节点)和测试案例
转:http://blog.itpub.net/30089851/viewspace-2121221/ 微视频链接: Apache Kylin初识 1.版本(当前实验版本组合,版本一定要兼容 ...
- CentOS7 部署单节点 FastDFS
准备 环境 系统:CentOS7.5 软件即依赖 libfatscommon FastDFS分离出的一些公用函数包 FastDFS fastdfs-nginx-module FastDFS和nginx ...
- redis安装(单节点)
# tar -zxvf redis.tar.gz # cd redis 安装(使用 PREFIX 指定安装目录): # make PREFIX=/usr/local/redis install 安装完 ...
- @ZooKeeper注册中心安装(单节点)
1.下载zookeeper 下载地址:https://archive.apache.org/dist/zookeeper/,这里我们使用3.4.6版本. [winner-0715@localhost ...
- Mac OS用docker Desktop安装单节点kubernetes
方案: 安装方式:阿里云minikube,k8s官方minikube,kubeadm, docker Desktop中自带第k8s 安装环境:在linux虚拟机中安装k8s,在macos中安装k8s, ...
- Centos7安装Redis-单节点
1.安装 gcc 编译环境 由于 Redis 使用 C 语言开发,所以官网下载的源码需要进行编译,编译依赖 gcc 环境,如果没有 gcc 环境,则需要安装. [root@CentOS ~]# yu ...
随机推荐
- CF839 D 容斥
求$gcd>1$的所有$gcd(a_i,a_{i+1}…a_{n})*(n-i+1)$的和 首先先标记所有出现的数.从高到低枚举一个数k,记录它的倍数出现次数cnt,那么当前所有组合的答案就是$ ...
- JVM学习三:JVM之类加载器之连接分析
学习完类加载之加载篇后,让我们继续来看加载之连接,连接分为三个步骤:验证.准备和解析三步,我们将一一分析之. 连接就是将已经读入到内存的类的二进制数据合并到虚拟机的运行时环境中去. 类加载完毕之后进入 ...
- LintCode 156: Merge Interval
LintCode 156: Merge Interval 题目描述 给出若干闭合区间,合并所有重叠的部分. 样例 给出的区间列表 => 合并后的区间列表: [ [ [1, 3], [1, 6], ...
- mybatis错误总结
1:传递多个参数失败 Parameter 'username' not found. Available parameters are [0, 1, param1, param2] dao层错误写 ...
- iOS中UITabelView
1.概述 继承自UIScrollView,只能显示一列数据,只能纵向滑动.堪称UIKit里面最复杂的一个控件了,使用起来不算难,但是要用好并不容易.当使用的时候我们必须要考虑到后台数据的设计,tabl ...
- 大图片上传(ImageIO,注意有的图片不能上传时因为他是tiff格式)
一下是必要的: 1.enctype="multipart/form-data" 2. //不要使用myeclipse自动生成的get.set方法(struts2中的用法) publ ...
- NEO发行资产Token
NEO注册发行全局资产(Token 和 Share)功能已经在neo-gui里面集成,发行非常方便, 高级-注册资产 注册Token消耗GAS感人 4990 Gas 点击调用,获取交易ID为资产ID ...
- 数据库与sql注入的相关知识
数据库与sql注入的相关知识 sql语句明显是针对数据库的一种操作,既然想通过sql注入的方法来拿取数据那么就要先了解一下如何的去操作数据库,这方面并不需要对数据库有多么的精通但是如果了解掌握了其中的 ...
- 简单实现JS上传图片预览功能
HTML代码 <div class="upload"> <input type="button" class="btn" ...
- NFS生产场景优化
1.硬件上多块网卡bond,增加吞吐量,至少千兆.sas/ssd磁盘组raid5或raid10 2.服务端配置:/data 172.16.1.0/24(rw,sync,all_squash,anonu ...