diff --git a/Install_Configure_ElasticSearch.md b/Install_Configure_ElasticSearch.md index 193b2a3..fd05c59 100644 --- a/Install_Configure_ElasticSearch.md +++ b/Install_Configure_ElasticSearch.md @@ -38,8 +38,22 @@ network.host: localhost These are the minimum settings you can start with in order to use Elasticsearch. Now you can start Elasticsearch for the first time. -Start the Elasticsearch service with systemctl. Give Elasticsearch a few moments to start up. Otherwise, you may get errors about not being able to connect. \ +Check if Elasticsearch starts: \ `sudo systemctl start elasticsearch` Next, run the following command to enable Elasticsearch to start up every time your server boots: \ -`sudo systemctl enable elasticsearch` \ No newline at end of file +`sudo systemctl enable elasticsearch` + +Let's create a new file called 'memory.options' in the 'jvm.options.d' directory so we can define memory requirements when an Elasticsearch instance starts:\ + `sudo nano /etc/elasticsearch/jvm.options.d/memory.options` + + In the file, add the minimum and maximum memory requirements: + +``` + -Xms1g + -Xmx4g +``` + +`sudo systemctl restart elasticsearch` + +# Step 3- Securing ElasticSearch