You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Stijn Vanhoorelbeke <st...@gmail.com> on 2011/02/10 23:08:14 UTC

QTime Solr Query

Hi,

I've done some stress testing onto my solr system ( running in the ec2 cloud
).
>From what I've noticed during the tests, the QTime drops to just 1 or 2 ms (
on a index of ~2 million documents ).

My first thought pointed me to the different Solr caches; so I've disabled
all of them. Yet QTime stays low.
Then the Lucence internal Field Cache came into sight. This cache is hidden
deep into Lucence and is not configurable trough Solr.

To cope with this I thought I would lower the memory allocated to Solr -
that way a smaller cache is forced.
But yet QTime stays low.

Can Solr be so fast to retrieve queries in just 1/2 ms - even if I only
allocate 100 Mb to Solr?

Re: QTime Solr Query

Posted by didier deshommes <df...@gmail.com>.
On Thu, Feb 10, 2011 at 4:08 PM, Stijn Vanhoorelbeke
<st...@gmail.com> wrote:
> Hi,
>
> I've done some stress testing onto my solr system ( running in the ec2 cloud
> ).
> From what I've noticed during the tests, the QTime drops to just 1 or 2 ms (
> on a index of ~2 million documents ).
>
> My first thought pointed me to the different Solr caches; so I've disabled
> all of them. Yet QTime stays low.
> Then the Lucence internal Field Cache came into sight. This cache is hidden
> deep into Lucence and is not configurable trough Solr.
>
> To cope with this I thought I would lower the memory allocated to Solr -
> that way a smaller cache is forced.
> But yet QTime stays low.

When stress-testing Solr, I usually flush the OS cache also. This is
the command to do it on linux:

# sync; echo 3 > /proc/sys/vm/drop_caches

didier
>
> Can Solr be so fast to retrieve queries in just 1/2 ms - even if I only
> allocate 100 Mb to Solr?
>

Re: QTime Solr Query

Posted by Erick Erickson <er...@gmail.com>.
Let's see what the queries are. If you're searching for single
terms that don't match many docs that's one thing. If you're looking
at many terms that match many documents, I'd expect larger numbers.

Unless you're hitting the document cache and not searching at all....

Best
Erick

On Thu, Feb 10, 2011 at 5:08 PM, Stijn Vanhoorelbeke
<st...@gmail.com> wrote:
> Hi,
>
> I've done some stress testing onto my solr system ( running in the ec2 cloud
> ).
> From what I've noticed during the tests, the QTime drops to just 1 or 2 ms (
> on a index of ~2 million documents ).
>
> My first thought pointed me to the different Solr caches; so I've disabled
> all of them. Yet QTime stays low.
> Then the Lucence internal Field Cache came into sight. This cache is hidden
> deep into Lucence and is not configurable trough Solr.
>
> To cope with this I thought I would lower the memory allocated to Solr -
> that way a smaller cache is forced.
> But yet QTime stays low.
>
> Can Solr be so fast to retrieve queries in just 1/2 ms - even if I only
> allocate 100 Mb to Solr?
>