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

Support for Cluster Singleton plugins in solr.xml

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.5
    • Plugin system
    • None

    Description

      How-to: use <clusterSingleton name="myClusterSingleton" class="com.acme.MyClusterSingleton"/>
      And set the config solr.cluster.plugin.edit.enabled to false, thus disabling mutable cluster plugins in ZK.


      This issue is related to, and follows on from SOLR-15782.

      It should be possible to install and manage the configuration of a cluster singleton plugin in an immutable deployment of SolrCloud. SOLR-15782 discusses the merits of declaring such plugin configurations in solr.xml, and it's implementation provides scope to declare the Replica Placement plugin there.

       

      While this approach could work generally for plugins with associated factories that are used to create instances of the plugin when required at runtime  (like the Replica Placement Plugin), it does not provide a solution for cluster singleton plugins which are only instantiated by having a configuration declared in the ZooKeeper cluster properties, which are managed solely by invocation of the /cluster/plugin edit APIs.

      It is undesirable to invoke the /cluster/plugin edit APIs with an immutable deployment, and instead any modification to the cluster singleton configurations should occur via a new deployment with the changes declared in solr.xml

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pmcarthur Paul McArthur
              Votes:
              1 Vote for this issue
              Watchers:
              6 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 - 6h 10m
                  6h 10m