lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sandeep Mestry <sanmes...@gmail.com>
Subject Re: commit in solr4 takes a longer time
Date Thu, 02 May 2013 15:53:23 GMT
Hi Vicky,

I faced this issue as well and after some playing around I found the
autowarm count in cache sizes to be a problem.
I changed that from a fixed count (3072) to percentage (10%) and all commit
times were stable then onwards.

<filterCache class="solr.FastLRUCache" size="8192" initialSize="3072"
autowarmCount="10%" />
<queryResultCache class="solr.LRUCache" size="16384" initialSize="3072"
autowarmCount="10%" />
<documentCache class="solr.LRUCache" size="8192" initialSize="4096"
autowarmCount="10%" />

HTH,
Sandeep


On 2 May 2013 16:31, Alexandre Rafalovitch <arafalov@gmail.com> wrote:

> If you don't re-open the searcher, you will not see new changes. So,
> if you only have hard commit, you never see those changes (until
> restart). But if you also have soft commit enabled, that will re-open
> your searcher for you.
>
> Regards,
>    Alex.
> Personal blog: http://blog.outerthoughts.com/
> LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
> - Time is the quality of nature that keeps events from happening all
> at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
> book)
>
>
> On Thu, May 2, 2013 at 11:21 AM, Furkan KAMACI <furkankamaci@gmail.com>
> wrote:
> > What happens exactly when you don't open searcher at commit?
> >
> > 2013/5/2 Gopal Patwa <gopalpatwa@gmail.com>
> >
> >> you might want to added openSearcher=false for hard commit, so hard
> commit
> >> also act like soft commit
> >>
> >>            <autoCommit>
> >>                         <maxDocs>50000</maxDocs>
> >>                         <maxTime>300000</maxTime>
> >>                        <openSearcher>false</openSearcher>
> >>                 </autoCommit>
> >>
> >>
> >>
> >> On Thu, May 2, 2013 at 12:16 AM, vicky desai <vicky.desai@germinait.com
> >> >wrote:
> >>
> >> > Hi,
> >> >
> >> > I am using 1 shard and two replicas. Document size is around 6 lakhs
> >> >
> >> >
> >> > My solrconfig.xml is as follows
> >> > <?xml version="1.0" encoding="UTF-8" ?>
> >> > <config>
> >> >         <luceneMatchVersion>LUCENE_40</luceneMatchVersion>
> >> >         <indexConfig>
> >> >
> >> >
> >> >                 <maxFieldLength>2147483647</maxFieldLength>
> >> >                 <lockType>simple</lockType>
> >> >                 <unlockOnStartup>true</unlockOnStartup>
> >> >         </indexConfig>
> >> >         <updateHandler class="solr.DirectUpdateHandler2">
> >> >                 <autoSoftCommit>
> >> >                         <maxDocs>500</maxDocs>
> >> >                         <maxTime>1000</maxTime>
> >> >                 </autoSoftCommit>
> >> >                 <autoCommit>
> >> >                         <maxDocs>50000</maxDocs>
> >> >                         <maxTime>300000</maxTime>
> >> >                 </autoCommit>
> >> >         </updateHandler>
> >> >
> >> >         <requestDispatcher handleSelect="true" >
> >> >                 <requestParsers enableRemoteStreaming="false"
> >> > multipartUploadLimitInKB="204800" />
> >> >         </requestDispatcher>
> >> >
> >> >         <requestHandler name="standard"
> >> class="solr.StandardRequestHandler"
> >> > default="true" />
> >> >         <requestHandler name="/update"
> class="solr.UpdateRequestHandler"
> >> />
> >> >         <requestHandler name="/admin/"
> >> > class="org.apache.solr.handler.admin.AdminHandlers" />
> >> >         <requestHandler name="/replication"
> >> > class="solr.ReplicationHandler" />
> >> >         <directoryFactory name="DirectoryFactory"
> >> > class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}" />
> >> >         <enableLazyFieldLoading>true</enableLazyFieldLoading>
> >> >         <admin>
> >> >                 <defaultQuery>*:*</defaultQuery>
> >> >         </admin>
> >> > </config>
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > View this message in context:
> >> >
> >>
> http://lucene.472066.n3.nabble.com/commit-in-solr4-takes-a-longer-time-tp4060396p4060402.html
> >> > Sent from the Solr - User mailing list archive at Nabble.com.
> >> >
> >>
>

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