Upgrade Zowe server-side components in high availability
As a systems programmer, it is necessary to upgrade Zowe server-side components regularly to ensure that you are using the latest features and the latest security patches.
This article describes the requirements and procedure to perform an upgrade of a Zowe server-side components installation in high availability mode to a newer minor version with zero downtime.
Review the following assumptions about the installation before you start the upgrade process. Other settings are supported with adapted instructions.
- Zowe is installed in a single shared zFS.
- Zowe is configured in high availability mode with a sysplex distributor and two instances (A and B).
- The upgraded instance is intended to replace one of the existing instances. (For the purposes of this procedure the replaced instance is instance B.)
- Instances A and B run the same Zowe version.
There is a known limitation with balancing traffic between different versions of the UI components, in particular regarding the API Catalog. Only one API Catalog instance can be active in an installation with multiple maintainance levels.
Pre-requisites before installation upgrade with HA
When upgrading an installation in high availability mode, one or more instances run at different maintainance levels. As such, a few restrictions apply:
- HA settings are the same across both installations.
- Each instance has its own configuration file (e.g.
zowe.yamlfile), and the HA and security settings are synchronized.
- Onboarded services must also be in high availability mode.
Upgrading installation with HA
Upgrading installation to use high availability mode involves two general steps:
- Install a new Zowe instance with the upgraded version.
- Switch traffic to the new instance to avoid downtime.
Installing a new Zowe instance
Use the following procedure to install a new Zowe instance:
Use one of the supported installation methods to perform a separate installation of the new version of Zowe. For more information about supported installation methods, see the Installation roadmap.
Note: When performing a separate installation of Zowe, ensure that datasets, STCs definitions, and the USS installation directory are distinct from the original installation.
Replicate the configuration of instance A into instance B.
The settings across both instances must be the same, except for properties pointing to datasets and z/OS USS filesystems which are now separated.
Ensure that the following properties are different between instances:
Choose which instance you intend to run the UI services (API Catalog, Zowe Desktop), and disable these mentioned components in the other instance:
You configured your installation for the two instances.
Switching traffic without incurring downtime involves the following general steps. Details of these steps are described later in this section.
- Disable an application instance (
QUIESCE) from the DVIPA of the sysplex distributor.
- Stop this original instance.
- Start the new instance.
- Verify service replication.
- Resume traffic to the instance.
Note: Only new connections can be re-routed to avoid the instance shutting down. A decision needs to be made on long-lived connections, such as long running requests and Web Socket sessions. These connections cannot be re-routed. As such, these connections are closed when the instance is stopped.
Verify access by running the
CONTROLaccess to the
MVS.VARY.TCPIP.SYSPLEXprofile is required. For more information, see the article VARY TCPIP,,SYSPLEX in the IBM documentation.
In the MVS console, run the
VARY TCPIPMVS command to place instance B in quiescing mode.
VARY TCPIP,,SYSPLEX,QUIESCE,PORT=<api gateway port>
Stop instance B.
Start the upgraded instance.
Note: For more information about stopping and starting instances, see Starting and stopping Zowe.
Wait until instance B is up and synchronized with instance A, wherein services are registered in all Discovery Services. To verify that instance B is up and sychronized with instance A, check the following accessibility conditions:
- Access to API Gateway through the LPAR URL is possible.
- Access to the Discovery Service homepage in both instance A and instance B to compare registered services.
Resume connections from Sysplex Distributor to instance B by running the
VARY TCPIPMVS command in the MVS console.
VARY TCPIP,,SYSPLEX,RESUME,PORT=<api gateway port>
Successful completion of these steps enables Zowe to run in high availability mode, whereby traffic is balanced between instances running in different maintainance levels.
Verifying the new connection
Use the following checks to verify Zowe is running correctly with the new configuration:
- Verify that Discovery Services contain all of the registered services from both instances.
- Check that the API Gateway home page shows the number of instances running simultaneously.