Re: [poll] which loadbalancer are you using for SolrCloud

2018-03-02 Thread Shawn Heisey

On 3/2/2018 9:11 AM, David Hastings wrote:

Ill have to take a look at HAProxy.  How much faster than nginx is it?


I know very little about nginx.

Here's some information about haproxy performance.  It's information 
they provide themselves, so configure your grain of salt accordingly. :)


http://www.haproxy.org#perf
http://www.haproxy.org/10g.html

Thanks,
Shawn



Re: [poll] which loadbalancer are you using for SolrCloud

2018-03-02 Thread Daniel Carrasco
I use HAProxy, because is much more configurable than Nginx and I can send
commands to solr collection and search for text to check if the node is
healthy.

Nginx is very fast too, but health check are worst than HAProxy.

Greetings!!

2018-03-02 17:11 GMT+01:00 David Hastings :

> Ill have to take a look at HAProxy.  How much faster than nginx is it?
>
> To answer the question, I personally use nginx for load balancing/failovers
> and its been good, use the same nginx servers to load balance a Galera
> cluster as well.
>
> On Fri, Mar 2, 2018 at 11:09 AM, Shawn Heisey 
> wrote:
>
> > On 3/2/2018 6:13 AM, Bernd Fehling wrote:
> >
> >> I would like to poll for the loadbalancer you are using for SolrCloud.
> >>
> >> Are you using a loadbalancer for SolrCloud?
> >>
> >> If yes, which one (SolrJ, HAProxy, Varnish, Nginx,...) and why?
> >>
> >
> > I use haproxy for Solr -- not SolrCloud.  It is an amazing and FAST piece
> > of software, without the overhead of a full webserver (apache, nginx).
> It
> > also has zero cost, which is far more attractive than hardware load
> > balancers, and can do anything I've seen a hardware load balancer do.
> With
> > the presence of another piece of software (such as pacemaker) you can
> even
> > have hardware redundancy for the load balancer.
> >
> > Most of my clients talking to Solr are Java, so they use
> > HttpSolrClient/HttpSolrServer from SolrJ, connecting to the load
> balancer.
> >
> > For SolrCloud, if your clients are Java, you don't need a load balancer,
> > because the client (CloudSolrClient in SolrJ) talks to the entire cluster
> > and dynamically adjusts to changes in clusterstate.
> >
> > Thanks,
> > Shawn
> >
> >
>



-- 
_

  Daniel Carrasco Marín
  Ingeniería para la Innovación i2TIC, S.L.
  Tlf:  +34 911 12 32 84 Ext: 223
  www.i2tic.com
_


Re: [poll] which loadbalancer are you using for SolrCloud

2018-03-02 Thread David Hastings
Ill have to take a look at HAProxy.  How much faster than nginx is it?

To answer the question, I personally use nginx for load balancing/failovers
and its been good, use the same nginx servers to load balance a Galera
cluster as well.

On Fri, Mar 2, 2018 at 11:09 AM, Shawn Heisey  wrote:

> On 3/2/2018 6:13 AM, Bernd Fehling wrote:
>
>> I would like to poll for the loadbalancer you are using for SolrCloud.
>>
>> Are you using a loadbalancer for SolrCloud?
>>
>> If yes, which one (SolrJ, HAProxy, Varnish, Nginx,...) and why?
>>
>
> I use haproxy for Solr -- not SolrCloud.  It is an amazing and FAST piece
> of software, without the overhead of a full webserver (apache, nginx).  It
> also has zero cost, which is far more attractive than hardware load
> balancers, and can do anything I've seen a hardware load balancer do.  With
> the presence of another piece of software (such as pacemaker) you can even
> have hardware redundancy for the load balancer.
>
> Most of my clients talking to Solr are Java, so they use
> HttpSolrClient/HttpSolrServer from SolrJ, connecting to the load balancer.
>
> For SolrCloud, if your clients are Java, you don't need a load balancer,
> because the client (CloudSolrClient in SolrJ) talks to the entire cluster
> and dynamically adjusts to changes in clusterstate.
>
> Thanks,
> Shawn
>
>


Re: [poll] which loadbalancer are you using for SolrCloud

2018-03-02 Thread Shawn Heisey

On 3/2/2018 6:13 AM, Bernd Fehling wrote:

I would like to poll for the loadbalancer you are using for SolrCloud.

Are you using a loadbalancer for SolrCloud?

If yes, which one (SolrJ, HAProxy, Varnish, Nginx,...) and why?


I use haproxy for Solr -- not SolrCloud.  It is an amazing and FAST 
piece of software, without the overhead of a full webserver (apache, 
nginx).  It also has zero cost, which is far more attractive than 
hardware load balancers, and can do anything I've seen a hardware load 
balancer do.  With the presence of another piece of software (such as 
pacemaker) you can even have hardware redundancy for the load balancer.


Most of my clients talking to Solr are Java, so they use 
HttpSolrClient/HttpSolrServer from SolrJ, connecting to the load balancer.


For SolrCloud, if your clients are Java, you don't need a load balancer, 
because the client (CloudSolrClient in SolrJ) talks to the entire 
cluster and dynamically adjusts to changes in clusterstate.


Thanks,
Shawn