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 Robert Brown <ro...@intelcompute.com> on 2016/04/14 22:27:41 UTC

HTTP Client Only

Hi,

I have a collection with 2 shards, 1 replica each.

When I send updates, I currently /admin/ping each of the nodes, and then 
pick one at random.

I'm guessing it makes more sense to only send updates to one of the 
leaders, so I'm contemplating getting the collection status instead, and 
filter out the leaders.

Is there anything else I should be aware of, apart from using a Java 
client, etc.

I guess the ping becomes redundant?

Thanks,
Rob




Re: HTTP Client Only

Posted by Jeff Wartes <jw...@whitepages.com>.

If you’re already using java, just use the CloudSolrClient. 
If you’re using the default router, (CompositeId) it’ll figure out the leaders and send documents to the right place for you.

If you’re not using java, then I’d still look there for hints on how to duplicate the functionality.



On 4/14/16, 1:27 PM, "Robert Brown" <ro...@intelcompute.com> wrote:

>Hi,
>
>I have a collection with 2 shards, 1 replica each.
>
>When I send updates, I currently /admin/ping each of the nodes, and then 
>pick one at random.
>
>I'm guessing it makes more sense to only send updates to one of the 
>leaders, so I'm contemplating getting the collection status instead, and 
>filter out the leaders.
>
>Is there anything else I should be aware of, apart from using a Java 
>client, etc.
>
>I guess the ping becomes redundant?
>
>Thanks,
>Rob
>
>
>