solr response vs qtime

问题描述 投票:0回答:1

我有一个solr查询,其qtime为30-40ms。响应时间大约为200ms。

  • 一次获取800个文档
  • 从搜索查询返回10个字段
  • solr版本6.6

Solr Qtime - ~30ms

Solr response time - ~200ms

Cache statistics

如果看到缓存统计信息,则>

  • QueryresultCache命中率为〜10%
  • DocumentCache命中率为〜30%
  • FilterCache命中率为〜82%
  • 在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个字段-〜...

solr solrcloud solr6
1个回答
0
投票

嗨,您碰巧解决了您的问题。我遇到一个总响应时间比145KB响应时间的查询时间高300ms的问题。较小的响应很好,但是对于较大的响应,在客户端测量的qtime与实际响应时间之间会有很大的差异。

© www.soinside.com 2019 - 2024. All rights reserved.