在sge下从qsub命令中排除节点 [英] excluding nodes from qsub command under sge

查看:172
本文介绍了在sge下从qsub命令中排除节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有200多个工作需要提交到sge集群.我将把它们提交给两个问题.其中一位专家有一个我不想向其提交作业的机器.如何排除那台机器?我发现可能唯一有用的是(假设q1可用三个有效节点,q2可用的所有节点均有效):

I have more than 200 jobs I need to submit to and sge cluster. I'll be submitting them into two ques. One of the ques have a machine that I don't want to submit jobs to. How can I exclude that machine? The only thing I found that might be helpful is (assuming three valid nodes available to q1 and all the available nodes for q2 are valid):

qsub -q q1.q@n1 q1.q@n2 q1.q@n3 q2.q

推荐答案

对此有一个很好的绕过.

There is a nice bypass to this.

生成一个简单的bash文件:

Generate a simple bash file:

#!/bin/bash
sleep 6000 #replace 6000 with any long period of time that will be enough to submit your jobs

将此作业提交到您要排除的节点,直到它们完全占据它为止.

submit this jobs to the node you wish to exclude until they fully occupy it.

Voila,您的节点已排除.

Voila, your node is exclude.

这篇关于在sge下从qsub命令中排除节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆