Upgrade Dify (public preview)

Updated at:

You can upgrade previously deployed versions of Dify to a new version via a one-click or manual upgrade, without redeploying.

Important

Scope of responsibility: Applications deployed from the App Center, unless otherwise specified, are identical to their open-source community versions. You are responsible for all stability risks and security vulnerabilities associated with the open-source software. The SAE service guarantee is limited to the stability of the underlying runtime and does not cover the quality, security, or maintenance of the open-source software itself. Conduct thorough technical reviews and security audits before using the applications in a production environment.

One-click upgrade

Note

The one-click upgrade is available only for Dify 1.7.1 and later versions.

The one-click upgrade process updates all Dify components simultaneously, causing a service interruption that can impact business traffic. This method is suitable for scenarios insensitive to service interruptions. Perform the upgrade during off-peak hours.

  1. In the SAE App Center, select the target region at the top of the page. Click Deployed Scenarios, and then click the Scenario ID to view the details page.

  2. In the upper-right corner, click Upgrade Service Instance. Select the target Upgrade Version, and then click Start Upgrade.

  3. On the Upgrade History tab, check the Upgrade Status and wait for the upgrade to complete.

Manual upgrade

This method involves upgrading Dify components one by one. You can use a phased release or a canary release to perform the upgrade with zero downtime or traffic impact.

  1. Navigate to the application details page for each Dify component and upgrade it as follows:

    1. In the SAE Application list, select the target region and namespace at the top of the page. Click the target application's Application ID to open its details page.

    2. In the left-side navigation pane, click Basic Information. In the upper-right corner, click Deploy Application.

    3. In the Basic Information Settings section, for Application Deployment Method, select Deploy by using image:

      1. For Image Network, select Public network.

      2. For Image Address, select the image address from the table below that matches the current component and target Dify version.

      Dify component versions and image addresses

      Replace ${region_id} in the image address with your actual deployment region.

      Dify version

      Dify component

      Non-observable image address

      Observable image address

      1.1.3

      dify-api/dify-worker

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-api-v1.1.3

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-api-v1.1.3

      dify-web

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-web-v1.1.3

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-web-v1.1.3

      dify-plugin-daemon

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-plugin-daemon-v0.0.6-local

      registry.cn-hangzhou.aliyuncs.com/private-mesh/hellob:dify-plugin-daemon-0.0.6-local

      dify-sandbox

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-sandbox-v0.2.11

      registry.cn-hangzhou.aliyuncs.com/private-mesh/hellob:dify-sandbox-0.2.11

      1.2.0

      dify-api/dify-worker

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-api-v1.2.0

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-api-v1.2.0

      dify-web

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-web-v1.2.0

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-web-v1.2.0

      dify-plugin-daemon

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-plugin-daemon-v0.0.6-local

      registry.cn-hangzhou.aliyuncs.com/private-mesh/hellob:dify-plugin-daemon-0.0.6-local

      dify-sandbox

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-sandbox-v0.2.11

      registry.cn-hangzhou.aliyuncs.com/private-mesh/hellob:dify-sandbox-0.2.11

      1.3.0

      dify-api/dify-worker

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-api-v1.3.0

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-api-v1.3.0

      dify-web

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-web-v1.3.0

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-web-v1.3.0

      dify-plugin-daemon

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-plugin-daemon-v0.0.9-local

      registry.cn-hangzhou.aliyuncs.com/private-mesh/hellob:dify-plugin-daemon-0.0.8-local

      dify-sandbox

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-sandbox-v0.2.11

      registry.cn-hangzhou.aliyuncs.com/private-mesh/hellob:dify-sandbox-0.2.11

      1.4.1

      dify-api/dify-worker

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-api-v1.4.1

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-api-v1.4.1

      dify-web

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-web-v1.4.1

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-web-v1.4.1

      dify-plugin-daemon

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-plugin-daemon-v0.1.1-local

      registry.cn-hangzhou.aliyuncs.com/private-mesh/hellob:dify-plugin-daemon-0.0.10-local

      dify-sandbox

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-sandbox-v0.2.12

      registry.cn-hangzhou.aliyuncs.com/private-mesh/hellob:dify-sandbox-0.2.12

      1.6.0

      dify-api/dify-worker

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-api-v1.6.0

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-api-v1.6.0

      dify-web

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-web-v1.6.0

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-web-v1.6.0

      dify-plugin-daemon

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-plugin-daemon-v0.1.3-local

      registry.cn-hangzhou.aliyuncs.com/private-mesh/hellob:dify-plugin-daemon-0.1.3-local

      dify-sandbox

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-sandbox-v0.2.12

      registry.cn-hangzhou.aliyuncs.com/private-mesh/hellob:dify-sandbox-0.2.12

      1.7.1

      dify-api/dify-worker

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-api-v1.7.1

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-api-v1.7.1

      dify-web

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-web-v1.7.1

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-web-v1.7.1

      dify-plugin-daemon

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-plugin-daemon-v0.2.0-local

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-plugin-daemon-v0.2.0-local-monitor

      dify-sandbox

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-sandbox-v0.2.12

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-sandbox-v0.2.12-monitor

      1.7.2

      dify-api/dify-worker

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-api-v1.7.2

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-api-v1.7.2

      dify-web

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-web-v1.7.2

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-web-v1.7.2

      dify-plugin-daemon

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-plugin-daemon-v0.2.0-local

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-plugin-daemon-v0.2.0-local-monitor

      dify-sandbox

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-sandbox-v0.2.12

      registry.${region_id}.aliyuncs.com/sae-serverless-demo/sae-demo:dify-sandbox-v0.2.12-monitor

    4. Click OK. Wait for the application deployment to complete.

  2. Once all Dify components are successfully upgraded, you can start using the new Dify version.