Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-67587

Create build scoped connection broken flag instead of each line

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • logstash-plugin
    • None
    • Jenkins version: 2.204.6
      logstash-plugin version: 2.4.0

      //代码占位符
      
      node("xxx") {
          logstash {
             xxxx
          }
      }
      

       Backgroud

      Above code snippet, show how we use jenkins pipeline on logstash-plugin,  every job is configured to use global decorator.

      It works fine until local logstash TCP server is running into some network issue, which is caused by "Too many open files" socket issue. 

       

      IMPACT

      The connection timeout takes up to 10 minutes to recover for each line of console log, while we has hundreds of builds running at the same time, this gets even worse because each line in every build is stuck, and they blocks each other. It leads to a CI accident.

       

      REQUIREMENT

      Since we use logstash to assist out CI, the logstash/ELK should not affect our main CI business and process, we better set a build scoped connection broken flag for each build, if the connection gets broken, we just skip the log for this build.

       

            jbochenski Jakub Bochenski
            kentchen007 chen kent
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: