zoukankan      html  css  js  c++  java
  • elk 添加节点

    elk 添加节点:
    
    
    cluster.name: es_cluster
    node.name: node03
    path.data: /elk/elasticsearch/data
    path.logs: /elk/elasticsearch/logs
    network.host: 192.168.32.82
    network.port: 9200
    
    zjtest7-haproxy:/usr/local/elasticsearch-2.3.4/config# mkdir -p /elk/elasticsearch/data
    zjtest7-haproxy:/usr/local/elasticsearch-2.3.4/config# mkdir -p  /elk/elasticsearch/logs
    zjtest7-haproxy:/usr/local/elasticsearch-2.3.4/config# groupadd elk
    zjtest7-haproxy:/usr/local/elasticsearch-2.3.4/config# useradd -m -g elk elk
    zjtest7-haproxy:/usr/local/elasticsearch-2.3.4/config# passwd elk
    
    
    
    zjtest7-haproxy:/usr/local/elasticsearch-2.3.4/config# chown -R elk:elk /usr/local/elasticsearch-2.3.4
    zjtest7-haproxy:/usr/local/elasticsearch-2.3.4/config# chown -R elk:elk /elk
    
    
    3 4 . 设置新节点被启动时能够发现的主节点列表(主要用于不同网段机器连接): 
    
    
    discovery.zen.ping.unicast.hosts: ["host1", "host2:port", "host3[portX-portY]"]
    
    
    # action.destructive_requires_name: true
    cluster.name: es_cluster
    node.name: node03
    path.data: /elk/elasticsearch/data
    path.logs: /elk/elasticsearch/logs
    network.host: 192.168.32.82
    network.port: 9200
    discovery.zen.ping.unicast.hosts: ["192.168.32.80", "192.168.32.81","192.168.32.82"]
    
    
    
    需要加上主节点,所有节点通过主节点通信的
    
    
    
    安装head 插件:

  • 相关阅读:
    Cocos2dx隐藏iOS7状态栏】通过添加Plist Key隐藏iOS7状态栏
    数论
    Large Division(大数取余模板)
    CodeForces
    2019山东第十届acm省赛 c Wandering Robot 即zoj4115
    CF1157A. Reachable Numbers
    E. Mishap in Club (CF 245E)
    ATcoder Big Array
    CF987B
    CF1013B And
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13350450.html
Copyright © 2011-2022 走看看