日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

elasticsearch 集群no known master node

發布時間:2025/3/17 编程问答 14 豆豆
生活随笔 收集整理的這篇文章主要介紹了 elasticsearch 集群no known master node 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

為什么80%的碼農都做不了架構師?>>> ??

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

轉載于:https://my.oschina.net/iepac/blog/547755

總結

以上是生活随笔為你收集整理的elasticsearch 集群no known master node的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。