<div dir="ltr">Hugh, thanks for testing instance type change, it was very late last night and I did not have time to test it.<div><br></div><div>Ramon, we can add code in StarCluster to provide support for instance type change, and in my original email I wanted to point out that you need to use StarCluster to stop the cluster first, as changing the instance type means changing the IP of the instance too, and thus a change of instance type without letting StarCluster know wouldn&#39;t work.</div><div class="gmail_extra"><br clear="all"><div>Rayson<br><br>==================================================<br>Open Grid Scheduler - The Official Open Source Grid Engine<br><a href="http://gridscheduler.sourceforge.net/" target="_blank">http://gridscheduler.sourceforge.net/</a><br><a href="http://gridscheduler.sourceforge.net/GridEngine/GridEngineCloud.html" target="_blank">http://gridscheduler.sourceforge.net/GridEngine/GridEngineCloud.html</a></div>
<br><div class="gmail_quote">On Thu, Sep 18, 2014 at 10:22 AM, MacMullan, Hugh <span dir="ltr">&lt;<a href="mailto:hughmac@wharton.upenn.edu" target="_blank">hughmac@wharton.upenn.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Wow, I can&#39;t believe I never thought of that. Just tested c3.large &gt; c3.8xlarge transformation, and it worked just fine … AWS CLI for the command line win!<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#00b050">starcluster start -i c3.large -c mycluster mycluster<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#00b050">starcluster stop -c mycluster<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#00b050">starcluster lc ## wait till the nodes are all &#39;stopped&#39;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#00b050">for ID in $(starcluster lc mycluster 2&gt;/dev/null | grep -e node[0-9][0-9][0-9] -e master | awk &#39;{print $3}&#39;); do<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#00b050">   echo $ID<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#00b050">   # the magic:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#00b050">   aws ec2 modify-instance-attribute --instance-id $ID --instance-type c3.8xlarge<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#00b050">done<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#00b050">starcluster start -x mycluster<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Seems like that could be pretty easily integrated into StarCluster.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">-Hugh<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"> Rayson Ho [mailto:<a href="mailto:raysonlogin@gmail.com" target="_blank">raysonlogin@gmail.com</a>]
<br>
<b>Sent:</b> Thursday, September 18, 2014 1:18 AM<br>
<b>To:</b> Ramon Ramirez-Linan<br>
<b>Cc:</b> MacMullan, Hugh; <a href="mailto:starcluster@mit.edu" target="_blank">starcluster@mit.edu</a><br>
<b>Subject:</b> Re: [StarCluster] Changing iinstance type for everynode in the cluster<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div><span class="">
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I&#39;ve never tried something like this myself, but I believe it would work if you stop the EBS cluster (*NOT* terminate), and then change the instance type from the EC2 management Console, and then restart the
 cluster, then StarCluster would happily reconfig the cluster for you:<br>
<br>
<a href="http://star.mit.edu/cluster/docs/latest/manual/launch.html#stopping-an-ebs-backed-cluster" target="_blank">http://star.mit.edu/cluster/docs/latest/manual/launch.html#stopping-an-ebs-backed-cluster</a><u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Just a reboot won&#39;t do it, as the private IP address changes when you change the instance type, and /etc/hosts would need to be changed again.<u></u><u></u></p>
</div>
<p class="MsoNormal">(Test with a 2-node t1.micro cluster and change the type to t2.micro before doing anything experimental on a real production cluster.)<u></u><u></u></p>
</span><div>
<div>
<div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal">Rayson<br>
<br>
<br>
<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Wed, Sep 17, 2014 at 10:53 PM, Ramon Ramirez-Linan &lt;<a href="mailto:rlinan@navteca.com" target="_blank">rlinan@navteca.com</a>&gt; wrote:<u></u><u></u></p><span class="">
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Is there a way of changing the instance type for the entire cluster after it has already be launched?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I want to launch a 30  nodes cluster with a cheaper instance type to ingest data on each node&#39;s volume. Each node has a 1TB EBS attached and there is no need to share data between nodes (no nfs or anything). Then once the data is injected
 on each node I want to be able to change the cluster instances to a more expensive one (more CPU/RAM)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Will cluster reboot let me do that?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks in advance<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</blockquote>
</span></div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>

</blockquote></div><br></div></div>