1、max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]
解决方法:
切换到root用户,编辑sysctl.conf配置文件
vi /etc/sysctl.conf
添加如下内容
vm.max_map_count=655360
运行命令,生效参数
sysctl -p
2、max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
解决方法:
切换root用户,编辑limits.conf配置文件
vi /etc/security/limits.conf
添加如下内容
* soft nofile 65536
* hard nofile 131072
* soft memlock 2048
* hard memlock 2048
注:
soft nproc:单个用户可用的最大进程数量(超过会警告)
hard nproc:单个用户可用的最大进程数量(超过会报错)
soft nofile:可打开的文件描述符的最大数(超过会警告)
hard nofile:可打开的文件描述符的最大数(超过会报错)
3、max number of threads [1024] for user [es] is too low, increase to at least [4096]
解决方法:
切换到root用户,编辑limits.d下到90-nproc.conf配置文件
vi /etc/security/limits.d/90-nproc.conf
修改配置为
* soft nproc 4096
root soft nproc unlimited
4、system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
解决方法:
编辑elasticsearch.yml配置文件,将bootstrap.system_call_filter修改为false
bootstrap.system_call_filter: false