已部署的旧版Dify可以一键升级或手动升级到新版,而无需重新部署。
一键升级
一键升级仅适用于Dify 1.7.1及以上版本。
一键同时升级多个Dify组件,升级过程会中断Dify服务,可能导致业务流量受损,适用于对业务中断不敏感的场景,建议在流量低峰期操作。
在SAE应用中心中,在顶部选择目标地域,点击已部署场景,点击场景ID跳转到详情页。
在右上角点击升级服务实例,选择目标升级版本,开始升级。
在升级历史页签,查看升级状态,等待升级成功。
手动升级
逐个升级Dify组件,通过分批发布应用或灰度发布应用可以实现升级过程中业务不中断,流量无损。
逐个进入Dify组件的应用详情页,执行升级操作:
在SAE应用列表中,在顶部选择目标地域和命名空间,点击目标应用ID跳转到应用详情页。
在左侧导航栏点击基础信息,在右上角点击部署应用。
在基础信息设置区域,应用部署方式选择镜像部署:
镜像网络选择公网。
镜像地址选择目标Dify版本中对应当前组件的镜像地址,如下所示。
Dify组件的版本与镜像地址
注意将镜像地址中的
${region_id}
替换为实际的部署地域。Dify版本
Dify组件
非可观测版的组件镜像地址
可观测版的组件镜像地址
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
单击确定。等待应用部署完成。
所有Dify组件升级成功后,即可开始使用新版Dify。