【发布时间】:2018-04-05 22:57:41
【问题描述】:
我有一个带有 2 个节点的 Service Fabric 群集。 每个节点都通过无状态的 Asp.net Core 2.0 服务向 Web 公开。 我正在使用 HttpSys。
每个节点都有一个唯一的 IP 地址和以下端口:
节点 1 上的第一个服务:
<Endpoint Protocol="http" Name="ServiceEndpoint" Type="Input" Port="80" />
<Endpoint Protocol="http" Name="ServiceEndpointSecure" Type="Input" Port="443" />
节点 2 上的第二个服务
<Endpoint Protocol="http" Name="ServiceEndpoint" Type="Input" Port="81" />
<Endpoint Protocol="http" Name="ServiceEndpointSecure" Type="Input" Port="444" />
我希望这两个服务都侦听端口 80 和 443,但是如果我更改 ServiceManifest,我会看到端口正在使用中的错误。
如何使这项工作成为具有两个不同 IP 和与 IP 关联的两个不同 DNS 名称的两个不同节点上的服务?
【问题讨论】: