<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Lyn,<div><br></div><div>How about using the SGE plugin (this one [1] not the baked-in setup) and a simple script-runner plugin (see [2] for the one I use), but having the SGE plugin last in the order. That way the setup script should run first, and then SGE will be configured second.</div><div>I have not tested this approach but in principal it will work.</div><div><br></div><div>So a sample config snippet:</div><div><br></div><div><font class="Apple-style-span" face="Courier">[cluster smallcluster]</font></div><div><font class="Apple-style-span" face="Courier">&nbsp;# don't use baked-in SGE<br>disable_queue&nbsp;=&nbsp;True</font></div><div><font class="Apple-style-span" face="Courier">&nbsp;# the order matters here</font></div><div><font class="Apple-style-span" face="Courier">plugins&nbsp;=&nbsp;scriptrunner,&nbsp;sge</font></div><div><font class="Apple-style-span" face="Courier"><br></font></div><div><font class="Apple-style-span" face="Courier">[plugin sge]<br>setup_class&nbsp;=&nbsp;starcluster.plugins.sge.SGEPlugin<br>master_is_exec_host&nbsp;=&nbsp;False</font></div><div><font class="Apple-style-span" face="Courier"><br></font></div><div><font class="Apple-style-span" face="Courier">[plugin scriptrunner]<br>setup_class = scriptrunner.ScriptRunner<br>&nbsp;# note this is the path on the cluster itself, e.g., NFS drive.</font></div><div><font class="Apple-style-span" face="Courier">node_startup_script = /path/to/script</font></div><div><br><div><div>Good luck,</div><div>Nik</div><div><br></div><div>[1]&nbsp;<a href="http://star.mit.edu/cluster/docs/latest/plugins/sge.html">http://star.mit.edu/cluster/docs/latest/plugins/sge.html</a></div><div>[2]&nbsp;<a href="https://gist.github.com/nkrumm/8292905">https://gist.github.com/nkrumm/8292905</a></div></div></div><div><br></div><div><div>On Jan 6, 2014, at 10:14 AM, Lyn Gerner wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi Folks,<div style=""><br></div><div style="">I need to make node-resource-specific SGE config changes everytime I add a new node. &nbsp;To avoid race conditions, I need to bring the node up in a disabled state, make the changes, then enable it for running jobs.</div>
<div style=""><br></div><div style="">I don't see a way to do this with StarCluster commands or config settings. &nbsp;Maybe I missed something.</div><div style=""><br></div><div style="">Could I get a best practice suggestion for how to achieve that set of interactions? &nbsp;I don't want to hack the SGE plugin if there's a better way.<br>
</div><div style=""><br></div><div style="">Thanks,</div><div style="">Lyn</div></div>
_______________________________________________<br>StarCluster mailing list<br><a href="mailto:StarCluster@mit.edu">StarCluster@mit.edu</a><br>http://mailman.mit.edu/mailman/listinfo/starcluster<br></blockquote></div><br></body></html>