简体   繁体   English

降级 Service Fabric 应用程序版本

[英]Downgrade the Service Fabric Application version

When I'm deploying the Service Fabric Application with new version, the complete application is getting replaced with new version in service fabric cluster.当我使用新版本部署 Service Fabric 应用程序时,整个应用程序将被 Service Fabric 集群中的新版本替换。 And it is working fine as expected in upgrade scenario.它在升级场景中按预期工作正常。 But, When I deploy the application with downgraded version, application is not getting replaced rather it is again creating an application with older version.但是,当我使用降级版本部署应用程序时,应用程序不会被替换,而是再次使用旧版本创建应用程序。

After the application deployment, I have two different versions of same application in service fabric cluster.应用程序部署后,我在服务结构集群中有两个不同版本的相同应用程序。

How we can downgrade the application to older version with application deployment.我们如何通过应用程序部署将应用程序降级到旧版本。 Does we need to change settings/parameters for cluster or in power shell command.我们是否需要更改集群或 power shell 命令的设置/参数。 Service Fabric cluster with two versions after deployment of older version image部署旧版本映像后具有两个版本的 Service Fabric 群集

Thanks.谢谢。

This is a view of the Service Fabric Image store, which shows the current versions available, below this you should be able to see the actual version that is being used within the cluster, see below, versions 1.0.0 and 1.0.1 are currently in the image store but version 1.0.0 is the version being used.这是 Service Fabric 映像存储的视图,其中显示了当前可用的版本,在此下方您应该能够看到集群中正在使用的实际版本,请参见下文,当前版本为 1.0.0 和 1.0.1在图像存储中,但版本 1.0.0 是正在使用的版本。

在此处输入图片说明

You can confirm this by looking at your nodes as well.您也可以通过查看您的节点来确认这一点。

在此处输入图片说明

EDIT:编辑:

To remove the unwanted versions from the cluster run the following in PowerShell, obvious replace with your application name and version.要从集群中删除不需要的版本,请在 PowerShell 中运行以下命令,明显替换为您的应用程序名称和版本。


> Unregister-ServiceFabricApplicationType -ApplicationTypeName DowngradeDemoType -ApplicationTypeVersion 1.0.1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM