2016-08-03 62 views
3

我的服務織物的應用程序在本地運行沒有問題: http://localhost:8080/api/values從服務織物應用程序無響應時部署到Azure的

當部署到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> 

我加了一個探頭如下:

enter image description here

...這LB規則

enter image description here

我沒有看到任何日誌,錯誤或任何東西,所以我現在很難過。任何幫助將不勝感激。

回答

2

原來我的問題是由探頭上的「路徑」設置引起的。我的API沒有默認控制器,因此路徑「/」返回了一個404.

我在我的web api中創建了一個Ping控制器,並更新了探針上的路徑爲「/ ping」,並且它使它工作。

我覺得有點奇怪,在「Service Fabric Explorer」中沒有報告「健康」問題,或者我在這裏丟失了某些東西?

+1

您的服務健康狀況良好 - 服務沒有失敗。它只是無法使用它的任何東西! –

相關問題