zookeeper cluster管理solrcloud 个人实践

2014-02-19,于测试机器上部署solrcloud;
zk 版本:3.4.5(附件zookeeper2181),solr版本4.4.0(附件solr_v440_5001);
zookeeper集群
由于是自己测试,所谓集群也是放在同一机器的伪集群,部署在10.8.8.80商城QA搜索环境);
1.将zookeeper2181复制成三份(选择奇数个,方便leader election),即zookeeper2182,zookeeper2183;
2.修改 zookeeper_home/conf 目录中的zoo.cfg,简单配置如下:
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial 
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between 
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just 
# example sakes.
dataDir=/home/d139/var/platform/zookeeper2181/data
# the port at which the clients will connect
clientPort=2181
server.1=10.8.8.80:2887:3887
server.2=10.8.8.80:2888:3888
server.3=10.8.8.80:2889:3889

#
# Be sure to read the maintenance section of the 
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1

你可能感兴趣的:(java,linux,zookeeper,Solr,Lucene)