1. 文件描述符

原文链接 : https://www.elastic.co/guide/en/elasticsearch/reference/current/file-descriptors.html

译文链接 : http://www.apache.wiki/pages/viewpage.action?pageId=9406685

贡献者 : 阿叩ApacheCNApache中文网

1.1. 文件描述符

注意

此设置仅需要在Linux或maxOSd的环境中配置,Windows系统可以忽略。在Windows系统中,JVMAPI.aspx)限制仅受限于可用的资源。

Elasticsearch使用大量的文件描述符或文件句柄。文件描述符超限在运行时灾难性的,很可能导致数据丢失。请确保调大运行Elasticsearchd的用户允许打开文件描述符数量到65536或更大。

如果使用的是.zip.tar.gz安装包,在启动elasticsearch前通过root用户设置ulimit -n 65536,或者是设置/etc/security/limits.confnofile65536

RPM和Debian软件包已经默认文件描述符的最大数量为65536,不需要进一步配置。

你可以通过各节点的Nodes StatsAPI来检查max_file_descriptions:

GET _nodes/stats/process?filter_path=**.max_file_descriptors
Copyright © Kilvn 2021. all right reserved,powered by Gitbook最后更新时间: 2021-06-08 20:22:42

results matching ""

    No results matching ""