Multiple Image Configuration and image max instance limit

Hi Atlassian,

We are having a specific requirement:

  1. Have 3+ instances of Normal linux image.
  2. Have at most 2 instances of linux image configured to run long running selenium tests.

We have created default image first, cloned its capabilities and added custom capability to run selenium tests.

But it came into observation that when there are more jobs that require the selenium capability, a new instance of the Selenium image is being started and the job is running on that instance.

 

This is creating problems as most of the selenium stages take unto 40 mins to complete and the smaller jobs (< 5 mins and most take 15 secs) which are intended to run on the normal image are being queued. 

 

Is there any way I can set the maximum number of instances of a particular image that can be running at any time?

1 answer

1 accepted

Accepted Answer
1 vote

No, it's not possible, sorry. As a workaround What if you added a requirement to your smaller jobs that wouldn't be fulfilled by the Selenium images?

Yeah but that just stops the smaller jobs from running on the Selenium image. But what if 3-4 selenium required jobs are in the queue but I do not want to fire new selenium instances instead they should just remain in queue till the selenium instance is free. Is there a way to do this?

A reasonable requirement, but it's not possible, sorry.

Can it be done using some scripts? In the instance startup script we could poll to get number of instances of this image etc?

Instances startup script is run after the instance is started.

Is there an enhancement request for this?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Jira Ops

Jira Ops Early Access Program Update #2: Let’s talk severity levels

Welcome to your weekly Jira Ops Early access program update, where we’re sharing news and updates on Jira Ops' progress as we work toward our 1.0 release. If you ever want to drop us feedback or idea...

41 views 0 0
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