Red Hat Elasticsearch Installation
Checks Required Before Starting Installation
Info
Important for Installation
For the installation to be healthy, your servers must have access to the following addresses.
For Elasticsearch installation:
Operating System Configurations
Tip
The following steps must be performed on all servers.
# Elasticsearch user is created and authorized.
sudo adduser elasticsearch
sudo passwd elasticsearch
sudo usermod -aG wheel elasticsearch
# Switch to the user to continue operations
su - elasticsearch
# It is recommended that the following tools be installed on all servers.
sudo yum update
sudo yum install -y curl wget telnet zip lsof lvm2 net-tools yum-utils bind-utils device-mapper-persistent-data
# Firewall is disabled
sudo systemctl stop firewalld
sudo systemctl disable firewalld
# SELinux is disabled to prevent communication problems on servers.
sudo setenforce 0
sudo sed -i 's/^SELINUX=enforcing$/SELINUX=disabled/' /etc/selinux/config
# Swap is disabled and the swap line in /etc/fstab file is deleted to prevent it from restarting.
sudo swapoff -a
sudo vi /etc/fstab
# Then close the vi file (:wq).
Elasticsearch Installation
Operating System Configurations and Elasticsearch Application Installation
Tip
The following steps must be performed on all Elasticsearch servers.
sudo ulimit -n 65535
sudo vi /etc/security/limits.conf
elasticsearch - nofile 65535
elasticsearch soft memlock unlimited
elasticsearch hard memlock unlimited
sudo sysctl -w vm.swappiness=1
sudo sysctl -w vm.max_map_count=262144
sudo vi /etc/sysctl.conf
vm.max_map_count=262144
sudo sysctl -p
sudo sysctl vm.max_map_count