elasticsearch 集群no known master node
為什么80%的碼農(nóng)都做不了架構(gòu)師?>>> ??
It is usually handled automatically.
If autodiscovery doesn't work. Edit the elastic search config file, by enabling unicast discovery
Node 1:
????cluster.name:?mycluster ????node.name:?"node1" ????node.master:?true ????node.data:?true ????discovery.zen.ping.multicast.enabled:?false ????discovery.zen.ping.unicast.hosts:?["node1.example.com"]Node 2:
????cluster.name:?mycluster ????node.name:?"node2" ????node.master:?false ????node.data:?true ????discovery.zen.ping.multicast.enabled:?false ????discovery.zen.ping.unicast.hosts:?["node1.example.com"]and so on for node 3,4,5. Make node 1 master, and the rest only as data nodes.
Edit:?Please note that by ES rule, if you have?N?nodes, then by convention,?N/2+1?nodes should be masters for fail-over mechanisms They may or may not be data nodes, though.
Also, in case auto-discovery doesn't work, most probable reason is because the network doesn't allow it (and therefore disabled). If too many auto-discovery pings take place across multiple servers, the resources to manage those pings will prevent other services from running correctly.
For ex, think of a 10,000 node cluster and all 10,000 nodes doing the auto-pings.
原文鏈接:http://stackoverflow.com/questions/16821101/how-to-set-up-es-cluster
轉(zhuǎn)載于:https://my.oschina.net/iepac/blog/547755
總結(jié)
以上是生活随笔為你收集整理的elasticsearch 集群no known master node的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Windows环境下maven 安装与
- 下一篇: Curator操作ZooKeeper