ELK(4)——elasticsearch分布式部署
程序员文章站
2022-06-04 10:13:11
...
以相同的方法再安装两个ES节点,配置如下:
节点1:/etc/elasticsearch/elasticsearch.yml
:
cluster.name: my-es
node.name: server13
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
network.host: 172.25.0.13
http.port: 9200
http.cors.enabled: true
http.cors.allow-origin: "*"
discovery.seed_hosts: ["server13", "server14", "server15"]
在原来基础上添加发现节点:
节点2:
grep -v ^# /etc/elasticsearch/elasticsearch.yml
cluster.name: my-es
node.name: server14
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
network.host: 172.25.0.14
http.port: 9200
discovery.seed_hosts: ["server13", "server14", "server15"]
节点3:
grep -v ^# /etc/elasticsearch/elasticsearch.yml
cluster.name: my-es
node.name: server15
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
network.host: 172.25.0.15
http.port: 9200
discovery.seed_hosts: ["server13", "server14", "server15"]
测试:
推荐阅读
-
ELK-elasticsearch-6.3.2部署
-
ELK日志分析系统(4)-elasticsearch数据存储
-
docker-compose 部署ELK(logstash->elasticsearch->kibana)
-
docker-compose 部署ELK(logstash->elasticsearch->kibana)
-
ELK(4)——elasticsearch分布式部署
-
Python信息系统(Scrapy分布式+Django前后端)-4.Gerapy爬虫分布式部署
-
hadoop伪分布式部署(4)
-
分布式实时日志分析解决方案 ELK 部署架构
-
分布式实时日志分析解决方案 ELK 部署架构
-
ELK-elasticsearch-6.3.2部署