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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM