Is automatic shutdown broken?

I've configured automatic shutdown as follows:

Automatic shutdown EC2 instances will be automatically terminated 300 seconds after the agent goes offline

However after a build, the instance remained running for over an hour and I had to manually stop it.

Am I missign anything?

2 answers

1 accepted

0 vote
Jason Worley Atlassian Team Oct 17, 2013

By default, any volumes that were created when an instance launched should be automatically deleted when the instance terminates (in other words, their DeleteOnTermination flags are set to true by default). However, any volumes that are attached after the instance is running are not - this is due to that DeleteOnTermination flag are set to false.

Configure the instance to automatically delete the EBS volumes after instance shutdown by setting the DeleteOnTermination flag to true and this has to be configured on AWS side.

More details available here:

https://confluence.atlassian.com/display/ONDEMANDKB/Delete+EBS+Volume+On+Instance+Termination+in+EC2

FYI - that page is not accessible.

0 vote

You've configured the shutdown that gets triggered when an agent dies (goes offline), not when it becomes idle. You need to configure "Idle agent shutdown delay" .

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,586 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you