Ubuntu Elasticsearch Installation
Checks Required Before Starting Installation
bilgi
Important for Installation
For the installation to be healthy, your servers must have access to the following addresses.
For Elasticsearch installation:
bilgi
Important
When updating Ubuntu packages, it tries to pull from servers in Turkey location. However, there may be problems with tr.archive.ubuntu.com from time to time. In this case, the following change should be made.
sudo vi /etc/apt/sources.list
#Replace all addresses containing tr. with "Replace All".
#Example:
Operating System Configurations
ipucu
The following steps must be performed on all servers.
# Elasticsearch user is created and authorized
sudo adduser elasticsearch
sudo usermod -aG sudo elasticsearch
# Switch to the user to continue operations
sudo su - elasticsearch
# It is recommended that the following tools be installed on all servers
sudo apt update
sudo apt install -y curl wget net-tools gnupg2 software-properties-common apt-transport-https ca-certificates
# Firewall is disabled
sudo systemctl stop ufw
sudo systemctl disable ufw
# 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
ipucu
The following steps must be performed on all Elasticsearch servers.
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