简体   繁体   English

在服务结构项目中部署选定的微服务

[英]Deploying selected microservices in service fabric project

My service fabric application has 9 microservices(stateful and stateless). 我的服务结构应用程序有9个微服务(有状态和无状态)。 I need to deploy only specific microservices to service-fabric. 我只需要将特定的微服务部署到service-fabric。 Any possible way I can do the same using powershell. 任何可能的方式我都可以使用PowerShell做同样的事情。 I looked into differential packaging but its not the correct way 我研究了差别包装,但这不是正确的方法

app1 2.0.0 <-- new version service1 2.0.0 <-- new version code 2.0.0 <-- new version config 1.0.0 service2 1.0.0 code 1.0.0 config 1.0.0

Can anyone suggest anything here? 谁能在这里提出任何建议?

  • Deploying the app with elements that have different versions will only replace the changed parts and leave the unchanged elements untouched. 使用具有不同版本的元素部署应用程序将仅替换已更改的部分并保持未更改的元素不变。
  • Alternatively, like you said, you can create a 'diff' package with only the new bits. 或者,就像你说的那样,你可以创建一个只包含新位的'diff'包。 The result will be the same. 结果将是相同的。 From the page where you found the version sample: 从您找到版本示例的页面

In other words, create a complete application package normally, then remove any code/config/data package folders for which the version has not changed. 换句话说,通常创建一个完整的应用程序包,然后删除版本未更改的任何代码/配置/数据包文件夹。

More info here and here . 更多信息在这里这里

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

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