阿里云环境搭建Elasticsearch2.3.0集群(不支持多播)

为了保障搜索服务的稳定性,增加了一台机器,将Elasticsearch部署成了集群模式, 部署到生产环境时发现,新的节点并不能被发现,后台发现阿里云并不支持多播,最后只能改为单播的方式配置了,好在之后一切顺利。

下面附上测试环境配置示例:


节点1:
cluster.name: cluster_test
node.name: node-1
node.master: true
node.data: true

http.port : 9200
tcp.port : 9300
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["192.168.1.130"]


节点2:
cluster.name: cluster_test
node.name: node-2
node.master: false
node.data: true

http.port : 9201
tcp.port : 9301
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["192.168.1.130:9300"]


主节点推荐个数 : N / 2 +1  其中1为总的节点数

你可能感兴趣的:(Elasticsearch)