ElasticSearch7.6叢集搭建

七勝文狀元兼參謀將軍發表於2020-03-30

ElasticSearch7.6叢集搭建-

  • 單臺搭建方法見上一篇文章 , 叢集部署 單臺操作是一樣的,只需要修改其配置檔案。

ELK分散式日誌收集系統的搭建

2臺伺服器172.168.13.208  和 172.168.13.209

配置檔案分別為


# ---------------------------------- Cluster -----------------------------------
cluster.name: elk
# ------------------------------------ Node ------------------------------------
node.name: master
# ----------------------------------- Paths ------------------------------------
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
# ---------------------------------- Network -----------------------------------
network.host: 0.0.0.0
# --------------------------------- Discovery ----------------------------------
discovery.seed_hosts: ["172.168.13.208", "172.168.13.209"]
cluster.initial_master_nodes: ["master","node-1"]
# ---------------------------------- Various -----------------------------------
#
# Require explicit names when deleting indices:
#
#action.destructive_requires_name: true
http.cors.enabled: true
http.cors.allow-origin: "*"

# ---------------------------------- Cluster -----------------------------------
cluster.name: elk
# ------------------------------------ Node ------------------------------------
node.name: node-1
# ----------------------------------- Paths ------------------------------------
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
# ---------------------------------- Network -----------------------------------
network.host: 0.0.0.0
# --------------------------------- Discovery ----------------------------------

discovery.seed_hosts: ["172.168.13.208", "172.168.13.209"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["master", "node-1"]

# ---------------------------------- Various -----------------------------------
#
# Require explicit names when deleting indices:
#
#action.destructive_requires_name: true
http.cors.enabled: true
http.cors.allow-origin: "*"

相關文章