[GE users] Run one job on *all* machines in a group

templedf dan.templeton at sun.com
Mon Nov 2 13:30:12 GMT 2009


Or, more to the point of the question:

for host in `qconf -shgrp @allhosts | grep hostlist | awk '{for 
(i=2;i<=NF;i++) print $i}'`; do
  qsub -l h=$host myjob.sh
done

Daniel

reuti wrote:
> Am 30.10.2009 um 21:53 schrieb redmumba:
>
>   
>> I'm currently looking into a few options for job schedulers, and I  
>> was curious as to how SGE can be used on entire clusters of nodes.
>>
>> Specifically, I want a job to be run on all members of a specific  
>> group of nodes.  I have SGE setup on three machines (one master and  
>> sched, two execution hosts), and I'd like to be able to submit a  
>> job to a "group" of hosts and have it run on each and every one of  
>> them.  The processes do *not* need to communicate with each other.
>>     
>
> If I get you in the right way, they don't need to run at the same  
> time. You can use a loop to submit to individual hosts:
>
> for i in `seq -w 1 24`; do qsub -l h=node$i myjob.sh; done
>
> -- Reuti
>
>
>   
>> Is this possible with GridEngine?
>>
>> Thank you!
>>
>> Andrew
>>
>> ------------------------------------------------------
>> http://gridengine.sunsource.net/ds/viewMessage.do? 
>> dsForumId=38&dsMessageId=224224
>>
>> To unsubscribe from this discussion, e-mail: [users- 
>> unsubscribe at gridengine.sunsource.net].
>>     
>
> ------------------------------------------------------
> http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=224598
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].
>

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=224611

To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list