Hmm, the docs don&#39;t seem to be all that enlightening.  Here is another way.<div>init_node is called for every node in the run method of a starcluster plugin</div><div>as well as in the on_add_node method of the plugin. HTH.</div>
<div><br></div><div>Regards,</div><div><br></div><div>Don</div><div><br><div><br></div><div><div>    def init_node(self, node, master):</div><div>        ...</div><div>        # Set the number of slots to 1.  We do this so that only one job is</div>
<div>        # is submitted per machine, since we will use all of its available</div><div>        # threads in multi-threaded mode.</div><div>        cmd_strg = &#39;source /opt/sge6/default/common/settings.sh;&#39; \</div>
<div>               &#39;qconf -mattr exechost complex_values slots=1 %s&#39; % node.alias</div><div><br></div><div>        self.logger.debug(&quot;Executing: |%s|&quot; % cmd_strg)</div><div>        output = master.ssh.execute(cmd_strg)</div>
</div><div>        ...</div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Thu, Feb 23, 2012 at 3:56 PM, David Erickson <span dir="ltr">&lt;<a href="mailto:derickso@stanford.edu">derickso@stanford.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi-<br>
I&#39;ve been digging through SGE/OGS docs for the last hour or so trying to<br>
sort out the easiest way to enforce a one job per host restriction, does<br>
anyone have a suggestion on how to do this?  My hosts are coming up with<br>
8 slots, so I tried launching with -l slots=8 but it complained about<br>
wanting me to use parallel environments which looks even more complicated..<br>
<br>
Thanks,<br>
David<br>
_______________________________________________<br>
StarCluster mailing list<br>
<a href="mailto:StarCluster@mit.edu">StarCluster@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/starcluster" target="_blank">http://mailman.mit.edu/mailman/listinfo/starcluster</a><br>
</blockquote></div><br></div></div>