How come the elastic agent doesn't shut down when idle?

I configured a Bamboo plan in our OnDemand trial. It runs against a Bitbucket Git repository with the "Default Image S3 i386 (linux) (stock image)" and builds fine. However, neither the Elastic Agent nor the EC2 instance shut down when being idle. In the configuration, the "Elastic Instance Management" was set to "Passive", so the "Idle Agent Shutdown Delay" was 10 minutes. And the "Shutdown Delay" for the EC2 instance was set to 300 (seconds, I guess).

However, the agent was idle for about 20 minutes without doing anything. When I manually requested it to stop, it sat there with a "(Stop requested)" message (or similar) for another couple of minutes. Finally, I terminated the instance manually through Bamboo.

So, how do I get the Elastic Agent and the Elastic Instance to shut down after five minutes of idle time?

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.

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.

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.