Manuel des bonnes pratiques > Environnement à deux systèmes - Zéro Downtime

Two-Installation Environment

Setting up a two-installation environment for the Zero Downtime Upgrade is the best practice in order to have a base and a target installation ready to upgrade and test properly.

Notes

The ZDU is available as of v11.2 of the Automation Engine, therefore the following instructions refer to that version as lowest possible base version.

In the documents pertaining to the ZDU, all references to base and target installation also mean base and target version.

Two special modes exist for this upgrade function, the compatibility mode and the parallel mode.
Compatibility mode:
This mode is started as soon as you choose the option BEGIN from the ZDU wizard.
In this mode, which is in effect until you choose the option FINALIZE, certain system optimization functions are not available. Also system performance will be reduced noticeably.
Parallel mode: A mode during the upgrade when base and target version processes are active at the same time.

Whenever you upgrade your system, Automic strongly recommends using a test system for extensive testing before installing upgrades on your production system.

General

In order to be able to seamlessly upgrade the Automation Engine without any downtime, using the Zero Downtime Upgrade function, you have to set up two separate installations.
They serve to ensure that a base and target version are available for conducting the upgrade and testing the proper running of tasks and jobs in the target version.
As base and target version CPs/WPs will be active during the parallel mode, you have to set up two separate installations in separate bin directories.

Initially both installations will be the same. In the course of the upgrade one of them will be upgraded to the target version, whereas the other (base) installation will subsequently be shut down, as soon as all processes and tasks run satisfactorily in the target version.

These may be two installations on:

  1. the same host (recommended)
  2. two separate hosts

You can use 1. or 2. with a Proxy, details you find below.

The two alternatives can be realized using either two (new) AE installations or an existing AE installation, by duplicating it.

I. Two-Installation Environment - Two Separate Installations

  1. Set up two installations of the AE system you want to upgrade from (v11.2 or higher).
    1. Use either the same host and set up two separate installations.
    2. Alternatively use two separate hosts and separate installations.
  2. The installation that will be used as target version needs to be set up with the Automation Engine directory and Utility directory only. Those are needed for upgrading.
  3. The INI and configuration files of these two core components in the target version installation have to contain the same configuration information as the ones in the base version installation.
  4. You also have to configure double the amount of ports than are usually necessary for the correct working of an AE system.
    1. These ports have to be known to any clients that are going to connect to a CP, therefore enter them either in the INI or the configuration files.
      This is necessary, because at some point during the upgrade base and target version CPs have to be active in the parallel mode at the same time.
  5. Start the ZDU by starting the base version installation and the ZDU there.

Advantages:

Disadvantages:

II. Two-Installation Environment - Duplicate an Existing Installation

You will reuse the files of an existing AE installation, following these steps:

  1. You have to use two separate bin directories, in which the INI and configuration files of the Automation Enginebin directory and the Utilities bin directory will be contained.
  2. Create a bin directory for the contents of the Automation Engine folder and the Utilities folder, respectively, in a location of your choice.
  3. Copy and paste all files from those two folders in the existing installation to the respective folders in the new location.
    This second location and the new folders there represent the target version installation for the ZDU process.
  4. Start the original installation and start the ZDU.

Advantage:

Disadvantages:

III. Combine with a Proxy

You can execute the ZDU by using the most hassle-free solution and run a Proxy.

The Proxy combines and reroutes CP connections, while agents just connect to the Proxy, using the ports or port ranges configured in it.

  1. You have to set up one of the installation variants explained above, use a two-installation setup or duplicate your existing installation.
  2. Configure the second installation in the Proxy accordingly.
  3. The Proxy will then reroute connections to either the base or target version CPs, as necessary.

Advantages:

 

Illustration 1: Proxy-based two-system environment solution

 

See also:

Upgrading an AE System