[StarCluster] Live load balancing node AMI Swapping
Colby Taperts
colby.taperts at codewilling.com
Wed Oct 25 13:30:30 EDT 2017
Hey Raj,
It does not seem to pick up the new node AMI name and uses the old AMI for
the node, even though it is not in the ~/.starcluster/config.
My steps to reproduce are:
1. Setup config with different master/node AMI's
2. Start load balancing
3. Stop Load Balancing
4. Change node AMI
5. Start Load balancing
If I were to terminate the starcluster and start it again then the AMI for
the cluster will be updated. Is there another ephemeral location for the
starcluster configuration between starting and terminating the cluster? I
did look through the source but could not find the reference.
On Wed, Oct 25, 2017 at 11:48 AM, Rajat Banerjee <rajatb at post.harvard.edu>
wrote:
> Hi Cody,
> I don't see why not. I haven't touched the load balancer code in a few
> years. But from my memory, it reads the config file on startup whenever you
> run `starcluster loadbalance starcluster-name` and will pick up the new
> AMI then. So if you kill the last loadbalance process, swap the AMI in the
> config file, then restart, the load balancer should begin adding the new
> AMI. The new AMI must be compatible with starcluster obviously, and be
> ready for starcluster and SGE bootstrapping. This is easy to verify by
> simply using it to start a new cluster as a test.
>
> Give it a try and let us know?
> Best,
> Raj
>
> On Wed, Oct 25, 2017 at 12:32 PM, Colby Taperts <
> colby.taperts at codewilling.com> wrote:
>
>> Hello,
>>
>> Would it be possible to change the node AMI after the StarCluster is up?
>>
>> for example, use the below setup to initialize the StarCluster
>>
>> master_image_id = ami-0330d16a
>> master_instance_type = m1.small
>> node_image_id = ami-0330d16a
>> node_instance_type = m1.small
>>
>>
>> then change the config to:
>>
>> master_image_id = ami-0330d16a
>> master_instance_type = m1.small
>> node_image_id = ami-0111111 # New AMI name
>> node_instance_type = m1.small
>>
>> Start `starcluster loadbalance starcluster-name`
>>
>> and have the new node AMI created when a node is needed
>>
>> Or would I need to destroy the cluster if I need to set up the new AMI?
>>
>> Thanks so much!
>> -Colby Taperts
>>
>> _______________________________________________
>> StarCluster mailing list
>> StarCluster at mit.edu
>> http://mailman.mit.edu/mailman/listinfo/starcluster
>>
>>
>
--
Colby Taperts
3488 Brentwood Drive
Suite 104
Baton Rouge, LA 70809
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/starcluster/attachments/20171025/ccfe2122/attachment.html
More information about the StarCluster
mailing list