nodesqsubsungridengine

excluding nodes from qsub command under sge


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

Solution

  • There is a nice bypass to this.

    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, your node is exclude.