From 4fa14fffcec6e54c22f0b6286cd9342713b4cc75 Mon Sep 17 00:00:00 2001 From: Kaimbacher Date: Fri, 1 Jul 2022 09:18:40 +0000 Subject: [PATCH] Update 'Install_Configure_ElasticSearch' --- Install_Configure_ElasticSearch.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) 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