Improve the Bamboo performance on handling storm requests from Jira while Expiry is running

XMLWordPrintable

    • 2
    • Severity 2 - Major

      Problem

      When Bamboo runs Expiry, it sends notifications to Jira about the updates on expired Deployments. As a result, Jira calls the Bamboo endpoint rest/remote-link-aggregation/latest/aggregation?globalId... to get the latest updates.
      And if your environment is large and expiring many Deployment projects, this can cause a storm of requests to Bamboo from Jira, causing a Bamboo outage.

      Environment

      Large Bamboo Instance

      Steps to Reproduce

      • Integrate Jira with Bamboo
      • Create some builds and deployment that have reference Jira issues
      • Run Expiry
      • Monitor the logs

      Expected Results

      • Improve the Bamboo expiry notification to Jira- may be bulk them at the end of the deployment expiry.
      • check any chance of Improving the DeploymentAggregator

      Actual Results

      Jira sends requests per Deployment Project, so we get duplicate calls for the same Jira.

      2023-02-14 19:15:03,420 DEBUG [http-nio-8910-exec-10] [DeploymentAggregator] 1plans found for matching versions.
      192023-02-14 19:15:03,426 DEBUG [http-nio-8910-exec-10] [DeploymentAggregator] Found 11 versions mentioning the issue key JIR-13
      202023-02-14 19:15:03,427 DEBUG [http-nio-8910-exec-10] [DeploymentAggregator] Processing versions for project 6815745
      212023-02-14 19:15:03,431 DEBUG [http-nio-8910-exec-10] [DeploymentAggregator] 1plans found for matching versions.
      222023-02-14 19:15:03,436 DEBUG [http-nio-8910-exec-10] [DeploymentAggregator] Found 4 versions mentioning the issue key JIR-14
      232023-02-14 19:15:03,436 DEBUG [http-nio-8910-exec-10] [DeploymentAggregator] Processing versions for project 6815745
      242023-02-14 19:15:03,438 DEBUG [http-nio-8910-exec-10] [DeploymentAggregator] 1plans found for matching versions.
      252023-02-14 19:15:03,443 DEBUG [http-nio-8910-exec-10] [DeploymentAggregator] Found 1 versions mentioning the issue key JIR-15
      262023-02-14 19:15:03,444 DEBUG [http-nio-8910-exec-10] [DeploymentAggregator] Processing versions for project 6815745
      272023-02-14 19:15:03,445 DEBUG [http-nio-8910-exec-10] [DeploymentAggregator] 1plans found for matching versions.
      282023-02-14 19:15:03,451 DEBUG [http-nio-8910-exec-10] [DeploymentAggregator] Found 2 versions mentioning the issue key JIR-16
      292023-02-14 19:15:03,452 DEBUG [http-nio-8910-exec-10] [DeploymentAggregator] Processing versions for project 6815745
      302023-02-14 19:15:03,453 DEBUG [http-nio-8910-exec-10] [DeploymentAggregator] 1plans found for matching versions.
      312023-02-14 19:15:03,595 DEBUG [http-nio-8910-exec-19] [DeploymentAggregator] Found 9 versions mentioning the issue key JIR-10
      322023-02-14 19:15:03,596 DEBUG [http-nio-8910-exec-19] [DeploymentAggregator] Processing versions for project 6815745
      332023-02-14 19:15:03,600 DEBUG [http-nio-8910-exec-19] [DeploymentAggregator] 1plans found for matching versions.
      342023-02-14 19:15:03,607 DEBUG [http-nio-8910-exec-19] [DeploymentAggregator] Found 10 versions mentioning the issue key JIR-11
      352023-02-14 19:15:03,608 DEBUG [http-nio-8910-exec-19] [DeploymentAggregator] Processing versions for project 6815745
      362023-02-14 19:15:03,612 DEBUG [http-nio-8910-exec-19] [DeploymentAggregator] 1plans found for matching versions.
      372023-02-14 19:15:03,618 DEBUG [http-nio-8910-exec-19] [DeploymentAggregator] Found 7 versions mentioning the issue key JIR-12
      382023-02-14 19:15:03,619 DEBUG [http-nio-8910-exec-19] [DeploymentAggregator] Processing versions for project 6815745
      392023-02-14 19:15:03,622 DEBUG [http-nio-8910-exec-19] [DeploymentAggregator] 1plans found for matching versions.
      402023-02-14 19:15:03,630 DEBUG [http-nio-8910-exec-19] [DeploymentAggregator] Found 11 versions mentioning the issue key JIR-13
      412023-02-14 19:15:03,630 DEBUG [http-nio-8910-exec-19] [DeploymentAggregator] Processing versions for project 6815745
      422023-02-14 19:15:03,635 DEBUG [http-nio-8910-exec-19] [DeploymentAggregator] 1plans found for matching versions

      Workaround

      No workarounds

      Notes

            Assignee:
            Marcin Gardias
            Reporter:
            Vani
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: