-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Bootstrap check fails from insufficient vm.max_maps_count setting #310
Comments
Ok, so this is implemented... but the name is off... |
Currently, setting this Environment Variable in the Rancher service disables using mmap and allows the container to start. |
This option is available, but incorrectly named. See |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solution: Please enable the flag for disabling mmapfs (node.store.allow_mmapfs=false).
Issue: When trying to start SonarQube in a Docker container, the default setting for memory maps on most hosts is 65536 (systctl vm.max_maps_count=65536). ElasticSearch by default uses memory map file system (hybrid actually, niofs and mmapfs). It checks to see that the max map count is high enough to not run out of memory maps, and if not it tries to set the system setting "sysctl -w vm.max_map_count=262144". This fails in a Docker container as the /proc/ is mounted as Read-Only.
To get around this, Version 6.5+ of ElasticSearch allows you to disable mmapfs, and use only NIOFS. That then also removes the check for max_map_count since it's no longer using memory maps.
The text was updated successfully, but these errors were encountered: