本地群集不允许本地服务结构群集中具有相同版本的相同应用程序类型 [英] Local cluster does not allow same application type with a different version in local service fabric cluster

查看:73
本文介绍了本地群集不允许本地服务结构群集中具有相同版本的相同应用程序类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下帖子(在stackoverflow.com上):

The following post (on stackoverflow.com):

Azure Service Fabric中的应用程序设计

建议可以并排安装相同应用程序类型和不同版本.我试图在本地集群上安装新版本的应用程序(fabric:/ServiceFabApp1,具有新版本2.0.0和ServiceFabApp1Type)(已经具有相同的应用程序名称,具有与版本1.0.3相同的应用程序类型,即fabric:/具有现有版本1.0.3和ServiceFabApp1Type的ServiceFabApp1)并出现以下错误:

suggested that it is possible to have side by side installation of same application type with a different version. I tried to install a new version of application (fabric:/ServiceFabApp1 with a new version of 2.0.0 and of ServiceFabApp1Type) on my local cluster (that already has same application name with same application type with version 1.0.3 i.e. fabric:/ServiceFabApp1 with a existing version of 1.0.3 and of ServiceFabApp1Type) and got following error:

名称为"fabric:/ServiceFabApp1"的应用程序已存在,其类型为"ServiceFabApp1Type",版本为 1.0.3. 您必须先删除现有的应用程序,然后才能部署或提供新的应用程序 该应用程序的新名称.

An application with name 'fabric:/ServiceFabApp1' already exists, its Type is 'ServiceFabApp1Type' and Version is '1.0.3'. You must first remove the existing application before a new application can be deployed or provide a new name for the application.

这是设计使应用程序类型(对于多个版本)可以是相同的,但是每个版本的应用程序名称必须不同吗?还是它根本无法在本地群集上运行,而是可以在天蓝色的云中运行?还是我对以上链接中的信息的解释不正确?

Is this by design that application type (for multiple versions) can be same but the application name must be different for each version? Or it simply does not work on the local cluster but works in the azure cloud? Or is my interpretation of the information in the above link is incorrect?

推荐答案

应用程序 types (例如ServiceFabricApp1Type)可以具有一个或多个版本,但是应用程序 instance (例如.fabric:/ServiceFabricApp1)一次只能运行一个版本.

Application types (eg. ServiceFabricApp1Type) can have one or more versions but an application instance (eg. fabric:/ServiceFabricApp1) can only be running one version at a time.

因此,如果要在本地群集中运行两个不同版本的应用程序类型,则将需要两个不同的应用程序实例,例如,可以拥有运行版本1.0.0的fabric://ServiceFabricApp1和fabric:/ServiceFabricApp2运行版本2.0.0.使用VS工具执行此操作的最简单方法是创建两个应用程序参数文件,每个文件定义一个不同的应用程序实例名称.然后,您可以选择要构建的当前版本作为目标的当前实例.要在VS中不同类型的版本之间来回移动,您可能只想为每个类型创建一个分支.

Thus, if you want to have two different versions of your application type running in your local cluster, you will need two different application instances, such that you can have, say, fabric://ServiceFabricApp1 running version 1.0.0 and fabric:/ServiceFabricApp2 running version 2.0.0. The easiest way to do this with the VS tools is to create two application parameters files, each of which defines a distinct app instance name. You can then choose which of the current instances to target with the current version that you're building. To move back and forth between versions of the type in VS, you'll probably want to just create a branch for each.

这篇关于本地群集不允许本地服务结构群集中具有相同版本的相同应用程序类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆