pires / kubernetes-elasticsearch-cluster

Elasticsearch cluster on top of Kubernetes made easy.
Apache License 2.0
1.51k stars 690 forks source link

Unable to set MEMORY_LOCK to true #229

Open rewt opened 5 years ago

rewt commented 5 years ago

`sh: error setting limit: Operation not permitted [2018-09-13T20:29:34,587][WARN ][o.e.b.JNANatives ] Unable to lock JVM Memory: error=12, reason=Out of memory [2018-09-13T20:29:34,589][WARN ][o.e.b.JNANatives ] This can result in part of the JVM being swapped out. [2018-09-13T20:29:34,589][WARN ][o.e.b.JNANatives ] Increase RLIMIT_MEMLOCK, soft limit: 65536, hard limit: 65536 [2018-09-13T20:29:34,589][WARN ][o.e.b.JNANatives ] These can be adjusted by modifying /etc/security/limits.conf, for example:

allow user 'elasticsearch' mlockall

elasticsearch soft memlock unlimited
elasticsearch hard memlock unlimited`

I found resolution on docker repo, could you please implement in this image as well?

rewt commented 5 years ago

https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html