Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support running embedded-zk in "ensemble" mode #2391

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Apr 5, 2024

  1. Revert "SOLR-17153: CloudSolrClient should not throw "Collection not …

    …found" with an out-dated ClusterState (apache#2363)"
    
    This reverts commit 5c399dd.
    gerlowskija committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    1fb376b View commit details
    Browse the repository at this point in the history
  2. Allow embedded-ZK to run in quorum/ensemble mode

    This commit augments our embedded-ZK code to support running embedded-ZK
    in "quorum" or ensemble mode.  Multiple Solr nodes can now all have
    their embedded-ZK's join a multi-node quorum upon startup.  Other than
    Solr and ZK sharing a process, the embedded- ZK ensemble behaves
    identically to one formed of independent processes: nodes can join or
    leave the cluster, etc.
    
    Embedded-ensemble-ZK is enabled any time the `zkQuorumRun` system
    property is present, along with an explicitly specified ZK host string.
    On startup, Solr will identify which host in the zk-conn-string it
    should be (based on admittedly hacky heuristics), and then spins up a
    'ZooKeeperServerEmbedded' instance in-process to join the ensemble. e.g.
    
    ```
    export LH="localhost"
    bin/solr start -p 8983 -z $LH:9983,$LH:9984,$LH:9985 -DzkQuorumRun
    bin/solr start -p 8984 -z $LH:9983,$LH:9984,$LH:9985 -DzkQuorumRun
    bin/solr start -p 8985 -z $LH:9983,$LH:9984,$LH:9985 -DzkQuorumRun
    ```
    
    Some notes:
      - this doesn't (yet) work with ZK's dynamic-ensemble feature, so all
        ZK nodes must be specified in a static ZK conn string provided at
        startup
      - this appears to run best when the security-manager is disabled.
    gerlowskija committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    7f3e980 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2024

  1. Configuration menu
    Copy the full SHA
    88c8da4 View commit details
    Browse the repository at this point in the history