• 2.379

      Agents re-connect logic is trying to connect hundreds of times per second when using websocket connection type.

      When there is a persistent problem right after the connection is established (ie. agent running on Java 8 and Jenkins on 11), the re-try logic is just generating unnecessary load on the controller.

      Trying to re-connect every 10 seconds (like the inbound tcp re-connection logic does) should be enough.

          [JENKINS-70105] Slow down re-connects when using websockets

          Antonio Muñiz created issue -
          Antonio Muñiz made changes -
          Assignee Original: Jeff Thompson [ jthompson ] New: Antonio Muñiz [ amuniz ]
          Antonio Muñiz made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Antonio Muñiz made changes -
          Remote Link New: This issue links to "PR (Web Link)" [ 28355 ]
          Antonio Muñiz made changes -
          Description Original: Agents re-connect logic is trying to connect hundreds of times per second when using websocket connection type.

          When there is a persistent problem right after the connection is established (ie. agent running on Java 8 and Jenkins on 11), the re-try logic is just generating unnecessary load on the controller.

          Trying to re-connect every 10 seconds ([https://github.com/jenkinsci/remoting/blob/7e9b0dc0846678cdf08717710ba27b0e6e443911/src/main/java/hudson/remoting/Engine.java#L856|http://example.com]) should be enough.
          New: Agents re-connect logic is trying to connect hundreds of times per second when using websocket connection type.

          When there is a persistent problem right after the connection is established (ie. agent running on Java 8 and Jenkins on 11), the re-try logic is just generating unnecessary load on the controller.

          Trying to re-connect every 10 seconds ([https://github.com/jenkinsci/remoting/blob/7e9b0dc0846678cdf08717710ba27b0e6e443911/src/main/java/hudson/remoting/Engine.java#L856|like the inbound tcp re-connection logic does]) should be enough.
          Antonio Muñiz made changes -
          Description Original: Agents re-connect logic is trying to connect hundreds of times per second when using websocket connection type.

          When there is a persistent problem right after the connection is established (ie. agent running on Java 8 and Jenkins on 11), the re-try logic is just generating unnecessary load on the controller.

          Trying to re-connect every 10 seconds ([https://github.com/jenkinsci/remoting/blob/7e9b0dc0846678cdf08717710ba27b0e6e443911/src/main/java/hudson/remoting/Engine.java#L856|like the inbound tcp re-connection logic does]) should be enough.
          New: Agents re-connect logic is trying to connect hundreds of times per second when using websocket connection type.

          When there is a persistent problem right after the connection is established (ie. agent running on Java 8 and Jenkins on 11), the re-try logic is just generating unnecessary load on the controller.

          Trying to re-connect every 10 seconds ([like the inbound tcp re-connection logic does|https://github.com/jenkinsci/remoting/blob/7e9b0dc0846678cdf08717710ba27b0e6e443911/src/main/java/hudson/remoting/Engine.java#L856]) should be enough.
          Antonio Muñiz made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Jesse Glick made changes -
          Issue Type Original: Improvement [ 4 ] New: Bug [ 1 ]
          Basil Crow made changes -
          Released As New: 2.379
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Fixed but Unreleased [ 10203 ]
          Jesse Glick made changes -
          Labels New: lts-candidate
          Alexander Brandes made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Closed [ 6 ]

            amuniz Antonio Muñiz
            amuniz Antonio Muñiz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: