Feature to avoid Elastic agents are getting piled up every minute due to an aggressive minimum "Average queue time threshold" time set up.

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: Elastic Bamboo
    • None
    • 0
    • 1

      Problem Definition

      When having a large number of jobs of short duration executed in parallel, elastic agents are getting piled up every minute due to the default one-minute timer that Bamboo sets between scale-up events. Because the jobs are executed fast, these end up being run by the first batch of elastic agents that came up first while the rest of the agents are still pending. This causes the rest batch of agents unusable as they will not have any jobs to execute when they become available.

      Suggested Solution

      Users should have more flexibility to allow elastic agents to be started immediately if none are running as this will allow the builds to be started without delay. Also, when configuring the "Average queue time threshold" this should take into account the time an elastic instance takes to start up before starting new instances.

      Replication steps:

       Add 30 small jobs to the queue (jobs that take like 30s to build).
       Bamboo will wait 1 minute, then start ten agents, and after one more minute, it will start ten more; after another minute, it will start ten more, so a total of 30 agents are requested before even one has become available to build.
      The first batch of 10 agents becomes available to build and processes all the jobs in 1-2 minutes while there are still 20 agents being initialized and not yet available.

      Workaround

      No workaround.

              Assignee:
              Unassigned
              Reporter:
              Jaivir Singh (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: