一、系统信息
操作系统版本:CentOS Linux release 8.4.2105
elasticsearch版本: 8.6.1
机器信息:
主机名 | ip地址 | CPU | 内存(G) | 数据盘 |
---|---|---|---|---|
es01 | 192.168.205.25 | 16 | 32 | /data/(500G) |
es02 | 192.168.205.26 | 16 | 32 | /data/(500G) |
es03 | 192.168.205.27 | 16 | 32 | /data/(500G) |
二、操作系统初始化配置
1、关闭防火墙和selinux
systemctl stop firewalld && systemctl disable firewalld
setenforce 0
sed -i 's/^SELINUX=enforcing$/SELINUS=disabled/' /etc/selinux/config
2、操作系统参数优化
1)设置进程数和文件句柄数配置
vim /etc/security/limits.conf,在文件结尾添加如下配置
* soft nproc 131072
* hard nproc 131072
* soft nofile 131072
* hard nofile 131072
其中第一列*表示所有用户