janhoy commented on code in PR #2391: URL: https://github.com/apache/solr/pull/2391#discussion_r3217855127
########## solr/solr-ref-guide/modules/deployment-guide/pages/zookeeper-ensemble.adoc: ########## @@ -546,6 +546,68 @@ set SOLR_OPTS=%SOLR_OPTS% -Djute.maxbuffer=0x200000 ==== ====== +[[embedded-zookeeper-ensemble]] +== Embedded ZooKeeper Ensemble (Experimental) + +WARNING: This feature is *experimental / alpha* and is not suitable for production use. +The configuration interface may change without notice in future Solr releases. + +Normally, Solr's embedded ZooKeeper runs in "standalone" mode and cannot tolerate node failures. +Starting in Solr 10.1, it is possible to run Solr nodes where each node's embedded ZooKeeper participates in a multi-node quorum (ensemble). +This allows a self-contained SolrCloud cluster without a separate ZooKeeper deployment — useful for development, testing, or small low-stakes clusters. + +=== How It Works + +Each Solr node that has the `zookeeper_quorum` xref:node-roles.adoc[node role] set to `on` will start an embedded `ZooKeeperServerEmbedded` instance on startup. +Solr identifies which host in the ZK connection string it corresponds to (by matching host+port) and assigns it a ZooKeeper `myid`. + +Port scheme used by each node: + +|=== +|Port |Formula |Example (Solr on 8983) + +|Solr HTTP +|`solr_port` +|8983 + +|ZK client +|`solr_port + 1000` +|9983 + +|ZK quorum peer +|`zk_client_port + 1` +|9984 + +|ZK leader election +|`zk_client_port + 2` +|9985 Review Comment: I modified the default ports used for quorum peer and leader election ports. They were something like client-port minus 3000 and minus 4000. Now they are +1 and +2. I feel we spread our port numbers too wide. But then after the change we got another problem that we could not start three test solr nodes on 8983, 8984, 8985, since the first one would occupy port 9983, 9984, 9985 for zookeeper. I am willing to revert the +1, +2 to something else, but -3000 and -4000 seemed a bit arbitrary, why not +2000 and +3000 since client-port is +1000? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
