簡體   English   中英

部署到Azure時,Service Fabric應用程序沒有響應

[英]No response from Service Fabric Application when deployed to Azure

我的本地服務結構應用程序運行沒有問題: 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>

我添加了一個探針如下:

在此輸入圖像描述

......和這個LB規則

在此輸入圖像描述

我沒有看到任何日志,錯誤或任何其他內容,所以我現在很難過。 任何幫助將不勝感激。

事實證明我的問題是由探針上的“路徑”設置引起的。 我的API沒有默認控制器,因此路徑“/”返回404。

我在我的web api中創建了一個Ping控制器,並將探測器上的路徑更新為“/ ping”,並使其正常工作。

我發現在“Service Fabric Explorer”中沒有報告“健康”問題有點奇怪,或者我在這里遺漏了一些東西?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM