Managing

Running GroupStack

Reboot/Stop

Snapshot/Remove

 

robustack.com

Reboot GroupStack

(1) Click "GroupStacks" in main menu. 

(2) Select groupstack to reboot

 at groupstack table view.

(3) Open console log view.

"Log Admin" -> "Show Console Log" 

(4) Click "Reboot GroupStack" button. 

(5) Reboot GroupStack workflow

1. Stops every application according to its groupstack-wide reverse 'Start Order' and 'Stop App Dependencies'.

2. Unmounts all filesystems.

(5) Reboot GroupStack workflow

3. Reboots all instances.

4. Waits all instances are rebooted.

5. Mounts all filesystems.

6. Runs 'Post Bash Script'.

(5) Reboot GroupStack workflow

7. Starts applications according to those groupstack-wide 'Start Orders' and 'Start App Dependencies'.

(6) Reboot GroupStack completed.

Stop GroupStack

(1) Click "GroupStacks" in main menu. 

(2) Select groupstack to stop

 at groupstack table view.

(3) Open console log view.

"Log Admin" -> "Show Console Log" 

(4) Click "Stop GroupStack" button. 

(5) Stop GroupStack workflow

1. Stops every application according to its groupstack-wide reverse 'Start Order' and 'Stop App Dependencies'.

2. Unmounts all filesystems.

3. Terminates all spot instances.

4. Stops all on-demand instances.

(5) Stop GroupStack workflow

5. Deregisters instances from Elastic LB,

if 'Auto Register to ELB' are set to instances. 

6. Waits until all spot instances terminated

and all on-demand instances stopped.

7. If this is the first stop for spot instances, creates new AMIs from detached root volume. 

(6) Stop GroupStack completed.

Check if groupstack status is now "GroupStack Stopped"

If it is the first stop for any spot instances, initiates new AMI creation from its detached root volume and will be used for the next start. 

Stop GroupStack - Spot Preserve

'Stop GroupStack - Spot Preserve' workflow is identical to 'Stop GroupStack' workflow, except creating new AMIs for spot instances in force at the end of the workflow.

(1) Click "GroupStacks" in main menu. 

(2) Select groupstack to stop

 at groupstack table view.

(3) Open console log view.

"Log Admin" -> "Show Console Log" 

(4) Click "Stop GroupStack - Spot Preserve" button. 

(5) Stop GroupStack - Spot Preserve workflow

1. Stops every application according to its groupstack-wide reverse 'Start Order' and 'Stop App Dependencies'.

2. Unmounts all filesystems.

(5) Stop GroupStack - Spot Preserve workflow

3. Terminates all spot instances.

4. Stops all on-demand instances.

5. Waits until all spot instances terminated and all on-demand instances stopped. 

(5) Stop GroupStack - Spot Preserve workflow

6. Snapshots detached root volumes of all spot instances and creates new AMIs for them.

7. Changes groupstack info. on AMIs of the spot instances for next startup. 

(6) Stop GroupStack - Spot Preserve completed.

Check if groupstack status is now

"GroupStack Stopped"

Snapshot GroupStack

'Snapshot GroupStack' workflow of groupstack in 'running' state is identical to 'Snapshot GroupStack' workflow of groupstack in 'stopped' state, except freezing and unfreezing filesystems before and after initiating none rootvol snapshots.

(1) Click "GroupStacks" in main menu. 

(2) Select groupstack to snapshot

 at groupstack table view.

(3) Open console log view.

"Log Admin" -> "Show Console Log" 

(4) Click "Snapshot GroupStack" button. 

(5) Enter "Group Snapshot Name". 

(6) Snapshot GroupStack workflow

1. Records the current status of instances and filesystems for future reference. 

(6) Snapshot GroupStack workflow

2. Initiates snapshot for none-root volumes. Bound filesystems to the volumes will be freezed just before initiating snapshots and unfreezed just after initiating snapshots, in case the filesystems configured as 

'Freeze When Snapshot Volume'.

(6) Snapshot GroupStack workflow

3. Initiates snapshot for root volumes.

4. Waits until all snapshots completed.

(7) Snapshot GroupStack completed.

Click "Snapshots" tab and check the results.

Remove GroupStack

Removing groupstack will just release the configuration of groupstack and leave EC2 resources intact. It will never terminate/stop EC2 instances nor remove EBS volumes. Any contents neither. 

(1) Click "GroupStacks" in main menu. 

(2) Select groupstack to remove

 at groupstack table view.

(3) Open console log view.

"Log Admin" -> "Show Console Log" 

(4) Click "Remove GroupStack" button. 

(5) Read reminders and click "Confirm".

All Sequence/Schedule/Trigger jobs will be removed together. And will NOT be recoverable.

(6) GroupStack has been removed.

Even though you removed the groupstack, all the Amazon EC2 resources would be the same and they would still be operating.

Managing Running GroupStack

By robustack.com

Managing Running GroupStack

Managing Stopped GroupStack - Reboot / Stop / Snapshot / Remove. Robustack is an Amazon EC2 Orchestration Platform. This slides shows how to manage a groupstack (an unit for group of EC2 instances, volumes, security groups and filesystems, applications) which is in running state and explains what will be going on under the hood.

  • 738