Elasticsearch集群搭建
- 软件版本:elasticsearch-7.6.0-linux-x86_64.tar.gz
- 服务器系统:CentOS Linux release 7.7.1908 (Core)
- java版本:java version “1.8.0_144”
- 内存:32G
主机名 |
地址 |
es01 |
172.19.79.190 |
es02 |
172.19.79.191 |
es03 |
172.19.79.192 |
kibana |
172.19.79.193 |
zk01 |
172.19.79.194 |
zk02 |
172.19.79.195 |
zk03 |
172.19.79.196 |
logstash |
172.19.79.198 |
filebeat |
172.19.79.197 |
准备
cat /etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
* soft nproc 4096
* hard nproc 4096
cat /etc/sysctl.conf
vm.max_map_count = 655360
systemctl stop firewalld
elasticsearch配置
useradd elk
cluster.name: my-test
node.name: es01
path.data: /data/elk/es/data
path.logs: /data/elk/es/logs
network.host: 172.19.79.190
http.port: 9200
discovery.seed_hosts: ["es01", "es02","es03"]
cluster.initial_master_nodes: [