Upgrade and Downgrade

OpenResty Edge introduced a dedicated upgrade and downgrade page in version 25.3.10-1, aimed at optimizing the upgrade process and improving configuration compilation speed. This document will introduce you to this feature.

Important Notes

  • Before performing an upgrade, it is recommended to back up important data, such as the OpenResty Edge Admin database
  • Before proceeding with an upgrade, please contact us so that we can provide timely technical support
  • For production environments, it is recommended to verify the upgrade process in a test environment first

Upgrade Process

Creating an Upgrade Task

  1. Navigate to the Upgrade/Downgrade page in the console

  2. Click the “New Task” button to create an upgrade task:

    Create New Upgrade Task

  3. Fill in the target version number and related information in the pop-up form:

    Fill in Upgrade Task Details

Managing Upgrade Tasks

After creating a task, you can view and manage all upgrade/downgrade tasks in the task list:

Upgrade Task List

Executing Upgrade Steps

Click the action button on the right side of the task to expand the detailed upgrade process steps:

Upgrade Steps Details

The first few steps involve upgrading OpenResty Edge components, which require you to log in to the respective servers to perform operations. Please follow the command prompts to complete each step.

During the “Upgrade OpenResty Edge Admin Database Schema” step, you will be prompted to back up the database. Please ensure you have sufficient disk space for the backup.

After completing the component upgrades, the system will guide you through configuration recompilation:

Single Application Recompilation

In this step:

  1. Enter the application’s domain name and press Enter to search
  2. Select the specific application from the search results
  3. Click the “Recompile” button to perform configuration recompilation
  4. After recompilation is complete, test whether the application is working properly

Best Practice: It is recommended to first recompile and test non-core applications, and after confirming there are no issues, proceed to handle and test core applications.

Batch Asynchronous Recompilation

For recompiling a large number of applications, the system provides an asynchronous batch processing feature:

Asynchronous Batch Recompilation

You can set the number of concurrent compilations, which is recommended to be no more than the number of CPU cores on your Edge Admin server for optimal performance.

Completing the Upgrade

After all steps are successfully completed, the system will display the completion page:

Upgrade Complete

Downgrade Process

Creating a Downgrade Task

Downgrading is typically performed when issues are encountered during the upgrade process. If an upgrade step fails, you can:

  1. Click the “Downgrade” button to initiate the downgrade process:

    Initiate Downgrade

  2. The system will automatically close the current upgrade task and guide you to create a downgrade task:

    Downgrade Task Details

    The system will automatically populate version information, which you can adjust as needed.

Executing Downgrade Steps

The steps for a downgrade task are automatically generated based on the failed steps in the upgrade, so each downgrade task may contain different steps:

Downgrade Steps

Follow the page prompts to complete the downgrade operation step by step, ensuring the system returns to its previous stable version.

By following the guidance in this document, you can safely and efficiently complete the upgrade and downgrade operations of OpenResty Edge.