Azure服务结构实例数 [英] Azure service fabric Instance count

查看:175
本文介绍了Azure服务结构实例数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用天蓝色的服务结构来进行POC.我的服务已部署在本地群集中,并且可以在Local.xml中使用默认设置正常运行.

I am working on a POC with azure service fabric. Deployed my service in a local cluster and it's working fine with default settings in Local.xml.

当我更改实例计数时,它会引发以下异常.更改实例计数的选项在哪里?基本上,我现在尝试在两个节点上运行我的服务.默认值为1时,它可以正常工作.

The moment I change the instance count it's throwing following exception. Where is the option to change the instance count? Basically i am trying to run my service on two nodes now. It's working fine when it is the default value that is 1.

InnerException: HResult = -2146233088 消息=错误-4091 EADDRINUSE地址已在使用中 源= Microsoft.AspNetCore.Server.Kestrel StatusCode = -4091

InnerException: HResult=-2146233088 Message=Error -4091 EADDRINUSE address already in use Source=Microsoft.AspNetCore.Server.Kestrel StatusCode=-4091

我的local.xml复制到这里

My local.xml is copied here

  <Parameters>
    <Parameter Name="Product_InstanceCount" Value="2" />
  </Parameters>

任何帮助都很感激.

谢谢

推荐答案

根据Microsoft官方文档,您需要确保在部署到本地群集时仅运行该服务的一个实例.否则,您将遇到与侦听同一端口的多个进程发生冲突.部署到Azure时可以设置多个实例.

According to the official Microsoft documentation , you need to ensure that only one instance of the service is running when you deploy to a local cluster.Otherwise you will run into conflicts with multiple processes listening to same port .You can set multiple instances when you deploy to Azure.

请参阅文档:- https://azure.microsoft. com/en-us/documentation/articles/service-fabric-add-a-web-frontend/

这篇关于Azure服务结构实例数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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