1.unable to install syscall filter或者bootstrap出现问题,可能是Linux内核版本过低,解决方法:
修改
/elasticsearch/config
下的elasticsearch.yml文件,添加:
bootstrap.system_call_filter: false
之后重启
2.max file descriptors for elasticsearch process is too low
权限不足,解决方法:
使用root用户登录,修改
/etc/security/limits.conf
添加:
* soft nofile 65536
* hard nofile 131072
* soft nproc 4096
* hard nproc 4096
3.max number of threads for user is too low,
线程数不够,需要修改:
/etc/security/limits.d/90-nproc.conf
将* soft nproc 1024改为* soft nproc 4096
4.max virtual memory areas vm.max_map_count likely too low
进程虚拟内存不够,解决方法:
修改/etc/sysctl.conf 文件,添加
vm.max_map_count=655360
之后执行
sysctl -p
本文针对Elasticsearch运行中常见的配置问题提供了解决方案,包括内核版本、文件描述符限制、用户线程数及虚拟内存区域数量不足等,通过修改配置文件和系统参数来提升Elasticsearch的稳定性和性能。
1101

被折叠的 条评论
为什么被折叠?



