Duczer East
Healthcare

In-perimeter AI on governed clinical and operational data.

Financial Services

Private AI and data platforms built to clear model-risk and audit review.

Financial services

Private AI, KYC/AML, API gateways and data governance for banks.

Insurance

Change data capture, governed agents and integration for insurers.

Healthcare

PHI document intelligence, FHIR APIs and in-perimeter AI for health systems and plans.

GuideIntegration & Security7 min read

WSO2 API Manager Upgrade Runbook: Steps, Testing, Rollback and Cutover

From a clean backup to a cutover you can reverse.

On this page
  1. What the vendor says an upgrade involves
  2. Step 1: prepare and back up
  3. Step 2: build a parallel environment
  4. Step 3: run the upgrade on the copy
  5. Step 4: test before anyone depends on it
  6. Step 5: plan the rollback before the cutover
  7. Step 6: cut over in stages
  8. Common blockers to look for early
  9. Who does what in the window
  10. After the upgrade: record and patch

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.

LayerWhat to testPass rule
SmokeStart-up, login to the publisher and developer portal, one call through the gatewayNo errors in the start-up log
API behaviourA replay of recorded calls: auth, throttling, transformations, error responsesSame status codes and bodies as production, or a written reason
SecurityToken issue and refresh, scopes, mutual TLS where used, policy enforcementEvery deny case still denies
IntegrationsIdentity provider, analytics, notification and CI/CD linksEach link works from the new environment
LoadPeak call rate from your own traffic dataLatency 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.

Frequently asked questions

Do we need a data migration when upgrading WSO2 API Manager?

Between current 4.x releases the vendor describes a zero data migration approach: the database schema is updated, but existing APIs, applications, subscriptions, users and tokens are not moved. Upgrades from older releases are different, and the vendor asks you to contact its support team.

Can we roll back after the database schema is upgraded?

Only if you kept a restorable backup taken before the schema change. Treat the schema upgrade as the point of no return unless that backup is tested. Plan rollback before you start, not after.

Should we upgrade in place or build a parallel environment?

A parallel environment is safer for regulated teams, because the old one stays untouched until cutover is proven. It costs more infrastructure for a short time. In-place upgrades suit small, non-critical estates.

What changed in the 4.5 release that affects upgrades?

From 4.5.0 the vendor no longer supports the profile start-up options. Control plane, Classic Gateway and Traffic Manager are separate distributions, so deployments that used profiles need their layout reworked.

Newsletter

The Practitioner's Briefing

Senior-level insights on agentic AI, data engineering and enterprise integration, delivered to your inbox.

One email when there is something worth reading. Unsubscribe any time.

Let's Talk

Want to discuss the ideas raised here?

Tell us what you are working on. A senior practitioner replies, and only your email is required.

Get a quote