Skip to main content

Pre-Installation Checks

ImportantTo protect against potential system or user errors during the upgrade, snapshots (backups) should be taken on the relevant servers before starting the process.
Elasticsearch installation file:https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.29-linux-x86_64.tar.gzNote: Access to this address is not mandatory. If the server does not have external internet access, the file can be downloaded from a different environment and manually transferred to the server.

Downloading and Preparing New Elasticsearch Version

Configuring Elasticsearch Parameters for the Environment

1. Copying Configuration File

You need to copy the information from the existing elasticsearch.yml file to the new version. View the current configuration:
Edit the new version configuration file:
Copy the content from the existing configuration file to the new file.
Certificate Files (Optional)If your existing Elasticsearch installation uses SSL/TLS certificates, you need to copy these certificates to the new version.

2. Configuring JVM Parameters

You should configure the JVM (Java Virtual Machine) values and other JVM parameters that Elasticsearch will use according to the existing elasticsearch settings. View the current JVM settings:
Edit the new version JVM settings:
ImportantThe value can be set up to half of the operating system’s RAM and should not exceed 32GB. It should be entered as follows according to the RAM value used by the existing elasticsearch.

Setting Up Elasticsearch as a Linux Service

1. Creating New Service Script File

Create the service script file for the new Elasticsearch version:
Paste the following content into the file:
Grant execute permission to the script file:

2. Updating Systemd Service File

First, stop the current Elasticsearch service:
Update the systemd service file for the new version:
Write the following content to the file:

3. Starting New Elasticsearch Service