es7.4.0集群部署

其实主要是配置的变化,需要指定下master节点

cluster.name: prod-es

node.name: node1
node.master: true
node.data: true
path.data: /srv/data/elk/elasticsearch
path.logs: /srv/logs/elk/elasticsearch

network.host: 10.100.3.21
http.port: 9200
transport.tcp.port: 9201
cluster.initial_master_nodes: ["node1","node2","node3"]
discovery.zen.ping.unicast.hosts: ["node1","node2","node3"]
discovery.zen.minimum_master_nodes: 2
gateway.recover_after_nodes: 3
gateway.expected_nodes: 3
gateway.recover_after_time: 5m
http.cors.enabled: true
http.cors.allow-origin: "*"
xpack.security.enabled: false
cluster.name: elasticsearch
node.name: es-node1
network.bind_host: 0.0.0.0
network.publish_host: 10.88.132.69
node.master: true
http.port: 9200
transport.tcp.port: 9300
http.cors.enabled: true
http.cors.allow-origin: "*"
node.data: true
cluster.initial_master_nodes: ["10.88.132.69:9300"]
discovery.zen.ping.unicast.hosts: ["10.88.132.69:9300","10.88.132.70:9300","10.88.132.74:9300"]
discovery.zen.minimum_master_nodes: 1
indices.memory.index_buffer_size: 5%
indices.memory.min_index_buffer_size: 24mb
indices.memory.max_index_buffer_size: 100mb
原文地址:https://www.cnblogs.com/DevOpsTechLab/p/12084037.html