【问题标题】:No response from Service Fabric Application when deployed to Azure部署到 Azure 时,Service Fabric 应用程序没有响应
【发布时间】:2016-12-09 09:58:04
【问题描述】:

我的服务结构应用程序在本地运行没有问题: http://localhost:8080/api/values

当部署到 Azure 时,它​​只是静止不动,我最终会超时。 http://cluster-myapp.centralus.cloudapp.azure.com/api/values

在四处挖掘之后,我发现一些信息表明需要使用新规则和新探测来更新 Azure 负载均衡器。我这样做了,但仍然是同样的问题。这是我所拥有的:

ServiceManifest.xml

  <Resources>
<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="8080" />
</Endpoints>

我添加了一个 Probe 如下:

...还有这个 LB 规则

我没有看到任何日志、错误或任何东西,所以我现在很难过。任何帮助将不胜感激。

【问题讨论】:

    标签: azure azure-service-fabric


    【解决方案1】:

    原来我的问题是由探测器上的“路径”设置引起的。我的 API 没有默认控制器,因此路径“/”返回 404。

    我在我的 web api 中创建了一个 Ping 控制器,并将 Probe 上的路径更新为“/ping”,然后它就可以工作了。

    我觉得“Service Fabric Explorer”中没有报告“健康”问题有点奇怪,或者我在这里遗漏了什么?

    【讨论】:

    • 您的服务运行状况良好 - 服务没有失败。它只是没有任何东西可以使用它!
    猜你喜欢
    • 1970-01-01
    • 2017-04-16
    • 2017-02-10
    • 2019-03-28
    • 2019-02-14
    • 2021-09-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多