This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
Number of threads
editNumber of threads
editElasticsearch 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.