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

Is there a Minimum Uptime for Elastic Bamboo Instances?

Matthew Hillier May 29, 2012

We have setup our Jira Studio with Elastic Bamboo, and have eveything working, however now that it has settled in, we have noticed that instances are always up a minimum of 50-55 minutes. The automatic shutdown, which is specified as 3 minutes after end of job for Elastic Agents and 120 seconds for the Elastic Instance, doesn't seem to be applied to the instances until after this 50 minute "minimum uptime".

Is there a setting I am missing or is this a default that we cannot change?

2 answers

1 accepted

0 votes
Answer accepted
Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 29, 2012

There's no setting.

With elastic instances, you pay the same amount for every started hour, so it makes no sense to prematurely terminate an instance - it may still become useful and is already paid for the whole hour anyway.

Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 29, 2012

Yes, you are charged for every started hour: if the instance runs 1h1m it still counts as 2 hours.

The only exception to this rule are spot instances terminated by Amazon - then you pay only for the full hours of uptime.

Matthew Hillier May 29, 2012

Ah, that makes sense. So, just for clarification, I'm assuming that instances are charged by elapsed-hour and not clock-hours?

Matthew Hillier May 29, 2012

Got it! Many thanks :)

hughperkins July 13, 2013

That's not how EC2 works. You get billed on a per-hourly basis, for the maximum number of simulltaneous instances running during that hour. Therefore, if you shut down an instance, and start a new instance, within the space of one hour, you only get billed for one hour-instance.

I would like to be able to get my linux instance to shut down when idle, so that the Windows instance can come online and do the windows build, but currently this isn't possible.

Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 13, 2013

Therefore, if you shut down an instance, and start a new instance, within the space of one hour, you only get billed for one hour-instance.

Could you point me to Amazon docs that confirm this? I know this:

"Pricing is per instance-hour consumed for each instance, from the time an instance is launched until it is terminated or stopped. Each partial instance-hour consumed will be billed as a full hour."

Which would mean that you would pay for two instances.

hughperkins July 13, 2013

I tested it a long time ago, and I've used EC2 for a while. You can start and stop arbitrary instances as many times as you like within each billable hour. As long as none of the instances overlap in time, you will get billed for a single cpu-hour.

hughperkins July 17, 2013

Hmmm, you know, I've tried to reproduce my results again, but the results are inconclusive, or possibly support the idea that you are billed for each instance started, not for maximum simultaneous instances. It's not obvious to me how to read the UsageReport that you can get from https://portal.aws.amazon.com/gp/aws/developer/account/usage-report.html

hughperkins July 17, 2013

Hmmm, I retested, by watching the number of hours billed on the 'account activity' page. Seems either I tested wrongly before, or it's changed, but seems your interpretation of billing looks to be correct. I ran two micro instances, one after the other, this morning at 7am, and now my billing has been increased by 2 hours, not the 1 hour I would have predicted. Edit: and the 'usage report' also confirms 2 usage units of micro at the corresponding time. So, it's pretty certain that your interpretation of the billing is correct, and mine has been wrong for, well, years :-D

hughperkins July 17, 2013

Nevertheless, even taking into account the correction of my interpretation of the EC2 billing, there is a use-case for early instance termination. If one has only a single Bamboo license - for example, for an opensource project - and one wants to do builds on multiple platforms, eg linux-32, linux-64, windows-32, and windows-64, if one is willing to pay for the EC2 hours (which I guess I am), then one could accelerate the build by anything up to about 3.5 hours by shutting down each instance after each part of the build.

Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 17, 2013

Yeah, I agree. I've opened a ticket for this: https://jira.atlassian.com/browse/BAM-13482 .

Hugh Perkins July 19, 2013

Cool. Thanks!

0 votes
hughperkins July 13, 2013

That's not how EC2 works. You get billed on a per-hourly basis, for the maximum number of simulltaneous instances running during that hour. Therefore, if you shut down an instance, and start a new instance, within the space of one hour, you only get billed for one hour-instance.

I would like to be able to get my linux instance to shut down when idle, so that the Windows instance can come online and do the windows build, but currently this isn't possible.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events