Re: How to verify a document is indexed by all replicas

2015-03-24 Thread Shai Erera
> > You can add a min_rf=true parameter to your indexing > Yeah I read about it, but it doesn't help me as in this case, I'm implementing some monitoring component over a SolrCloud instance, so I have no handle to the indexing client. I would like the monitor to check the replicas and report somet

Re: How to verify a document is indexed by all replicas

2015-03-24 Thread Shalin Shekhar Mangar
Hi Shai, To your original question on how to know if a document has been indexed at all replicas -- You can add a min_rf=true parameter to your indexing request and then Solr will add information to the response about how many replicas gave an ack' to the leader. So if the returned number is equal

Re: How to verify a document is indexed by all replicas

2015-03-24 Thread Shai Erera
Thanks Erick, When a replica is down, no updates are sent to it. When it comes back up, it discovers that it needs to catch-up with the leader. If there are many events it falls back to index replication (slower). During this period of time, is the replica considered ACTIVE or RECOVERING? And, ca

Re: How to verify a document is indexed by all replicas

2015-03-24 Thread Erick Erickson
You can always issue a *:* query, but it'd have to be at least your autoSoftCommit interval ago since the soft commit trigger will have slightly different wall clock times. But it shouldn't be necessary to wait I don't think. Since the indexing request doesn't succeed until the docs have been writ

How to verify a document is indexed by all replicas

2015-03-24 Thread Shai Erera
Hi Is there a recommended, preferably fast, way to check that a document is indexed by all replicas? I currently do that by issuing a search request to each replica, but was wondering if there's a faster way. Even better, is there a way to verify all replicas of a shard are "up-to-date", e.g. by