lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suresh Pendap <>
Subject Solr Query Performance benchmarking
Date Thu, 27 Apr 2017 23:20:53 GMT
I am trying to perform Solr Query performance benchmarking and trying to measure the maximum
throughput and latency that I can get from.a given Solr cluster.

Following are my configurations

Number of Solr Nodes: 4
Number of shards: 2
replication-factor:  2
Index size: 55 GB
Shard/Core size: 27.7 GB
maxConnsPerHost: 1000

The Solr nodes are VM's with 16 core vCpu and 112GB RAM.  The CPU is 1-1 and it is not overcommitted.

I am generating query load using a Java client program which fires Solr queries read from
a static file.  The client java program is using the Apache Http Client library to invoke
the queries. I have already configured the client to create 300 max connections.

The type of queries are mostly of the below pattern

Max throughput that I get: 12000 to 12500 reqs/sec
95 percentile query latency: 30 to 40 msec

I am measuring the latency and throughput on the client side in my program.  The max throughput
that I am able to get (sum of each individual clients throughput) is 12000 reqs/sec.  I am
running with 4 clients each with 50 threads.  Even if I increase the number of clients, the
throughput still seems to be the same. It seems like I am hitting the maximum capacity of
the cluster or some other limit due to which I am not able to put more stress on the server.

My CPU is hitting 60% to 70%.  I have not been able to increase the CPU usage more than this
even when increasing client threads or generating load with more client nodes.

The memory used is around 16% on all the nodes except on one node I am seeing the memory used
is 41%.

There is hardly any IO happening as it is a read test.

I am wondering what is limiting my throughput, is there some internal thread pool limit that
I am hitting due to which I am not able to increase my CPU/memory usage?

My JVM settings are provided below. I am using G1GC and

-Dlog4j.configuration=file:< file>
-Dsolr.solr.home=<solr home dir>
-Xloggc:<solr gc log file>

I have not customized the Solr Cache values.  The DocumentCache, QueryResultCache, FieldValueCache
everything is using default values.  I read in one of the SolrPerformance documents that it
is better to leave more memory to the Operating system and utilize the OS buffer cache.

Is it the best query throughput that I can extract from this sized cluster and index size

Any ideas is highly appreciated.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message