日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

torque--客户端使用torque

發(fā)布時(shí)間:2024/1/1 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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

根據(jù)報(bào)錯(cuò): $ echo "echo a;sleep 100" |qsub qsub: submit error (Bad UID for job execution MSG=User lsh does not exist in server password file ) Unable to copy file /var/spool/torque/spool/73.jxq-10-0-0-94.ER to lsh@clientIP:/home/lsh/STDIN.e73,error 1 *** error from copy Host key verification failed. lost connection *** end error output Output retained on that host in: /var/spool/torque/undelivered/73.server.ERcomment = Job started on Sat Apr 16 at 11:00etime = Sat Apr 16 11:00:53 2016

以上做完就可以測試了

測試:
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)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。