-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Description
Describe the feature:
Please add a feature to allow max_map_count to be the system default of 65536 for running single nodes in a Docker Container. Currently, the only way to run ElasticSearch in a Docker Container is to set the host vm.max_map_count = 262144. This is impossible (and likely unnecessary) in some environments.
SonarQube currently uses ElasticSearch, and trying to run it in a container fails at startup if this is not set on the host due to bootstrap checks. However, once the container is up and running it continues to run fine if the setting on the host is reverted to 65536.
If this many map counts are really needed to avoid an out of memory situation, then perhaps another alternative would be to create a new process to handle the extra resource requirement rather than requiring a system wide change. This seems like a poor practice to require a system wide change (which may negatively impact system stability and security).
Elasticsearch version (bin/elasticsearch --version):
Plugins installed: []
JVM version (java -version):
OS version (uname -a if on a Unix-like system):
Description of the problem including expected versus actual behavior:
Steps to reproduce:
Please include a minimal but complete recreation of the problem, including
(e.g.) index creation, mappings, settings, query etc. The easier you make for
us to reproduce it, the more likely that somebody will take the time to look at it.
Provide logs (if relevant):