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

Design (JEP) Essentials Instance Client Health Checking

    • Evergreen - Milestone 1

      For Jenkins Essentials, we are going to very often need to determine how healthy a Jenkins instance is. 

      At least for the data Snapshotting/rollback (JENKINS-49406), we will need to quickly decide if we trigger a rollback or not. 

      The health is probably going to be a mix of several aspects, among others, for instance:

      • is Jenkins answering
      • are there (more) warning, or error logs than usual? Overall, did the amount of logs explode?
      • can a build run?
      • ...

      We need to think carefully about that I think, and write the associated JEP for review/feedback.

          [JENKINS-50294] Design (JEP) Essentials Instance Client Health Checking

          Baptiste Mathus created issue -
          Baptiste Mathus made changes -
          Link New: This issue relates to JENKINS-49406 [ JENKINS-49406 ]
          Baptiste Mathus made changes -
          Description Original: For Jenkins Essentials, we are going to very often need to determine how healthy a Jenkins instance is. 

          At least for the data Snapshotting/rollback (JENKINS-49406), we need to quickly decide if we need to rollback or not.

          The _health_ is probably going to be a mix of several aspects, among others, for instance:
           * is Jenkins answering
           * are there (more) warning, or error logs than usual? Overall, did the amount of logs explode?
           * can a build run?
           * ...

          We need to think carefully about that I think, and write the associated JEP for review/feedback.
          New: For Jenkins Essentials, we are going to very often need to determine how healthy a Jenkins instance is. 

          At least for the data Snapshotting/rollback (JENKINS-49406), we will need to quickly decide if we trigger a rollback or not. 

          The _health_ is probably going to be a mix of several aspects, among others, for instance:
           * is Jenkins answering
           * are there (more) warning, or error logs than usual? Overall, did the amount of logs explode?
           * can a build run?
           * ...

          We need to think carefully about that I think, and write the associated JEP for review/feedback.

           
          R. Tyler Croy made changes -
          Assignee Original: R. Tyler Croy [ rtyler ] New: Baptiste Mathus [ batmat ]
          Baptiste Mathus made changes -
          Link New: This issue relates to JENKINS-49805 [ JENKINS-49805 ]
          Baptiste Mathus made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Baptiste Mathus made changes -
          Rank New: Ranked higher

          Baptiste Mathus added a comment - - edited

          https://github.com/jenkins-infra/evergreen/pull/44

          Demo that checking the HTTP status code of the /login URL, and configuring the metrics plugin to expose a jenkinsURL/metrics/evergreen/health-check URL are doable.

          Baptiste Mathus added a comment - - edited https://github.com/jenkins-infra/evergreen/pull/44 Demo that checking the HTTP status code of the /login URL, and configuring the metrics plugin to expose a jenkinsURL/metrics/evergreen/health-check URL are doable.
          Baptiste Mathus made changes -
          Remote Link New: This issue links to "Health checking prototype PR (Web Link)" [ 20375 ]

          So I have tried a bit configuring the equivalent of the metrics XML file using CasC to no avail. So I filed https://github.com/jenkinsci/configuration-as-code-plugin/issues/169 to get feedback from the plugin developers to save some cycles (either it's possible, and they'll tell me what I missed, or it's not and I guess we'll work together to have the metrics plugin supported by casc).

          Baptiste Mathus added a comment - So I have tried a bit configuring the equivalent of the metrics XML file using CasC to no avail. So I filed https://github.com/jenkinsci/configuration-as-code-plugin/issues/169  to get feedback from the plugin developers to save some cycles (either it's possible, and they'll tell me what I missed, or it's not and I guess we'll work together to have the metrics plugin supported by casc).

            batmat Baptiste Mathus
            batmat Baptiste Mathus
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: