Service Fabric - 具有相同端点的多个服务
Service Fabric - multiple services with same endpoint
有没有办法让同一个集群中的多个不同的 SF 服务监听同一个端点 http 80?服务的 WebAPI 具有不同的路由。
<Endpoint Protocol="http" Name="ServiceEndpoint" Type="Input" Port="80" />
我遇到一个错误:
Failed to bind to address http://[::]:80: address already in use.
有没有办法避免这种情况?
如果你想使用相同的 IP,那么你必须使用端口共享,即 http.sys in windows More info here
如果您有不同的 IP 地址,则可以为每个服务分配唯一的 IP 地址。 More info here
否则使用反向代理使所有服务具有相同的端口,并且您指定路径。
希望对您有所帮助
有没有办法让同一个集群中的多个不同的 SF 服务监听同一个端点 http 80?服务的 WebAPI 具有不同的路由。
<Endpoint Protocol="http" Name="ServiceEndpoint" Type="Input" Port="80" />
我遇到一个错误:
Failed to bind to address http://[::]:80: address already in use.
有没有办法避免这种情况?
如果你想使用相同的 IP,那么你必须使用端口共享,即 http.sys in windows More info here
如果您有不同的 IP 地址,则可以为每个服务分配唯一的 IP 地址。 More info here
否则使用反向代理使所有服务具有相同的端口,并且您指定路径。
希望对您有所帮助