<br><br><div class="gmail_quote">On Wed, Oct 20, 2010 at 9:05 AM, Austin Godber <span dir="ltr">&lt;<a href="mailto:godber@uberhip.com">godber@uberhip.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


  
    
    
  
  <div text="#000000" bgcolor="#ffffff">
    Hi Dan,<br>
        Yeah,  I have been playing with them a little bit which is what
    brought up the idea.  The plugins are exactly as you said a post
    startup hook.  If I had a pre-shutdown hook I could save state about
    the cluster prior to shutting it down.  I guess there may not be
    that many actions that need hooking, but I just thought I would
    throw the idea out there so people could give it a think.<br></div></blockquote><div><br></div><div>Yes  I agree, I defeinitely would like a pre-shutdown hook as well.    I think having a bunch of action hooks, which could be expressed as methods to the ClusterSetup object just like &quot;run&quot; is now the post-startup hook, would be good in general.   </div>
<div><br></div><div>Justin and I and some others here in Cambridge once discussed also having a _pre-start_ hook, as distinguished from a post-start hook, to handle advanced logic in the configuration of the node start commands, like complex cluster structures.   Some of my original desire fore that is alleviated by having a compound node_instance_type to these cluster structures, but it still might be useful.  </div>
<div><br></div><div>Also, now that there&#39;s also add_node and delete_node commands for dynamic load balancing (I think these are going to be in the next release) having action hooks for those actions would be useful as well.  (I&#39;m not sure how Justin is thinking of handling it.) </div>
<div><br></div><div>Dan</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div text="#000000" bgcolor="#ffffff">
    <br>
        For the most part, I am doing slightly goofy things with
    StarCluster and I don&#39;t want to annoy you guys (and Justin) too
    much.  But when I think of something that is generally useful I
    thought I would share.  Like the _setup_sge() thing.  I know thats
    the /main point/ of StarCluster, but its also the only line in
    DefaultClusterSetup that makes StarCluster a SGE Cluster creator for
    EC2 rather than a generic cluster creator for EC2.<br><font color="#888888">
    <br>
    Austin</font><div><div></div><div class="h5"><br>
    <br>
    On 10/20/2010 08:53 AM, Dan Yamins wrote:
    <blockquote type="cite">Austin -- are you aware of starcluster plugins?   
      <div><br>
      </div>
      <div><a href="http://web.mit.edu/stardev/cluster/docs/plugins.html" target="_blank">http://web.mit.edu/stardev/cluster/docs/plugins.html</a></div>
      <div><br>
      </div>
      <div>These are essentially (as far as I understand it) action
        hooks for startup.  
        <div>
          <br>
        </div>
        <div>Dan<br>
          <br>
          <div class="gmail_quote">On Tue, Oct 19, 2010 at 9:06 PM,
            Austin Godber <span dir="ltr">&lt;<a href="mailto:godber@uberhip.com" target="_blank">godber@uberhip.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
              I don&#39;t think there are any action hooks of any sort for
              starcluster are<br>
              there?  For instance if I wanted to do something before or
              after cluster<br>
              start or shutdown?  That could be a handy feature.<br>
              <br>
              Austin<br>
              _______________________________________________<br>
              StarCluster mailing list<br>
              <a href="mailto:StarCluster@mit.edu" target="_blank">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>
      <pre><fieldset></fieldset>
_______________________________________________
StarCluster mailing list
<a href="mailto:StarCluster@mit.edu" target="_blank">StarCluster@mit.edu</a>
<a href="http://mailman.mit.edu/mailman/listinfo/starcluster" target="_blank">http://mailman.mit.edu/mailman/listinfo/starcluster</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<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>
<br></blockquote></div><br>