我有一个solr查询,其qtime为30-40ms。响应时间大约为200ms。
如果看到缓存统计信息,则>
在solrconfig.xml或jetty.xml中是否可以更改任何设置以减少“响应时间”
是否应该进一步增加documentCache / queryresultcache / filtercache的缓存大小?
Solrconfig.xml:
<filterCache class="solr.FastLRUCache" size="1024" initialSize="512" autowarmCount="0"/> <queryResultCache class="solr.LRUCache" size="0" initialSize="1024" autowarmCount="512"/> <documentCache class="solr.LRUCache" size="1024" initialSize="512" autowarmCount="0"/>
Jetty.xml线程池配置:
<Set name="ThreadPool">
<New class="org.mortbay.thread.QueuedThreadPool">
<Set name="minThreads">10</Set>
<Set name="maxThreads">10000</Set>
<Set name="lowThreads">20</Set>
</New>
<!-- Optional Java 5 bounded threadpool with job queue
<New class="org.mortbay.thread.concurrent.ThreadPool">
<Set name="corePoolSize">50</Set>
<Set name="maximumPoolSize">50</Set>
</New>
-->
</Set>
我有一个solr查询,其qtime为30-40ms。响应时间大约为200ms。一次获取800个文档从搜索查询solr版本6.6 Solr Qtime中返回10个字段-〜...
嗨,您碰巧解决了您的问题。我遇到一个总响应时间比145KB响应时间的查询时间高300ms的问题。较小的响应很好,但是对于较大的响应,在客户端测量的qtime与实际响应时间之间会有很大的差异。