From: search engn dev [sachinyadav0...@gmail.com]: > 1 collection : 4 shards : each shard has one master and one replica > total documents : 700 million
Are you using DocValues for your facet fields? What is the approximate number of unique values in your facets and what is their type (string, number...)? Can you give us a sample request that leads to an OOM? > What will be correct approach here, creating 4 shards with 64 gb ram each or > creating 8 shards with 32 gb ram each? Faceting can result in CPU/memory heavy single-threaded calls in Solr when there are a lot of documents. If your main performance problem is latency, go for the 8 shard solution to let more CPUs work at the same time. If you just need to maximize throughput, the difference should not be that big. - Toke Eskildsen