[英]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: 这是一些类似的帖子:
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.