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 "Buttler, David" <bu...@llnl.gov> on 2012/08/16 20:00:37 UTC

solr 4 degraded behavior failure

Hi all,
I am testing out the could features in Solr 4, and I have a observation about the behavior under failure.

Following the cloud tutorial, I set up a collection with 2 shards.  I started 4 servers (so each shard is replicated twice).  I added the test documents, and everything works fine.  If I kill one or two servers, everything continues to work.  However, when three servers are killed, zero results are returned.  This is an improvement over previous versions of the cloud branch where having missing shards would result in an error, but I would have expected fewer results rather than zero results.

It turns out that there is a parameter that can be added to a query to get degraded results, but it is not described on the Solr cloud page.  It is on the DistributedSearch page, but it is poorly defined, and difficult to locate starting from the cloud page.

The way to get degraded results is to append:
shards.tolerant=true
to your Solr query.

Dave





RE: solr 4 degraded behavior failure

Posted by Chris Hostetter <ho...@fucit.org>.
: Is there a way to make the shards.tolerant=true behavior the default behavior?

look at the comments in the example solrconfig.xml about adding "defaults" 
paramaters to your request handler configuration.



-Hoss

RE: solr 4 degraded behavior failure

Posted by "Buttler, David" <bu...@llnl.gov>.
Is there a way to make the shards.tolerant=true behavior the default behavior?

-----Original Message-----
From: Buttler, David [mailto:buttler1@llnl.gov] 
Sent: Thursday, August 16, 2012 11:01 AM
To: solr-user@lucene.apache.org
Subject: solr 4 degraded behavior failure

Hi all,
I am testing out the could features in Solr 4, and I have a observation about the behavior under failure.

Following the cloud tutorial, I set up a collection with 2 shards.  I started 4 servers (so each shard is replicated twice).  I added the test documents, and everything works fine.  If I kill one or two servers, everything continues to work.  However, when three servers are killed, zero results are returned.  This is an improvement over previous versions of the cloud branch where having missing shards would result in an error, but I would have expected fewer results rather than zero results.

It turns out that there is a parameter that can be added to a query to get degraded results, but it is not described on the Solr cloud page.  It is on the DistributedSearch page, but it is poorly defined, and difficult to locate starting from the cloud page.

The way to get degraded results is to append:
shards.tolerant=true
to your Solr query.

Dave