Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-20858

Reduce the default Inactive timeout of remote agents

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • 9.4.0
    • Agents
    • None
    • 61
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Problem

      The socket inactivity timeout of remote agents is 5min this means, an agent can be dead for 5 mins before Bamboo will close the transport. For this, one single bamboo agent terminated non-gracefully will within minutes lead to a disconnect of all bamboo agents due to the ActiveMQ broker blocking all queues after 5 min of the event if the dead transport is used.

      This was discussed in the community also

      https://community.atlassian.com/t5/Answers-Developer-Questions/Tuning-AMQ-for-Large-Bamboo-Instances/qaq-p/471253

      Suggestion

      Possible reduction of the following defaults may be useful;

      • maxInactivityDuration (in bamboo.cfg.xml) from 5min to 90s
      • Introduce a socket timeout on the transport of 45s

      Example Broker URI configuration:

      nio://0.0.0.0:54663?wireFormat.maxInactivityDuration=90000&transport.soWriteTimeout=45000
      

      If using bamboo.cfg.xml:

      nio://0.0.0.0:54663?wireFormat.maxInactivityDuration=90000&transport.soWriteTimeout=45000
      

       

            851f15845f55 Mateusz Szmal
            voseghale VICTOR-OSEGHALE
            Votes:
            9 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: