Upgrade ElasticSearch from ES 8.16.6 to ES 8.19.0

Before upgrading Pulse from version 3.8.x to 4.1.x, you must upgrade both Elasticsearch instances from ES 8.16.6 / ES 8.18.4 to ES 8.19.0:

  • ad-elastic
  • ad-fs-elastic

This step is mandatory and must be completed before running the main Pulse migration command.

Ensure the Elasticsearch cluster health is yellow or green before proceeding with the Elasticsearch migration command.

How the Migration Flow Works

The migration command performs the following steps internally:

1. Pre-migration Cluster Health Check

The command checks the Elasticsearch cluster health before starting the migration.

  • If the cluster status is red, the migration will not proceed.
  • The command retries the health check until the cluster status becomes yellow or green.

Default retry configuration:

  • Maximum retries: 20
  • Retry interval: 1m

If all retry attempts are exhausted and the cluster is still red, the migration fails.

2. Migration Execution

Once the cluster health is yellow or green, the Elasticsearch version upgrade is performed.

3. Post-migration Sleep

After the migration completes, the system waits for 2m to allow the Elasticsearch container to stabilize.

4. Post-migration Cluster Health Check

After the sleep interval, the command performs another cluster health check using the same retry configuration.

If the post-migration health check fails after all retry attempts, verify the cluster health manually using the commands provided in the Manual Health Check section.

Accelo Elasticsearch Migration Command Flags

Bash
Copy

Supported components:

Bash
Copy
FlagShortDescriptionDefault
--host-dHostname where Elasticsearch is hostedlocalhost
--port-pPort to which the Elasticsearch HTTP API is bound19013
--username-uElasticsearch usernamepulse
--password-eElasticsearch password encrypted using accelo admin encrypt--
--online-oPull Elasticsearch migration images from ECRfalse
--retries-rMaximum number of health check retries20
--retry-interval-iInterval between health check retries1m
--sleep-sTime to wait after the Elasticsearch container becomes available2m

ad-elastic Migration Procedure

Online Installation

Run the following command.

Bash
Copy

Example:

Bash
Copy

Offline Installation

Load the migration image:

Bash
Copy

Verify the image:

Bash
Copy

Run the migration command:

Bash
Copy

Verify the container:

Bash
Copy

ad-fs-elastic Migration Procedure

Online Installation ( (pulls images from ECR)

Run the following command.

Bash
Copy

Example:

Bash
Copy

For Offline Installation (air-gapped):

If the image 191579300362.dkr.ecr.us-east-1.amazonaws.com/acceldata/ad-elastic:migrate-8.19.0 is already present locally, there is no need to load it again using docker load -i.

Download the required migration images in an air-gapped environment.

Load the migration image if it is not already present:

Bash
Copy

Verify the image:

Bash
Copy

Run the migration command:

Bash
Copy

Verify the container:

Bash
Copy

Manual Health Check

If the migration fails due to cluster health check timeout (cluster remains red), verify the cluster health manually:

ad-elastic Health Check

Default port: 19013

Command

Bash
Copy

Output

Bash
Copy

ad-fs-elastic Health Check

Default port: 19038

Command

Bash
Copy

Output

Bash
Copy
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches