On 1/28/2017 1:21 AM, Amrit Sarkar wrote:
> I would like to understand how the embedded ZK works with Solr. If Xg
> memory is allocated to the Solr installation and we spin up the SolrCloud
> with embedded ZK; what part/percentage of the X is allocated to the ZK or
> is it shared?
>
> If that is known, how can I change the memory settings for the embedded ZK?

It's all one JVM, so it's all one shared heap.  I don't know of any way
within Solr or Zookeeper for it to be configured to specify how much of
the heap it is allowed to use.  Both pieces of software will allocate
whatever they need to do their jobs, assuming the JVM has been
configured with a large enough heap.

You should not be using the embedded zookeeper except for test or demo
purposes.  A production SolrCloud cluster should be configured with
separate zookeeper processes, running on at least three servers.  When
using the embedded zookeeper, it goes down anytime that instance of Solr
does.

Thanks,
Shawn

Reply via email to