简体   繁体   English

使用已部署的版本升级/降级服务结构应用程序

[英]Upgrade/downgrade service fabric application with already deployed version

In Service Fabric cluster, If application has multiple versions(say 1.0.0,1.0.1,1.0.2), then how can we shift the application to one version to another version(say active is 1.0.0, then I wanted to shift to 1.0.1) with out redeploying the application. 在Service Fabric群集中,如果应用程序具有多个版本(例如1.0.0,1.0.1,1.0.2),那么我们如何才能将应用程序从一个版本转移到另一个版本(例如活动版本是1.0.0),那么我想转移到1.0.1),而无需重新部署应用程序。 Is there a PowerShell command to do this? 有PowerShell命令可以执行此操作吗?

You should be able to use the PowerShell command 您应该能够使用PowerShell命令

Start-ServiceFabricApplicationUpgrade

This being said I did hit an issue with my local cluster, telling me I couldn't upgrade / roll back the application if the service description had changed, which it hadn't. 据说我确实遇到了本地集群的问题,告诉我如果服务描述已更改,则无法升级/回滚该应用程序,但没有更改。 Using an Azure hosted cluster this worked as expected, perhaps an inconsistency with how the package is copied into the image store. 使用Azure托管群集可以按预期工作,这可能与将包复制到映像存储中的方式不一致。

Depending on what you are attempting to achieve you could also look at named instance where you are able to deploy multiple versions of an application at once, for A - B testing. 根据您要实现的目标,您还可以查看命名实例,在该实例中,您可以一次部署应用程序的多个版本以进行A-B测试。

Here are some similar posts: 这是一些类似的帖子:

Post 1 Post 2 发布1 发布2

EDIT: 编辑:

Thanks to Aleksey L for the comment below. 感谢Aleksey L在下面的评论。 With a bit of messing around due to types not being the same and as long as you haven't changed any parameters between versions this will work,if you have you will need to manually build up the hash table. 由于类型不相同,并且在版本之间没有更改任何参数的情况下,可能会有些混乱,如果可以的话,这将起作用,如果需要,您将需要手动构建哈希表。

在此处输入图片说明

在此处输入图片说明

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

相关问题 降级 Service Fabric 应用程序版本 - Downgrade the Service Fabric Application version 升级服务结构应用程序 - Upgrade Service Fabric Application Azure Service Fabric部署:是否可以在部署之前强制删除应用程序? 还是强制进行相同版本的升级? - Azure Service Fabric Deploy: Is there a way to force remove an application prior to deployment? Or Force an upgrade that is same version? VSTS版本上的Service Fabric服务版本升级部署失败 - Deployment for Service Fabric service version upgrade fails on VSTS Release 未在托管服务或Development Fabric中运行。 部署版本中的错误 - Not running in a hosted service or the Development Fabric. Error in deployed version Azure Service Fabric:取消配置应用程序版本 - Azure Service Fabric: Unprovision application version 部署到 Azure 时 Service Fabric 示例应用程序丢失日志消息 - Service Fabric Sample Application missing log messages when deployed to Azure 部署到Azure时,Service Fabric应用程序没有响应 - No response from Service Fabric Application when deployed to Azure Azure Service Fabric 自动升级 - Azure Service Fabric automatic upgrade 在服务矩阵Azure上升级服务无法访问的状态 - Upgrade service unreachable status on service fabric Azure
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM