We warm the file buffers before starting Solr to avoid spending time waiting 
for disk IO. The script is something like this:

for core in core1 core2 core3
do
    find /apps/solr/data/${core}/index -type f | xargs cat > /dev/null
done

It makes a big difference in the first few minutes of service. Of course, it 
helps if you have enough RAM to hold the entire index.

wunder

On Aug 22, 2013, at 10:28 AM, Jean-Sebastien Vachon wrote:

> I was afraid someone would tell me that... thanks for your input
> 
>> -----Original Message-----
>> From: Toke Eskildsen [mailto:t...@statsbiblioteket.dk]
>> Sent: August-22-13 9:56 AM
>> To: solr-user@lucene.apache.org
>> Subject: Re: Flushing cache without restarting everything?
>> 
>> On Tue, 2013-08-20 at 20:04 +0200, Jean-Sebastien Vachon wrote:
>>> Is there a way to flush the cache of all nodes in a Solr Cloud (by
>>> reloading all the cores, through the collection API, ...) without
>>> having to restart all nodes?
>> 
>> As MMapDirectory shares data with the OS disk cache, flushing of
>> Solr-related caches on a machine should involve
>> 
>> 1) Shut down all Solr instances on the machine
>> 2) Clear the OS read cache ('sudo echo 1 > /proc/sys/vm/drop_caches' on
>> a Linux box)
>> 3) Start the Solr instances
>> 
>> I do not know of any Solr-supported way to do step 2. For our
>> performance tests we use custom scripts to perform the steps.
>> 
>> - Toke Eskildsen, State and University Library, Denmark
>> 
>> 
>> -----
>> Aucun virus trouvé dans ce message.
>> Analyse effectuée par AVG - www.avg.fr
>> Version: 2013.0.3392 / Base de données virale: 3209/6563 - Date: 09/08/2013
>> La Base de données des virus a expiré.

--
Walter Underwood
wun...@wunderwood.org



Reply via email to