StarCluster - Mailing List Archive

Re: Live load balancing node AMI Swapping

From: Colby Taperts <no email>
Date: Wed, 25 Oct 2017 12:30:30 -0500

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 <>

> 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 <
>> 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

  Colby Taperts
  3488 Brentwood Drive
  Suite 104
  Baton Rouge, LA 70809
Received on Wed Oct 25 2017 - 13:31:24 EDT
This archive was generated by hypermail 2.3.0.


Sort all by: