-
Notifications
You must be signed in to change notification settings - Fork 2
2. Prerequisites
Alexandre Guth edited this page Feb 8, 2018
·
2 revisions
Deploying Elasticsearch requires some tuning on the host
It is recommended that you use the Oracle JDK version 1.8.0_131
java -version echo $JAVA_HOME
sudo apt-get install openjdk-8-jre
su -c "yum install java-1.8.0-openjdk"
The vm.max_map_count
kernel setting needs to be set to at least 262144 for production use
grep vm.max_map_count /etc/sysctl.conf vm.max_map_count=262144
(you still have to change the vm.max_map_count
in /etc/sysctl.conf
)
sysctl -w vm.max_map_count=262144
#setting up the host for elasticsearch`
root hard nproc 2048
root hard as unlimited
root hard fsize unlimited
elasticsearch hard nproc 2048
elasticsearch hard as unlimited
elasticsearch hard fsize unlimited
The user of the data directory has be set to 1000:1000
chown -R 1000:1000 /path/to/data/elasticsearch