-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Documentation precision about heap size and docker #51626
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
Comments
Pinging @elastic/es-core-infra (:Core/Infra/Packaging) |
Pinging @elastic/es-docs (>docs) |
Thanks for opening this issue @soullivaneuh. A few comments:
We'll get the docs updated to clarify these points. |
Maybe I didn't well understand how it works, but here is a ps:
Here i removed the default option and put the env vars. As you can see, the container consumes ~780Mo, this is far more than the limit I set. Also, if I setup multiple instances (staging server with auto-deploy) and the host RAM is full, the server is overloading consuming all the CPU resources for no reasons.
Well, the issue is |
@soullivaneuh can I confirm which image you are using - I pulled and ran
which is different from your sample. |
Note that using curl localhost:9200/_nodes?human | jq '.nodes | map_values(.jvm.mem)' In all my experiments, configuring the heap settings via an environment variable e.g. I'll see about what we can do to improve the documentation. |
Closes elastic#51626. Tweak the documentation around configuring the heap size when using Docker, to state that: - using `ES_JAVA_OPTS` is the preferred method - Any `ES_JAVA_OPTS` overrides the defaults in `jvm.options` - It's possible to bind-mount a custom `jvm.options`
When we initially designed I opened #51882. |
Closes #51626. Tweak the documentation around configuring the heap size when using Docker, to state that: - using `ES_JAVA_OPTS` is the preferred method - Any `ES_JAVA_OPTS` overrides the defaults in `jvm.options` - It's possible to bind-mount a custom `jvm.options`
This is not really a bug report nor a feature request, but a possible documentation issue.
On the docker-compose guideline, you recommend to use
ES_JAVA_OPTS
, but not on the jvm.options configuration guide.Well, the env way looks better with docker. However, I saw a notice on this guide:
But the options are present on the config file from the official docker image. So, to make it working, I have to build a custom one removing those options:
Otherwise, the env usage does not work at all.
I'm maybe missing something, but the options should not be configured by default on the docker image if you recommend to use ENV vars, right?
I think the Dockerfile and/or the docs need some update/clarification.
Thoughts?
The text was updated successfully, but these errors were encountered: