epugh commented on code in PR #2391: URL: https://github.com/apache/solr/pull/2391#discussion_r3241382915
########## solr/solr-ref-guide/modules/deployment-guide/pages/zookeeper-ensemble.adoc: ########## @@ -589,16 +589,17 @@ The ZK connection string must list all nodes' ZK client ports (`solr_port + 1000 All three nodes must be started before the quorum can elect a leader and become operational. NOTE: On a single machine, each node needs distinct ports. Because each ZK instance also binds to `zk_client_port+1` (quorum peer) and `zk_client_port+2` (leader election), Solr ports must be spaced *at least 1001 apart* to avoid collisions. +When nodes share the same working directory, also set `solr.zookeeper.server.datadir` to a distinct path per node to avoid ZooKeeper data directory conflicts. [source,bash] ---- export LH="localhost" ZK_HOST="$LH:21000,$LH:31000,$LH:41000" ROLES="data:on,overseer:allowed,zookeeper_quorum:on" -bin/solr start -p 20000 -z "$ZK_HOST" -Dsolr.node.roles="$ROLES" -bin/solr start -p 30000 -z "$ZK_HOST" -Dsolr.node.roles="$ROLES" -bin/solr start -p 40000 -z "$ZK_HOST" -Dsolr.node.roles="$ROLES" +bin/solr start -p 20000 -z "$ZK_HOST" -Dsolr.node.roles="$ROLES" -Dsolr.zookeeper.server.datadir=zoo_home_1 Review Comment: is this really better? What if we did soemthing like `./blah/blah/zoo_home/localhost:21000` and `./blah/blah/zoo_home/localhost:31000` and ``./blah/blah/zoo_home/localhost:41000`, and generated it. I don't think the vast majority of folks even want to think about zook_home! -- 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]
