You want to horizontally scale in or out an Atlassian Data Center deployment based on the 'cost-effective' Utoolity AWS Quick Start forks, e.g. to semantically stop the cluster during off-hours.

Prerequisites

You have provisioned your Atlassian Data Center deployment based on the 'cost-effective' Utoolity AWS Quick Start forks, and the cluster is running (aka 'active') – refer to /wiki/spaces/UAAKB/pages/803766282 for details.

Concepts

It is helpful to get acquainted with the following facilitated concepts:

Implementation

Based on the above concepts, scaling in/out has been implemented via a resp. 'Stack standby mode' parameter as follows:

TODO 

Step-by-step guide

Shared responsibiltiy

Scaling in/out to and from 'cold standby' does not currently seem to work reliably for Bitbucket, where the cluster sometimes does not come up again due to the NFS filesystem not being properly mounted on the nodes (not investigated yet). While this has not ever been observed for Confluence or Jira, it is your responsibility to judge whether you can risk loosing your running cluster or whether an at this point manual backup is advised!

Scale in

Update the applicable Atlassian Data Center cluster CloudFormation stack to scale in (Stack standby mode → 'cold standby'):

  1. (Optional) Create a backup of the cluster, as outlined in How to backup/restore an Atlassian Data Center deployment for replication purposes

  2. Navigate to the CloudFormation console and select the target stack

  3. Select 'Actions → Update Stack', then 'Use current template', and click 'Next'

  4. Scroll down to section 'Availability/Cost (Optional)' and change 'Stack standby mode' to 'cold', keep all other parameters as is, and click 'Next' twice

  5. Preview your changes to confirm that the only affected resources are of type AWS::AutoScaling::AutoScalingGroup, then click 'Update'

  6. Once the stack has reached the UPDATE_COMPLETE status, navigate to the EC2 console to observe that the cluster nodes are shutting down (this might take a moment to start and complete based on how the underlying Auto Scaling group is configured in detail

  7. (Bitbucket only) Select the 'Bitbucket NFS node' and click 'Actions → Instance State → Stop'

  8. Once all cluster nodes have been shut down, navigate to the RDS console and select the cluster's RDS instance (in newer deployments it is named after the stack)

  9. Select 'Instance actions → Stop'

Scale out

Update the applicable Atlassian Data Center cluster CloudFormation stack to scale out (Stack standby mode → 'active'):

  1. TBD - basically you need to follow the scale in steps above in reverse order

You may also want to use visual panels to communicate related information, tips or things users need to be aware of.

Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.



Related issues