SolrCloud
http://wiki.apache.org/solr/SolrCloud
BUT : SolrCloud is currently under development!!!!!!!!!!
ZooKeeperIntegration
http://wiki.apache.org/solr/ZooKeeperIntegration
BUT: it will be in Solr4.0
THEN HOW!!!!!!!!!!!
http://wiki.apache.org/solr/LBHttpSolrServer
How does the Load Balancing happen ?
This is a dumb round-robin Load Balancing .First request goes to 'host1' then to 'host2' and then'host3' and it starts with 'host1' again.
How does failover happen?
LB!HttpSolrServer does not keep pinging the servers to know if they are alive. If a request to a server fails by an Exception then the host is taken off the list of live servers and moved to a 'dead server list' and the request is resent to the next live server. This process is continued till it tries all the live servers. If atleast one server is alive the request succeeds , and if not it fails.
How does it know if a server has come back up ?
LB!HttpSolrServer keeps pinging the dead servers once a minute (default val) to find if it is alive. The interval can be changed using
Note: from envykok
, but HAProxy is only able to run in linux and unix platform.