栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

Elasticsearch服务器发现配置

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Elasticsearch服务器发现配置

面对相同的问题,即节点无法在节点重新启动时选举主节点。

问题在于节点之间的通信。

请确保在elasticsearch日志中,节点重启是否显示

  publish_address {127.0.0.1:9200}  or  publish_address {0.0.0.1:9200}

这意味着当前节点未将其IP地址发布给其他节点,因此即使该节点IP可能存在于 Discovery.zen.ping.unicast.hosts中,*
这些节点也无法识别该节点。
*

解决方案 在elasticsearch.yml中进行以下更改。加

 network.host: _non_loopback:ipv4_ and restart the node. Ensure that the bound address now shows the <IP address>:<port no> and not the localhost.

这意味着现在您的节点是可发现的。使它在群集中可发现的第二步是将节点的ip地址添加到所有主节点的单播主机列表中,以便每当我们有一个新的主节点时,新的主节点就可以发现该节点。

   Add the node IP to the discovery.zen.ping.unicast.hosts    list of hosts of all the masters to make it disoverable. A masterpings all the    nodes present in the unicast list.


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/390986.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号