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

Ability to change the default replica placement plugin though sysProp

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.2
    • None
    • None

    Description

      The default placement plugin is "Simple", and to change it you need to edit clusterprops.json in zookeeper, as specified in https://solr.apache.org/guide/solr/latest/configuration-guide/replica-placement-plugins.html.

      The proposal is to be able to statically specify the default placement plugin to use as a system property or env.var, e.g.

      solr start -c -Dsolr.defaultPlacementPlugin=affinity 

      or

      SOLR_PLACEMENTPLUGIN_DEFAULT=affinity solr start -c 

      This will only change the default plugin to use instead of 'simple'. If users configure another plugin in clusterprops.json then things will work as today, that the explicitly configured plugin is used instead of the default.

      This makes it easy to spin up Solr in Docker or with the solr-operator, using a different placement plugin default.

      Attachments

        Issue Links

          Activity

            People

              janhoy Jan Høydahl
              janhoy Jan Høydahl
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 5h 20m
                  5h 20m