2016-06-28 54 views
0

我最近開始使用服務結構。我加在Azure上一個新的服務織物集羣(不安全),我創建了2個無狀態的Web API服務演示解決方案如下:ERR_CONNECTION_TIMED_OUT當試圖訪問服務結構服務

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> 

我能夠訪問使用本地端點默認的控制器(ValuesController):

http://localhost:8698/api/values 

但是,當我嘗試使用azure端點時,我在Chrome上收到ERR_CONNECTION_TIMED_OUT錯誤。

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

有什麼我失蹤了嗎?

回答

0

您必須通過Load Balancer探針在您的天藍色羣集中打開該端口。您可以在集羣創建時通過ARM模板或事後進行此操作。對於現有集羣,請轉到資源組,然後轉到LB平衡器,然後進行探測。 SF中的默認開放端口是19080年。如果你只是切換到該端口,它將工作,如果你不使用SSL。

+0

謝謝,我會試試看 –