epugh commented on code in PR #2391:
URL: https://github.com/apache/solr/pull/2391#discussion_r3243570062


##########
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:
   Yeah, I think the whole point of this embedded mode is that people don't 
need to think about it.   I think if "I want to do it somewhere special" then 
that leads you more towards the "I will set up my own zk ensemble"...   Just 
thinking from the perspective of a non Solr expert...  This feature is really 
going to be a hit among the novices to Solr who don't want to think about Cloud 
architectures ;-).



-- 
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]

Reply via email to