原文地址: https://www.elastic.co/guide/en/elasticsearch/reference/7.7/max-number-of-threads.html, 原文档版权归 www.elastic.co 所有
IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Number of threadsedit
Elasticsearch uses a number of thread pools for different types of operations. It is important that it is able to create new threads whenever needed. Make sure that the number of threads that the Elasticsearch user can create is at least 4096.
This can be done by setting ulimit -u 4096
as root before
starting Elasticsearch, or by setting nproc
to 4096
in
/etc/security/limits.conf
.
The package distributions when run as services under systemd
will configure
the number of threads for the Elasticsearch process automatically. No
additional configuration is required.