torque--客户端使用torque
生活随笔
收集整理的這篇文章主要介紹了
torque--客户端使用torque
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
客戶端使用torque
怎么在隨便一臺(tái)客戶端上使用torque服務(wù)呢
首先,
1服務(wù)端:從服務(wù)器端生成的client.sh(torque-package-clients-linux-x86_64.sh)的那個(gè)腳本復(fù)制過來,
2客戶端:然后在客戶端運(yùn)行 client.sh
3客戶端:再運(yùn)行trqauthd
/usr/local/sbin/trqauthd
4 服務(wù)端:在服務(wù)器端添加授權(quán)
qmgr -c 'set server allow_node_submit = True'qmgr -c 'set server submit_hosts = clientIP'qmgr -c 'set server allow_node_submit = true' qmgr -c 'set acl_hosts=clientIP' (這個(gè)不用執(zhí)行,因?yàn)闆]起作用)5 在服務(wù)端建立對應(yīng)的用戶,比如我客戶端的用戶是lsh,就在服務(wù)器端也建立同樣的用戶用戶lsh,也不用將lsh用戶做自動(dòng)化登陸到服務(wù)器端(此處有錯(cuò),需要做自動(dòng)化登錄,否則會(huì)有報(bào)錯(cuò)2)
usreadd lsh -u 550 -g3000
以上做完就可以測試了
測試:
1 qnodes -a
2 echo “echo a;sleep 100” |qsub
3qstat -f 74
以下是trqauthd的說明文檔
cat /home/torque/torque/README.trqauthd Introductiontrqauthd is a new daemon starting in TORQUE 4.0. It replaces pbs_iff which is used by TORQUE client utilities to authorize user connections to pbs_server. Unlike pbs_iff which is executed by the TORQUE client utilities each time the utility is run, trqauthdis started once and remains resident. TORQUE client utilities then communicate with trqauthd on port 15005 on the loopback interface. Unlike pbs_iff trqauthd is multi-threadedand is able to successfully handle a greater volume of simultaneous requests than pbs_iff.Running trqauthdtrqauthd MUST be run as root. It must be running on any host where TORQUE client commands will execute.By default trqauthd is installed to /usr/local/bin.trqauthd can be invoked directly from the command line or by the use of init.d scripts which are located in the contrib/init.d directory of the TORQUE source.There are three init.d scripts for trqauthd in the contrib/init.d directory of the TORQUE source tree. debian.trqauthdUsed for the apt based systems (debian, ubuntu are the most common variations of this)suse.trqauthdUsed for the rpm based systems. (redhat, suse, scientific, centos, fedora, are some common examples)trqauthdAn example for other packages managers. (anything that doesn't use rpm or apt)Inside each of the scripts are the variable PBS_DAEMON and PBS_HOME. These two variablesshould be updated to match your torque installation. PBS_DAEMON needs to point to thelocation of trqauthd. PBS_HOME needs to match your TORQUE installation. For more informationabout PBS_HOME please see the TORQUE documentation at www.adaptivecomputing.com.Choose the script that matches your dist system and copy it to /etc/init.d. If needed, renamed it to trqauthdTo start the daemon type:/etc/init.d/trqauthd startTo stop the daemon type:/etc/init.d/trqauthd stopYou can also use the following:service trqauthd start/stop
總結(jié)
以上是生活随笔為你收集整理的torque--客户端使用torque的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 五年级上册数学计算机和应用题,2017五
- 下一篇: 【逗老师的无线电】MMDVM添加4G网卡