What version of Solr are you using? Because it seems like you're doing
a lot of stuff that Solr already does for you automatically....

So perhaps a more complete statement of your setup is in order, since
we seem to be talking past each other.

Best
Erick

On Tue, Dec 7, 2010 at 10:24 PM, Mark <[email protected]> wrote:

> Maybe I should explain my problem a little more in detail.
>
> The problem we are experiencing is after a delta-import we notice a
> extremely high load time on the slave machines that just replicated. It goes
> away after a min or so production traffic once everything is cached.
>
> I already have a before/after hook that is in place before/after
> replication takes place. The before hook removes the slave from the cluster
> and then starts to replicate. When its done it calls the after hook and I
> would like to warm up the cache in this method so no users experience
> extremely long wait times.
>
>
> On 12/7/10 4:22 PM, Markus Jelsma wrote:
>
>> XInclude works fine but that's not what your looking for i guess. Having
>> the
>> 100 top queries is overkill anyway and it can take too long for a new
>> searcher
>> to warmup.
>>
>> Depending on the type of requests, i usually tend to limit warming to
>> popular
>> filter queries only as they generate a very high hit ratio at make caching
>> useful [1].
>>
>> If there are very popular user entered queries having a high initial
>> latency,
>> i'd have them warmed up as well.
>>
>> [1]: http://wiki.apache.org/solr/SolrCaching#Tradeoffs
>>
>>  Warning: I haven't used this personally, but Xinclude looks like what
>>> you're after, see: http://wiki.apache.org/solr/SolrConfigXml#XInclude
>>>
>>>
>>>
>>> Best
>>> Erick
>>>
>>> On Tue, Dec 7, 2010 at 6:33 PM, Mark<[email protected]>  wrote:
>>>
>>>> Is there any plugin or easy way to auto-warm/cache a new searcher with a
>>>> bunch of searches read from a file? I know this can be accomplished
>>>> using
>>>> the EventListeners (newSearcher, firstSearcher) but I rather not add
>>>> 100+
>>>> queries to my solrconfig.xml.
>>>>
>>>> If there is no hook/listener available, is there some sort of Handler
>>>> that performs this sort of function? Thanks!
>>>>
>>>

Reply via email to