Add systctl vm.max_map_count for elasticsearch 32/71032/1
authorJulien Barbot <julien@barbot.org>
Tue, 23 Oct 2018 07:54:45 +0000 (09:54 +0200)
committerJulien Barbot <julien@barbot.org>
Tue, 23 Oct 2018 07:56:13 +0000 (09:56 +0200)
Change-Id: Ifd82ece02036ffc305bdf85e7fd3025e28424045
Issue-ID: OOM-510
Signed-off-by: Julien Barbot <julien@barbot.org>
kubernetes/aai/charts/aai-elasticsearch/templates/deployment.yaml

index 24cdb92..586d64f 100644 (file)
@@ -39,6 +39,7 @@ spec:
         - /bin/sh
         - -c
         - |
+          sysctl -w vm.max_map_count=262144
           mkdir -p /logroot/elasticsearch/logs
           mkdir -p /logroot/elasticsearch/data
           chmod -R 777 /logroot/elasticsearch