I'm using Haproxy in front of a Solr cloud. I have just two servers in the cloud. My performance test (search only) is significantly faster if one of the servers is down, than if both servers are up - which is not what I would naturally expect :)
When both servers are up, I get a max session rate of 670 per server (total 1340). When only one server is up, I get a max session rate of 1848, resulting in a better overall performance.
I can't figure out what might be going wrong; my config file is listed below.
Thanks for all ideas.
global log 127.0.0.1 local0 log 127.0.0.1 local1 notice maxconn 4096 nbproc 4 user exp group users daemon defaults log global mode http option httplog option dontlognull retries 3 maxconn 2000 balance roundrobin stats enable stats uri /haproxy?stats frontend solr_lb bind localhost:8081 acl master_methods method POST DELETE PUT use_backend master_backend if master_methods default_backend read_backends backend master_backend server solr-a 10.64.173.197:8983 weight 1 maxconn 512 check backend slave_backend server solr-b 10.64.173.198:8983 weight 1 maxconn 512 check backend read_backends server solr-a 10.64.173.197:8983 weight 1 maxconn 512 check server solr-b 10.64.173.198:8983 weight 1 maxconn 512 check