I realized the reason I did not have access to logs (and the BootstrapChecks, etc.), is because I've been working with a different install of Elasticsearch 5.6.10 so that I can run it as a service.
I now actually installed via the Installation example with tar like I said earlier and I can see that the BootstrapChecks are enabled (after I change the value of network.host
) and I am running into two errors which are shutting down ES.
ERROR: [2] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2]: max number of threads [1851] for user [ec2-user] is too low, increase to
at least [2048]
I (eventually) want this working using systemd
, so I want to follow this Systemd configuration but I am not exactly sure what the correct syntax is to set nofile
to 65536
and nproc
to 4096
.
Update:
For nofile
from Systemd configuration:
[Service]
LimitMEMLOCK=infinity
For nproc
from Number of threads:
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.
So it looks like all I need to do is set LimitMEMLOCK
and my service installation of ES should be good to go, but I am still unable to connect from an external server, even with having tested different values for network.host
.
Rather than further trying to get the service to work, I also made the changes to /etc/security/limits.conf
as follows (so that I can get the Installation example with tar to work), but ES is still shutting down due to the same errors (formatting is off here, ignore different spacing between lines):
root - nofile 65536
ec2-user - nofile 65536
root - nproc 4096
ec2-user - nproc 4096
What else can I troubleshoot to get either version of my installation to work?