简体   繁体   English

服务结构端点端口配置

[英]Service fabric endpoint port configuration

I want to deploy multiple instances of service fabric application to one service fabric cluster. 我想将服务结构应用程序的多个实例部署到一个服务结构群集。 In order to do it I need to have ability to configure port in service manifest (so different instances are running on different port). 为了做到这一点,我需要具有在服务清单中配置端口的能力(因此,不同的实例在不同的端口上运行)。 Every example which i seen use 'hardcoded' value in this file. 我看到的每个示例在此文件中均使用“硬编码”值。 Is it possible to have it configured in ApplicationParameters or in Settings.xml file ? 是否可以在ApplicationParameters或Settings.xml文件中进行配置?

Another option which I consider is to use tokenization to solve my problem (so i have token in service manifest, which will be replaced by tokenization task during VSTS deployment). 我考虑的另一种选择是使用令牌化解决我的问题(因此我在服务清单中有令牌,在VSTS部署期间将由令牌化任务代替)。 But in that case I don't have simple way to run service locally in Visual Studio (or maybe I have ? I will also appreciate suggestions how to do it). 但是在那种情况下,我没有一种简单的方法可以在Visual Studio中本地运行服务(或者也许我有这种方法?我也将赞赏如何做到这一点的建议)。

Thank you in advance. 先感谢您。

It is not possible to override the port. 无法覆盖端口。 If you do not care about a particular port, leave it blank or set to 0. We are working on allowing to override the port. 如果您不关心特定的端口,请将其保留为空白或设置为0。我们正在努力允许覆盖该端口。

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

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