On 3/11/2014 11:05 AM, abhishek jain wrote:
hi Shawn,
Thanks for the reply,
Is there a way to optimize RAM or does Solr does automatically. I have
multiple shards and i know i will be querying only 30% of shards most of
time! and i have 6 slaves. so dedicating more slave with 30% most used
shards .
Another question:
Is it advised to serve queries from master or only from slaves? or it
doesnt matter?
You'll have to explain what you mean by 'optimize RAM' before I can
answer that question and have any confidence that I've given you the
information you need.
The OS disk cache is handled by the operating system, not Solr. It is
automatic, and it is very efficient. Some operating systems are better
at it than others, but even the worst of them is pretty good.
For the Java heap, normal usage will eventually allocate the maximum
heap value. Java's garbage collection model is not very well optimized
for large heaps, but it's highly tunable. With good tuning options, it
usually works very well.
Thanks,
Shawn