Configuration Settings of Elasticsearch Before Installing In Linux

Configuration Settings of Elasticsearch Before Installing In Linux

If you face some issues in installing the Elasticsearch in Linux and getting Elasticsearch service failed. You need to make Configuration Settings of Elasticsearch file.

I will tell you what you need to do. It’s very important to make these changes. If you’re facing issues in Starting Elasticsearch Service. so

Check Out: Install Elasticsearch Using Source Code

Check Permission on Elasticsearch so

ls -ld /etc/elasticsearch

Let’s begin with Elasticsearch.yml file so

Configuration A:

Go to vim /etc/elasticsearch/elasticsearch.yml

1. You need to define a Cluster name so Elastic-Server  

2. Define a descriptive name for the node: node-1

3. Path to directory where to store the data /path/to/data

path.logs: /path/to/logs

I didn’t change it. If you want, You can define a location.

4. Lock the memory on startup:

bootstrap.memory_lock: true

Check Out: BootStrap Checks Failed In ElasticSearch

5. Set the bind address to a specific IP your_server_ip

6. Set a custom port for HTTP:

http.port: 9200

Configuration B:

Go to vim /etc/sysconfig/elasticsearch

You may change this location. I’m using the same location which is defined by default.

1. Elasticsearch home directory


2. Elasticsearch configuration directory


3. Elasticsearch data directory


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

4. Elasticsearch logs directory


4. Elasticsearch PID directory


5. Set ES_HEAP_SIZE to 50% of available RAM, but no more than 31g


6. You may also uncomment these lines



7. Specifies the maximum file descriptor number that can be opened by this process


8. The maximum number of bytes of memory that may be locked into RAM


Check Out: Install Elastisearch Using Repo

9. Maximum number of VMA (Virtual Memory Areas) a process


These settings are mandatory if you want to install Elasticsearch otherwise Service won’t work.


Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment