Load Balance + Fault Tolerance with Solr 3.1

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

 

Load Balance we also can use 

HAProxy

, but HAProxy is only able to run in linux and unix platform.

http://haproxy.1wt.eu/#plat

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值