azure - 尝试访问 Service Fabric 服务时出现 ERR_CONNECTION_TIMED_OUT

标签 azure azure-service-fabric

我最近开始使用 Service Fabric。我在 Azure 上添加了一个新的 Service Fabric 群集(不安全),并使用 2 个无状态 Web API 服务创建了一个演示解决方案,如下所示:

Service Fabric Demo Solution

AnotherAPI 的端点配置如下:

<Endpoints>
  <!-- This endpoint is used by the communication listener to obtain the port on which to 
       listen. Please note that if your service is partitioned, this port is shared with 
       replicas of different partitions that are placed in your code. -->
  <Endpoint Protocol="http" Name="ServiceEndpoint" Type="Input" Port="8698" />
</Endpoints>

我可以使用本地端点访问默认 Controller (ValuesController):

http://localhost:8698/api/values

但是当我尝试使用 azure 端点时,我在 Chrome 上收到 ERR_CONNECTION_TIMED_OUT 错误。

http://{azure-ip-address}:8698/api/values

我有什么遗漏的吗?

最佳答案

您必须通过负载均衡器探针在 Azure 集群中打开该端口。您可以在集群创建时通过 ARM 模板或事后执行此操作。对于现有集群,请转到资源组,然后转到 LB 平衡器,然后进行探测。 SF 中默认开放的端口是 19080。如果您只是切换到该端口,则在不使用 SSL 的情况下它也可以工作。

关于azure - 尝试访问 Service Fabric 服务时出现 ERR_CONNECTION_TIMED_OUT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38070891/

相关文章:

azure - 我们如何在具有相同入站和出站 IP 地址的一个网络中托管所有 Azure 资源?

azure应用程序服务,容器在一段时间后没有暴露的端口关闭

.net - 如何限制Azure临时环境访问资源

azure-service-fabric - 无法为 RPC 访问 Azure Service Fabric 集群 : Machine 10. 0.0.X

azure - Service Fabric 应用程序 vmImageSku

azure-devops - Service Fabric 应用程序部署超时

c# - Service Fabric 可靠集合 : serialization issue

azure - OAuth 2.0 {"error_description":"Invalid issuer or signature."} 在 postman 中

azure - 使用 Azure 通知中心向半径内的 Android 设备发送通知

c# - ServiceEventSource 在 Service Fabric Web API 项目中被禁用