Bootstrap configure in elasticsearch

Error Elastisearch BootStrap Check Failed In ElasticSearch

When you will install Elasticsearch on your machine, you might be facing  these Error Elasticsearch Bootstrap check failed. This is because you didn’t make some changes before installing the ElasticSearch.

Check Out :  Install Elasticsearch Using Source Code

Main Issues : You will get these issues when you will install Elasticsearch without making any settings in Elasticsearch.yml

  • Max file descriptors [4096] for Elasticsearch process is too low, increase to at least [65536]

  • Maximum number of threads [3843] for user [elastic] is too low, increase to at least [4096]

  • Max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

You may set these values in /etc/security/limits.conf

1. Now Increase the file Descriptions

ulimit -n 65536

if you don’t want to set it 65536, use nofile to 65536 in above file.

Check Out : Configuration Settings of Elasticsearch Before Installing I

2. Now Set Number of threads for user

ulimit -u 4096

if you don’t want to set it 4096 user, set nproc to 2048 in above file.

3. Now Set Virtual Memory in /etc/sysctl.conf

vm.max_map_count= 262144

After settings these, you need to run this command to make changes

sysctl -p

Check Out : Error : Can’t Run Elasticsearch As Root

If above settings does not work for you, try this one and Final Settings should be looks like in /etc/security/limits.conf

You’re done



Please enter your comment!
Please enter your name here

19 + 11 =