Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-14918

add "failIfEmptyCores" option for HealthCheckHandler

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 8.6
    • None
    • None

    Description

      Background

      We are hosting Solr on AWS EC2.
      We have set up Solr to start in systemd and create a core at startup. (The replica type is "pull".)
      I manage those EC2 instances in the AWS AutoScaling Group and use TargetGroup to access Solr via the Application Load Balancer.
      For health checks in TargetGroup, we use the requireHealthyCores option using /api/node/health (henceforth called HealthCheckHandler).

      In most cases this is not a problem.
      However, this can cause additional problems with a rare core creation failure issue at startup.
      If you use the requireHealthyCores option for HealtchCheckHandler, the status will be OK if the core is not there in the first place, so the health check will be OK even though the core is not present (an unusual condition).

      Proposal

      Therefore, we propose to add an option to set the status to Fail if the core does not exist. That way, we can make the health check fail even if the core was not created for some reason.

      We believe this option should only work if the requireHealthyCores option is true.

       

      Translated with www.DeepL.com/Translator (free version)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              imishinist Taisuke Miyazaki
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m