<div dir="ltr"><div>No, it is a bad idea. You should look at the code for addnode and introspect about why you would want to re-write that:<br><br><a href="https://github.com/jtriley/StarCluster/blob/develop/starcluster/cluster.py#L998">https://github.com/jtriley/StarCluster/blob/develop/starcluster/cluster.py#L998</a><br><br></div>Better to dig into why the spot instances are unable to communicate with the master. Check their /etc/hosts file, dns connectivity, whether your spot bid is too low and the instances are getting terminated. Remember about spot bids -- no matter how high your bid, you'll get the lowest available price. only when the price starts climbing do under-bidders get affected.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 8, 2016 at 12:57 AM, rishi <span dir="ltr"><<a href="mailto:rishiraaz@gmail.com" target="_blank">rishiraaz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi Rajat,<br></div>Thanks for prompt reply.<br></div><div>addnode command is slow and spot instances added lose communication to sge master frequently ,not sure why.<br></div><br></div>I suppose doing it without addnode will give more understanding and better control.<br><br></div>Please guide/suggest a way to achieve this.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 7, 2016 at 8:30 PM, Rajat Banerjee <span dir="ltr"><<a href="mailto:rajatb@post.harvard.edu" target="_blank">rajatb@post.harvard.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>You will definitely want to use addnode, otherwise the new machines won't be added to the oracle grid engine cluster, and you won't be able to give them tasks or ssh to them.<br><br></div>Have you looked at adding your scripts in the form of a plugin? It can run within the context of addnode.<br><br></div>There are ways to always use spot instances:<br><a href="http://star.mit.edu/cluster/docs/latest/manual/configuration.html" target="_blank">http://star.mit.edu/cluster/docs/latest/manual/configuration.html</a><br><br></div>From the manual:<br><p>The <tt><span>addnode</span></tt> command has additional options for customizing the new node’s
instance type, AMI, spot bid, and more. See the help menu for a detailed list
of all available options:</p>
<div><div><pre>$ starcluster addnode --help
</pre></div>
<a href="http://star.mit.edu/cluster/docs/latest/manual/addremovenode.html" target="_blank">http://star.mit.edu/cluster/docs/latest/manual/addremovenode.html</a></div><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Mon, Mar 7, 2016 at 2:55 AM, rishi <span dir="ltr"><<a href="mailto:rishiraaz@gmail.com" target="_blank">rishiraaz@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div><div>Hi Team,<br></div>I was wondering if there is a way to add spot instances to cluster without using starcluster commands , something like manual addition.<br></div>The instances to be added are launched using a script and i want to be added to cluster tried a few things but without starcluser addnode command it is not working. <br><br></div>Please suggest.<span><font color="#888888"><br clear="all"><div><div><div><div><br>-- <br><div><div dir="ltr"><div><div dir="ltr"><div>Rishi Raj Singh<br></div><div>Cloud ;)<br></div></div></div></div></div>
</div></div></div></div></font></span></div>
<br></div></div>_______________________________________________<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" rel="noreferrer" target="_blank">http://mailman.mit.edu/mailman/listinfo/starcluster</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><br>-- <br><div><div dir="ltr"><div><div dir="ltr"><div>Rishi Raj Singh<br></div><div>Cloud ;)<br></div></div></div></div></div>
</div>
</div></div></blockquote></div><br></div>