Elasticsearch

Install & Run Elasticsearch

1. Configure the TMP dir by editing the below value in this file /etc/elasticsearch/jvm.options
-Djava.io.tmpdir=/var/log/elasticsearch
 
2. After that edit the system configuration to enable swappiness

sysctl -w vm.swappiness=1 >> /etc/sysctl.conf 

sysctl -p

3. And finally restart the service

systemctl restart elasticsearch