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 插件:

转载于:https://www.cnblogs.com/zhaoyangjian724/p/6199452.html

你可能感兴趣的:(elk 添加节点)