Upgrade WSO2 API Manager by preparing and backing up first, building a parallel environment, moving configuration and the database schema, testing against real traffic patterns, and cutting over in stages with a rollback you have already rehearsed. This runbook covers that sequence for moves between current releases. It does not replace the vendor's upgrade documentation for your target version.
It supports our WSO2 API Manager service, including the recommended upgrade order across WSO2 products. Product names are changing as WSO2 becomes Choreo Labs, so check the vendor's documentation for the names in your release.
What the vendor says an upgrade involves
The vendor describes four stages in order: migrate configuration, update custom extensions, migrate resources and artifacts, then upgrade the database schema. For moves within the 4.x line starting at 4.2.0, it describes a zero data migration approach. The schema update is the only mandatory data step, and existing APIs, applications, subscriptions, users and tokens keep working. Upgrades from releases before 4.2.0 need the vendor's support team. Sources: the vendor's upgrade overview and upgrade guide, checked 1 December 2026.
Step 1: prepare and back up
Write down what you run before you change it. Record the current version and update level, the deployment layout, custom code, keystores, identity provider links and every integration that calls the gateway. Then take backups of the databases, the configuration files and the keystores, and restore them once into a scratch environment. A backup you have never restored is a hope, not a rollback.
Read the release notes for your target version. One example: from 4.5.0 the profile start-up options are gone, and control plane, Classic Gateway and Traffic Manager ship as separate distributions. If you used profiles, the deployment layout changes as part of the upgrade.
Step 2: build a parallel environment
Stand up the target release beside the current one, on copies of the production databases. Production stays untouched. Reapply configuration by hand from the old files rather than copying whole files across, because defaults change between releases. Rebuild custom extensions against the new release and note every one that fails.
Step 3: run the upgrade on the copy
Upgrade the schema on the copied database, start the new environment and confirm that APIs, applications, subscriptions and tokens appear as they did before. Time the schema step. That number sets the length of your production window. Keep the full log of the run.
Step 4: test before anyone depends on it
Test in layers. Each layer has an owner and a pass rule written in advance.
| Layer | What to test | Pass rule |
|---|---|---|
| Smoke | Start-up, login to the publisher and developer portal, one call through the gateway | No errors in the start-up log |
| API behaviour | A replay of recorded calls: auth, throttling, transformations, error responses | Same status codes and bodies as production, or a written reason |
| Security | Token issue and refresh, scopes, mutual TLS where used, policy enforcement | Every deny case still denies |
| Integrations | Identity provider, analytics, notification and CI/CD links | Each link works from the new environment |
| Load | Peak call rate from your own traffic data | Latency and error rate within your own targets |
Include your WSO2 Identity Server sign-in path if tokens come from it, since the two products are usually upgraded one after the other.
Step 5: plan the rollback before the cutover
Decide the rollback trigger in writing: which failures reverse the cutover, who decides and by when. Keep the old environment running and untouched until the new one has carried real traffic through a full business cycle. Do not upgrade the production database in place. If you do, rollback means restoring the backup, so test that restore under the same time pressure you expect on the night.
Step 6: cut over in stages
Move traffic gradually. Start with internal or low-risk consumers, then a slice of external ones, then the rest. Route by consumer or by API, whichever your gateway layout allows. After each stage, compare error rate, latency and throttling counts against the old environment, and pause if they differ without a reason.
Freeze publishing of new API versions during the window, or changes made on one side will be missing on the other. After the last stage, keep the old environment for a defined period, then retire it with a recorded sign-off.
Common blockers to look for early
Most upgrades stall on a short list of causes. Check each one in Step 1, not on the night.
- Custom extensions. Handlers, mediation policies and custom code built for an older release may need a rebuild. List them and name an owner for each.
- Deployment layout. Estates that used profile start-up options need a new layout from 4.5.0.
- Runtime and database requirements. Check the Java version and the database version and driver your target release needs, and confirm your platform team can provide them.
- Hand-edited configuration. Old settings that nobody remembers adding are the usual source of surprises. Compare them line by line.
- Consumers you do not know about. Gateway logs show callers the inventory missed. Contact them before the window.
Who does what in the window
Name four roles before the date: one person who runs the steps, one who tests, one who owns the rollback decision and one who talks to API consumers. In a small team one person may hold two roles, but the rollback owner should not be the person doing the upgrade, because the person holding the keyboard is the last to call a stop.
After the upgrade: record and patch
Keep the evidence your reviewers will ask for: the inventory before and after, the test results, the cutover log and the sign-off. Then return to patching. A new release does not remove the need to apply security fixes; see what API Manager teams should check for the latest advisory. If agent and AI traffic is the reason for the upgrade, the WSO2 AI readiness roadmap shows what comes next, and our WSO2 support team can run the window with you.



