linux部署elasticsearch6.x可能遇到的问题

本文介绍了当Elasticsearch启动失败时,如何调整系统配置来解决问题,包括文件描述符限制、最大线程数、虚拟内存区域数量及系统调用过滤器的配置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[4] bootstrap checks failed
[1]: max file descriptors [65535] for elasticsearch process is too low, increase to at least [65536]
[2]: max number of threads [1024] for user [esuser] is too low, increase to at least [4096]
[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[4]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

1.[1]: max file descriptors [65535] for elasticsearch process is too low, increase to at least [65536]

sudo vi /etc/security/limits.conf
修改如下:
* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096

2.[2]:max number of threads [1024] for user [esuser] is too low, increase to at least [4096]

sudo vi /etc/security/limits.d/90-nproc.conf
配置如下:
*          soft    nproc     4096
root       soft    nproc     unlimited

3.[3]max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

sudo vi /etc/sysctl.conf
配置如下:
vm.max_map_count=262144
配置保存后执行:
sudo sysctl -p


4.[4] bootstrap checks failed

[4]system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

sudo vi elasticsearch.yml
添加如下配置:
bootstrap.memory_lock: false
bootstrap.system_call_filter: false

说明:如果以root身份登录,以上所有操作可以直接执行vi 命令,不用加sudo,直接执行 vi /etc/security/limits.conf 等

以上关于线程数和内存等信息的配置,如果服务器内存充足,可适当增大,以免反复修改


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值