elasticsearch5.4集群超時

四個節點,有兩個是新增加的節點,兩個老節點間組成集群沒有問題,新增加了兩個節點,無論是四個組成集群

# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when new node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.zen.ping.unicast.hosts: ["10.96.91.208","10.96.91.209","10.96.91.210","10.96.91.211"]
#
# Prevent the "split brain" by configuring the majority of nodes (total number of master-eligible nodes / 2 + 1):
#
discovery.zen.minimum_master_nodes: 3
#
# For more information, consult the zen discovery module documentation.
#

 

還是兩個節點集群(新舊搭配)

# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when new node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.zen.ping.unicast.hosts: ["10.96.91.208","10.96.91.210"]
#
# Prevent the "split brain" by configuring the majority of nodes (total number of master-eligible nodes / 2 + 1):
#
discovery.zen.minimum_master_nodes: 2
#
# For more information, consult the zen discovery module documentation.

  

查看日誌,可以發現是網絡問題。
排查網絡
網卡的網絡配置

cd /etc/sysconfig/network/
more ifcfg-eth0

  

網絡路由配置

more routes

 

網關配置

more /etc/resolv.conf

 

這些配置四台服務器基本都是一樣的。所以不是配置問題
繼續檢查ping 和 traceroute
ping沒有問題
traceroute显示不一樣,發現有了一個空跳。懷疑是防火牆的問題

查看防火牆的狀態

chkconfig --list|grep fire

 

關閉防火牆

cd /etc/init.d/
./SuSEfirewall2_setup stop
./SuSEfirewall2_init stop

 

開機關閉防火牆

chkconfig SuSEfirewall2_setup off
chkconfig SuSEfirewall2_init off

 

至此,解決問題

点赞

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *