On 3/11/2015 8:56 AM, SolrUser1543 wrote: > Client application which queries solr needs to increase a number of > simultaneously connections in order to improve performance ( in additional > to get solr results, it needs to get an internal resources like images. ) > But this increment has improved client performance, but caused degradation > in solr . > > what I think is that I need to increase a number of connection in order to > allow to more requests run between solr shards. > > How can I prove that I need? > How can I increase it on tomcat? ( on each shard )
Hopefully this isn't an XY problem. http://people.apache.org/~hossman/#xyproblem To accomplish what you have requested, you will want to increase the maxThreads parameter in the tomcat config. It defaults to 200, we have included a setting of 10000 in the example jetty server. For most installations, a value of 10000 means there is effectively no limit on the number of threads allowed. Solr will behave unpredictably if it is prevented from starting threads, and it is very easy to exceed 200 threads, especially if the container is serving requests for other things besides Solr. To configure more connections to other machines for distributed search, you need to configure the shard handler in your solrconfig.xml file. In particular you need to be worried about maxConnectionsPerHost and maxConnections. https://cwiki.apache.org/confluence/display/solr/Distributed+Requests#DistributedRequests-ConfiguringtheShardHandlerFactory Thanks, Shawn