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

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

问题描述

我正在使用 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.

内部异常:HResult=-2146233088消息=错误 -4091 EADDRINUSE 地址已在使用中来源=Microsoft.AspNetCore.Server.Kestrel状态码=-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>

非常感谢任何帮助.

谢谢

推荐答案

根据微软官方文档,部署到本地集群时需要保证只有一个服务实例在运行,否则会遇到与多个进程监听同一个端口冲突.部署到 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天全站免登陆