【发布时间】:2019-02-06 09:36:38
【问题描述】:
这是一个容器部署。 在本地运行时,它使用机器名称:http://joemachine:8229/account/Index。 Service Fabric 项目的“应用程序 URL”属性是“http://{MachineName}:8229”
部署后,在所有应用程序菜单下,显示
面料:/Application1
集群网址:http://abcf12.uksouth.cloudapp.azure.com:19000 下面给出的 Manisfest.xml 的终点
有反向代理端口(19081),下面清单中有一个端口。哪个端口会影响 URL? 另外由于机器名称是在属性中提供的,http://{MachineName}:8229,我如何找到容器的机器名称 因为这是在 URL 中使用的?
访问应用程序的完整 URL 是什么?
<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="AST.XyTypeEndpoint" Type="Input" Port="8229" />
</Endpoints>
编辑: 在 SF explorer 最里面的节点,Address->Endpoints,有一个 10.0.0.2:8229 IP 给定。我试过这个,但它不工作。 节点名称也是机器名称吗?我尝试将它放在 URL 中,但它也不起作用。
【问题讨论】:
-
你试过
http://abcf12.uksouth.cloudapp.azure.com:8229/account/Index吗? -
或使用反向代理
http://abcf12.uksouth.cloudapp.azure.com:19080/Application1/{your_service_name}/account/Index。注意:反向代理的默认端口是19081而不是19080 -
@RomanMarusyk,是的,试过这个 '.com:8229/account/Index' 不起作用。现在将尝试另一个
-
@RomanMarusyk 都不起作用。添加了有问题的编辑部分
-
您的应用程序中的服务名称是什么(Application1)?