- Newest
- Most votes
- Most comments
Hi mshussein, to complement the tips YoungCTO_quibski provided above:
Differently from the major version upgrade (1.x to 2.x, and 2.x to 3.x), the upgrade from 1.14.1 to 1.22.3 is not "disk intensive" as it is a minor upgrade. By the way, the latest patch currently available for the minor version 1.22 is 1.22.5, so I'd recommend going to 1.22.5 instead of 1.22.3 due to the additional bugs fixed.
But, although the minor upgrade is not disk intensive, it includes downtime, and anytime a MySQL database is stopped and started, the database will execute startup procedures (also during crash recovery), that take longer the more transactions, active sessions, and read views were open in the database. I'd recommend that before initiating any upgrade procedure, you connect to the database and
- Check the history list length (the HLL should not be larger than a few thousand) using the procedure described here.
- Check that there are no long-running active sessions (especially write sessions like DCLs, DDLs and DMLs) by running
SHOW PROCESSLIST;
or having a look at Performance Insights, if it is active for your instance.
In a cluster with no active transactions, no active sessions, and a catched-up purge, the whole minor upgrade procedure normally takes several minutes, but its downtime normally lasts less than a minute.
However, I'd still first test the whole procedure in a cluster restored from a snapshot or cloned, to be sure - this is also mentioned in the documentation.
When upgrading major versions, there is an expected downtime. And once started it cannot be cancelled anymore. What you can do is do a gameday/simulation: Restore a snapshot to another RDS then use that as test for your upgrade.
Another option for limited downtime is using DMS replication as well, but a new endpoint is generated. Hopefully your endpoints are not hardcoded.
Relevant content
- asked 10 months ago
- asked 7 months ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago