`
blue2048
  • 浏览: 178196 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

elasticsearch 单机部署 集群

 
阅读更多

elasticsearch如果部署在不同的服务器上,处于同一网段,根据默认配置可以成为一个集群

但同一台服务器上,测试集群的时候,发现实例发现不了其他的实例,追究原因,发现应该是ip地址的问题,默认启动实例,ip是一串0,修改配置文件如下(见附件)

 

 

 

 

  • 大小: 79 KB
  • 大小: 89.5 KB
0
0
分享到:
评论
2 楼 blue2048 2014-08-27  
看看两个实例的端口要不一样,另外,看看日志提示有没有错误
1 楼 mtsw2011 2014-08-20  
我改了
# Set the bind address specifically (IPv4 or IPv6):
#
network.bind_host: 192.168.1.112

# Set the address other nodes will use to communicate with this node. If not
# set, it is automatically derived. It must point to an actual IP address.
#
network.publish_host: 192.168.1.112

# Set both 'bind_host' and 'publish_host':
#
network.host: 192.168.1.112


112是我部署两个实例的机器,
cluster.name: es_01都为es_01
启动后仍然不能成为一个集群

相关推荐

Global site tag (gtag.js) - Google Analytics