Upgrade ElasticSearch from ES 8.16.6 to ES 8.18.4

The migration command performs the following steps

  • Pre-migration cluster health check

    • Validates the Elasticsearch cluster health

    • If the status is red, migration will not proceed

    • Retries: 20 times at 1-minute intervals

  • Migration execution

    • Starts only when the cluster is yellow or green
    • Performs an Elasticsearch upgrade
  • Post-migration sleep

    • Waits 2 minutes for stabilization
  • Post-migration cluster health check

    • Same retry logic (20 retries, 1-minute interval)

    • If still failing, perform a manual health check

Accelo Elastic Migration Command Flags

For details about the command usage:

Bash
Copy

Where:

  • component = ad-elastic | ad-fs-elastic

Key flags:

  • --host (-d) → Elasticsearch hostname (default: localhost)

  • --port (-p) → HTTP API port (default: 19013)

  • --username (-u) → Username (default: pulse)

  • --password (-e) → Encrypted password

  • --online (-o) → Pull images from ECR

  • --retries (-r) → Max health check retries (default: 20)

  • --retry-interval (-i) → Retry interval (default: 1m)

  • --sleep (-s) → Post-start wait time (default: 2m)

ad-elastic Migration Procedure

For details about upgrading ad-elastic:

Online Installation (ECR pull)

Bash
Copy

For details about execution:

  • Verifies service status

  • Performs pre-check (must be yellow/green)

  • Pulls migrate-8.18.4 image

  • Replaces the old container

  • Starts new ES 8.18.4 container

  • Performs post-check

Bash
Copy

Offline Installation (Air-gapped)

  1. Load the image:
Bash
Copy
  1. Verify that the image is loaded correctly:
Bash
Copy
  1. Run the ad-elastic migration command:
Bash
Copy
  1. Verify container:
Bash
Copy

ad-fs-elastic Migration Procedure

For Online Installation (pulls images from ECR)

Bash
Copy

For Offline Installation (air-gapped)

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

  1. Download the required migration images in an air-gapped environment.
Bash
Copy
  1. Verify that the image is loaded correctly
Bash
Copy
  1. Run the ad-elastic migration command.
Bash
Copy
  1. 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:

For ad-elastic (default port 19013):

Bash
Copy
Bash
Copy

For ad-fs-elastic (default port 19038):

Bash
Copy
Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard