ELK with Docker

General infos

Official Elastic docker registry :
docker.elastic.co Web site :
https://www.docker.elastic.co

Known Errors

ELK

Problem : VM’s max mnumber of memory map too low :
Symptom :
Elasticsearch container fails at startup with the error message :

ERROR: [1] bootstrap checks failed ESC[36mes02 |ESC[0m [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

Solution :
1)Increase its value for the current session :
sysctl -w vm.max_map_count=262144
Or :
1 bis) Increase its value permanently :
Edit the /etc/sysctl.conf file and add the property such as :
vm.max_map_count=262144
Then reboot or reload the sys settings : sysctl --system
What max_map_count is ?

max_map_count:

This file contains the maximum number of memory map areas a process
may have. Memory map areas are used as a side-effect of calling
malloc, directly by mmap, mprotect, and madvise, and also when loading
shared libraries.
The default value is 65536.

Problem : Memory locking operation enabled in Elastic configuration but the memory is not locked on the system/container :
Symptom :
Elasticsearch container fails at startup with the error message :

ERROR: [1] bootstrap checks failed
[1]: memory locking requested for elasticsearch process but memory is not locked

Solution :
Ensure that bootstrap.memory_lock option be to false such as : bootstrap.memory_lock: false

Ce contenu a été publié dans Non classé. Vous pouvez le mettre en favoris avec ce permalien.

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *