zoukankan      html  css  js  c++  java
  • 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


    至此,解决问题

  • 相关阅读:
    [Project Euler] Problem 58
    [Project Euler] Problem 59 Decrption
    [Project Euler] Problem 57
    VS2010 + WinDDK 搭建驱动开发环境
    利用C++模板特性计算各整数类型的最大最小值
    虚表的那些事儿
    ModuleNotFoundError: No module named 'pip._vendor.six'
    OpenCVPython系列之单应性查找对象理论篇
    OpenCVPython系列之背景分离
    OpenCVPython系列之Shi—tomasi拐角检测器
  • 原文地址:https://www.cnblogs.com/moon3/p/11090810.html
Copyright © 2011-2022 走看看