The Elasticsearch documentation says that I should configure nofile and nproc for better performance.
But the documentation is a bit confusing.
First, do I set it to the "elastic" user that was created by Elasticsearch upon installation or to the "elasticsearch" user (which was not created at all)?
Second, how will the file /etc/security/limits.conf actually look after configuration? Will it look like the code below?
How did you install elasticsearch? If you installed using a package manager like deb or rpm than the user elasticsearch will be created during installation.
You need to edit the limits for the user that will run Elasticsearch, which is normally elasticsearch.
Also, if you installed using deb or rpm you basically do not need to worry about nofile and nproc as the systemd process will set it automatically.
But if you need to manually configure the file this is correct:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.