janhoy commented on code in PR #2391: URL: https://github.com/apache/solr/pull/2391#discussion_r3242919339
########## 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: The multi solr on single host is mostly for dev/test, so nice to have but not front and center? At least, now the zoo-data folder is configurable if folks want to place it somewhere special. But maybe we should also allow auto unique data folder through property? Also the zoo-config folder (defaulting to SOLR_HOME) needs the same... -- 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]
