-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elasticsearch fails to startup with valid fsize and virtual memory limits #113705
Comments
Pinging @elastic/es-core-infra (Team:Core/Infra) |
I've changed it to accept both |
I think you might want to add the -1 to this check as well. elasticsearch/server/src/main/java/org/elasticsearch/bootstrap/BootstrapChecks.java Line 384 in ee24f84
There could be others too. |
I believe @rjernst is also looking at this now. |
@nathan-maves - what happens if you try to use -1? |
You can see in the logs I added to the issue we already have the system set to
|
Are there any other log messages like |
The issue description mentiones "Unix" as the OS. Do you mean linux, and if so, what distribution? We do not support any Unix distributions, and I can see how that might be an issue (our rlimit calls are probably not setup right for unix). |
That was my bad. I am pretty sure we support RHEL and rocky linux. |
The merged PR only fixes one of the reported problems. The "-1 problem" still exists. |
Is there anything your team needs from me? A member of my team tried both "unlimited" and "-1" and ES 8.15 would not start up on debian linux. This might stem from the issue you fixed as the code is not reading the correct setting value. Is there any chance we can get a build with the fix to test things out? |
Hey @nathan-maves - I think we have everything we need. I'll try to reproduce today and reach out if I'm unable to do so. |
Actually @nathan-maves - can you please confirm that you have no files in |
@nathan-maves - if you want to try with the fix... are you in a position to clone this repo and run |
@prdoyle I asked some people on our team and they confirmed that there is not much or sometimes nothing in their |
Note to self: these limits are annoyingly sticky. First, they only take effect on a new ssh session. The existing ssh session will retain the old limits even after Second, they apparently also stick to a Gradle daemon started during an ssh session. So even if you log out and ssh back into the machine, if a Gradle daemon is still running, it will remember the old limits too. The command line I'm experimenting with right now is:
This appears to be doing what I want. |
Using the above technique, Here's what I tried:
The error I saw in the log was this:
(Note that the reported value is 1024 times the setting I put in |
@nathan-maves - could you please check your ES logs for a line like this? If you're seeing this in your log, it's pretty hard for me to understand how you could have seen the
|
...in particular, it should say either |
@nathan-maves - given that I've fixed one bug and cannot reproduce the other, I'm going to close this issue for now. If you do add a comment with some additional guidance for reproducing the "-1" error, we can reopen this issue and resume the investigation. |
Was there a back port to 8.15 planned for this? |
8.15 backport is in #116152. |
Elasticsearch Version
8.15
Installed Plugins
No response
Java Version
bundled
OS Version
Linux
Problem Description
We have found a few issues with the Bootstrap checks on Linux/Unix machines. The first is that a value of
-1
should be accepted along withunlimited
andinfinity
based on this documentation.The second issue is that this code appears to be incorrect.
It should be checking for the max file size and NOT the max memory size
Steps to Reproduce
Set the
fsize
value to-1
in the/etc/security/limits.conf
file then start up Elastic 8.15.x.Logs (if relevant)
The text was updated successfully, but these errors were encountered: