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.
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:
- Ensure both Percona nodes are in sync.
- Take a backup of the following databases:
appsoneappsonekeycloakappsone_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:
-
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; -
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; -
Copy the latest my.cnf file (on both nodes) to the following path:
/<Installation_Path>/Appsone_Service/conf/PERCONANote: Take a backup of the existing my.cnf.
-
Update the my.cnf configuration for Node 2:
auto_increment_offset=2Note: Default value is 1. Node 1 should retain its default value.
-
Backup the Percona data directory on both nodes in the following path:
/<Installation_Path>/Appsone_Service/data -
Update the Percona image version by editing the percona.nomad file:
From: percona:8.0.42 To: percona:8.4.8 -
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> -
Update the following Consul key:
consul kv put service/percona/replication/status 1 -
Stop the Percona service by executing the command below:
nomad stop percona -
Start the Percona service by executing the command below:
nomad run percona.nomad -
Verify node status as below:
- Up
- Healthy
-
Update the startServices & check_replication script.
a. Copy the latest startServices.sh and check_replication.sh to
a1home(primary server). -
Execute the following script:
./startServices.sh DefaultNote: This script enables HA replication. Wait until execution completes.
-
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 -
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:
-
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; -
Copy the latest my.cnf file (on both nodes) to the following path:
/<Installation_Path>/Appsone_Service/conf/PERCONANote: Take a backup of the existing my.cnf.
-
Update the my.cnf configuration for Node 2:
auto_increment_offset=2Note: Default value is 1. Node 1 should retain its default value.
-
Backup the Percona data directory on both nodes in the following path:
/<Installation_Path>/Appsone_Service/data -
Update the Percona image version by editing the percona.nomad file:
From: percona:8.0.42 To: percona:8.4.8 -
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> -
Update the following Consul key:
consul kv put service/percona/replication/status 1 -
Stop the Percona service by executing the command below:
nomad stop percona -
Start the Percona service by executing the command below:
nomad run percona.nomad -
Verify node status as below:
- Up
- Healthy
-
Update the startServices & check_replication script.
a. Copy the latest startServices.sh and check_replication.sh to
a1home(primary server). -
Execute the following script:
./startServices.sh DefaultNote: This script enables HA replication. Wait until execution completes.
-
Validate replication on Node 2 by executing the following command:
show replica status\G;Expected output:
Replica_IO_Running: Yes Replica_SQL_Running: Yes -
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.