【问题标题】:ERR_CONNECTION_TIMED_OUT when trying to access a Service Fabric service尝试访问 Service Fabric 服务时出现 ERR_CONNECTION_TIMED_OUT
【发布时间】:2016-10-30 11:12:32
【问题描述】:

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

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>

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

http://localhost:8698/api/values

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

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

我有什么遗漏的吗?

【问题讨论】:

    标签: azure azure-service-fabric


    【解决方案1】:

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

    【讨论】:

    • 谢谢,我试试看
    猜你喜欢
    • 2018-08-08
    • 2017-09-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-15
    • 1970-01-01
    • 2012-01-29
    • 2017-06-22
    相关资源
    最近更新 更多