Skip to content

Upgrade Percona to v8.4.8 (HEAL v2.3.2 to v2.3.4)

Upgrade the two Percona nodes from v8.0.42 to v8.4.8 on HEAL v2.3.2, v2.3.3 and v2.3.4, with the replication checks.

4 min read Updated SS RS

Use this procedure to upgrade Percona from v8.0.42 to v8.4.8 on the two Percona nodes of a HEAL v2.3.2, HEAL v2.3.3 or HEAL v2.3.4 deployment. For the Percona architecture and its master–master replication, see the Percona Guide. To upgrade Percona to v9.7.1, see Upgrading Percona to v9.7.1 (sign-in required).

Follow the steps below to deploy Percona v8.4.8:

Before you begin#

Note:

  • Percona is installed using the HEAL installer and the following steps must be performed after installing the respective HEAL version.
  • After upgrading, Percona does not support reverting to an older version.
  • Before upgrading to HEAL v2.3.3 or above, if the system already has Percona v8.4.8 installed, ensure that the Percona upgrade is disabled by removing the Percona image entry from the config.txt file located at: a1home/HEAL_Upgrade_2.3.4/conf

Prerequisites#

Ensure the following prerequisites are met:

  1. Ensure both Percona nodes are in sync.
  2. Take a backup of the following databases:
    • appsone
    • appsonekeycloak
    • appsone_mle
    • grafana DB

For the backup commands for these databases, see Pre-Upgrade Backups.

Upgrade procedures#

Use the procedure for your HEAL version. Both procedures change the Percona image in percona.nomad from percona:8.0.42 to percona:8.4.8.

Upgrading Percona for HEAL v2.3.3 and HEAL v2.3.4#

Follow the steps below for the upgrade:

  1. Navigate to Percona Node 1 and validate the replication by executing the following command:

    show replica status\G;
    

    Note: Ensure there are no errors. Fix any issues before proceeding.

    a. Stop replication on Node 1:

    stop replica;
    reset replica all;
    
  2. Navigate to Percona Node 2 and validate the replication by executing the following command:

    show replica status\G;
    

    Note: Ensure there are no errors. Fix any issues before proceeding.

    a. Stop replication on Node 2:

    stop replica;
    reset replica all;
    
  3. Copy the latest my.cnf file (on both nodes) to the following path:

    /<Installation_Path>/Appsone_Service/conf/PERCONA

    Note: Take a backup of the existing my.cnf.

  4. Update the my.cnf configuration for Node 2:

    auto_increment_offset=2
    

    Note: Default value is 1. Node 1 should retain its default value.

  5. Backup the Percona data directory on both nodes in the following path:

    /<Installation_Path>/Appsone_Service/data

  6. Update the Percona image version by editing the percona.nomad file:

    From: percona:8.0.42
    To: percona:8.4.8
    
  7. Load, tag, and push the latest image.

    File: percona_8.4.8.tar

    docker load -i percona_8.4.8.tar
    docker tag <module name> <hostname:port>/<build name>
    docker push <serverhostname>:8091/<module_name>:<version>
    
  8. Update the following Consul key:

    consul kv put service/percona/replication/status 1
    
  9. Stop the Percona service by executing the command below:

    nomad stop percona
    
  10. Start the Percona service by executing the command below:

    nomad run percona.nomad
    
  11. Verify node status as below:

    • Up
    • Healthy
  12. Update the startServices & check_replication script.

    a. Copy the latest startServices.sh and check_replication.sh to a1home (primary server).

  13. Execute the following script:

    ./startServices.sh Default
    

    Note: This script enables HA replication. Wait until execution completes.

  14. Validate replication on both Node 1 & Node 2 by executing the following command:

    show replica status\G;
    

    Expected output:

    Replica_IO_Running: Yes
    Replica_SQL_Running: Yes
    
  15. Check the binary log status (to obtain the log file name and position) by executing the following command:

    show binary log status\G;
    

    Note: In Percona Server 8.4.8, the command SHOW MASTER STATUS\G; has been replaced with the above command.

Upgrading Percona for HEAL v2.3.2#

Follow the steps below for the upgrade:

  1. Navigate to Percona Node 2 and validate the replication by executing the following command:

    show replica status\G;
    

    Note: Ensure there are no errors. Fix any issues before proceeding.

    a. Stop replication on Node 2:

    stop replica;
    reset replica all;
    
  2. Copy the latest my.cnf file (on both nodes) to the following path:

    /<Installation_Path>/Appsone_Service/conf/PERCONA

    Note: Take a backup of the existing my.cnf.

  3. Update the my.cnf configuration for Node 2:

    auto_increment_offset=2
    

    Note: Default value is 1. Node 1 should retain its default value.

  4. Backup the Percona data directory on both nodes in the following path:

    /<Installation_Path>/Appsone_Service/data

  5. Update the Percona image version by editing the percona.nomad file:

    From: percona:8.0.42
    To: percona:8.4.8
    
  6. Load, tag, and push the latest image.

    File: percona_8.4.8.tar

    docker load -i percona_8.4.8.tar
    docker tag <module name> <hostname:port>/<build name>
    docker push <serverhostname>:8091/<module_name>:<version>
    
  7. Update the following Consul key:

    consul kv put service/percona/replication/status 1
    
  8. Stop the Percona service by executing the command below:

    nomad stop percona
    
  9. Start the Percona service by executing the command below:

    nomad run percona.nomad
    
  10. Verify node status as below:

    • Up
    • Healthy
  11. Update the startServices & check_replication script.

    a. Copy the latest startServices.sh and check_replication.sh to a1home (primary server).

  12. Execute the following script:

    ./startServices.sh Default
    

    Note: This script enables HA replication. Wait until execution completes.

  13. Validate replication on Node 2 by executing the following command:

    show replica status\G;
    

    Expected output:

    Replica_IO_Running: Yes
    Replica_SQL_Running: Yes
    
  14. Check the binary log status (to obtain the log file name and position) by executing the following command:

    show binary log status\G;
    

    Note: In Percona Server 8.4.8, the command SHOW MASTER STATUS\G; has been replaced with the above command.

Related

  • Percona Guide — architecture, replication, tables and Consul keys of HEAL’s Percona database.
  • Upgrading Percona to v9.7.1 (sign-in required) — upgrade Percona to v9.7.1 in HA and standalone deployments.
  • Pre-Upgrade Backups — back up the appsone, appsonekeycloak, appsone_mle and grafana databases.