Thanks for your reply. I have a follow up question. Why is a load balancer
needed? Isn't that the job of zookeeper to loadbalance queries across solr
nodes?

I was under the impression that you send query to zookeeper and it handles
the rest and sends the response back. Can you please enlighten .me on that
one.

Thank you

On Fri, Jun 29, 2018 at 7:19 PM, Shalin Shekhar Mangar <
shalinman...@gmail.com> wrote:

> You send your queries and updates directly to Solr's collection e.g.
> http://host:port/solr/<your_collection_name>. You can use any Solr node
> for
> this request. If the node does not have the collection being queried then
> the request will be forwarded internally to a Solr instance which has that
> collection.
>
> ZooKeeper is used by Solr's Java client to look up the list of Solr nodes
> having the collection being queried. But if you are using PHP then you can
> probably keep a list of Solr nodes in configuration and randomly choose
> one. A better implementation would be to setup a load balancer and put all
> Solr nodes behind it and query the load balancer URL in your application.
>
> On Sat, Jun 30, 2018 at 7:31 AM Sushant Vengurlekar <
> svengurle...@curvolabs.com> wrote:
>
> > I have a question regarding querying in solrcloud.
> >
> > I am working on php code to query solrcloud for search results. Do I send
> > the query to zookeeper or send it to a particular solr node? How does the
> > querying process work in general.
> >
> > Thank you
> >
>
>
> --
> Regards,
> Shalin Shekhar Mangar.
>

Reply via email to