On 4/18/2016 8:50 PM, Zheng Lin Edwin Yeo wrote:
> Thanks for your explanation.
>
> I have set my segment size to 20GB under the TieredMergePolicy
>
> <mergePolicy class="org.apache.lucene.index.TieredMergePolicy"> <int name=
> "maxMergeAtOnce">10</int> <int name="segmentsPerTier">10</int> <double name=
> "maxMergedSegmentMB">20480</double> </mergePolicy>

That just controls the maximum size of a segment.  This defaults to
5GB.  When segments reach this size, they will not be auto-merged
further.  If you do an optimize, the the max segment size is ignored,
and the whole index will be merged into one segment.

> I do have 192GB of RAM on my server which Solr is running on.

With 1TB of index data on the server, 192GB will not give you optimal
performance, but if what you are getting is good enough for you, then
you probably don't need to rush out and buy more memory.

Thanks,
Shawn

Reply via email to