es 问题

本文介绍了Elasticsearch在配置过程中遇到的常见问题及其解决方法,包括如何避免以root身份运行、调整系统限制以满足Elasticsearch的需求、解决系统调用过滤失败等问题。

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

1,elasticsearch can not run as root

groupadd es
useradd es -g es
runuser es
./elasticserch

2, 修改配置后运行,es file descriptors [4096]等等,需要修改系统限制

ERROR: bootstrap checks failed
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
max number of threads [1024] for user [es] is too low, increase to at least [2048]
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
ulimit -a
ulimit -n 32000
vi /etc/security/limits.conf
* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096

退出runuser,重新进入runuser es

3、system call filters failed to install;

elasticsearch.yml
memory下
bootstrap.memory_lock: false
bootstrap.system_call_filter: false

4、max number of threads [1024]

vi /etc/security/limits.d/90-nproc.conf
* soft nproc 2048

5、max virtual memory areas vm.max_map_count [65530] likely too low

vi /etc/sysctl.conf
vm.max_map_count=655360
sysctl -p

6、每个es实例不要超过32G,Don’t Cross 32 GB!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值