Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,644,498
Community Members
 
Community Events
196
Community Groups

How to shutdown nodes in AWS Jira Data Center

Chris Dunne {Raledo}
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Apr 21, 2021

I am using AWS Jira Data Center with the default configuration from the CloudFormation stack template. This has one node.

I am using this for testing only. I'd like to shut it down when not in use.

When I shut down the EC2 host for the Jira node, the auto scaling group automatically restarts it.

I've tried detaching it and also changing the min number of nodes in cluster from 1 to 0, but neither work.

Any ideas?

Thanks

Chris

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Steffen Opel _Utoolity_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 23, 2021

An Amazon EC2 Auto Scaling (AS) configuration has three relevant settings to manage capacity:

  1. minimum size - AS ensures your group never goes below this size
  2. maximum size - AS ensures your group never goes above this size
  3. desired capacity - AS ensures that your group has this many instances (either because you manually set the value, or in case you have defined scaling policies, AS adjusts the desired capacity "within your minimum and maximum number of instances, based on the criteria that you specify")

as-basic-diagram

The aws-quickstart/quickstart-atlassian-jira/.../quickstart-jira-dc.template.yaml CloudFormation template does not expose the desired capacity and has a default minimum and maximum size of 1, resulting in:

  • detaching an instance does not alter the Auto Scaling group configuration, which is why AS starts a new instance when you cause it to be below its minimum size of 1
  • terminating an instance has the same effect, causing AS to start a new instance to reach its minimum size of 1
  • changing the minimum size to 0 does not automatically change the desired capacity, if there are no resp. scaling policies configured

Solution

You can easily achieve the desired outcome by setting both minimum and maximum size to 0, which will cause AWS to automatically reduce the desired capacity to 0 and terminate the instance.

Alternatively you can only set the minimum size to 0 and manually set the desired capacity of the Auto Scaling group to 0 as well (via the AWS console or AWS CLI).

Cheers,
Steffen

TAGS
AUG Leaders

Atlassian Community Events