本文介绍了从远程计算机对Actor服务的Azure Service Fabric客户端调用返回未知地址错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用以下示例代码尝试连接到远程开发集群时:

When trying to connect to a remote dev cluster using the following sample code:

var proxy = ActorProxy.Create<IActor1_NoS>(ActorId.NewId(), "fabric:/applicationname");

我收到以下错误:

请注意,此代码在本地运行时效果很好来自开发集群机器。
Dev群集清单文件已被修改以侦听计算机IP地址。
远程计算机是Windows7。所有Service Fabric程序集均已复制到可执行文件夹。

Note that this code works fine when ran locally from the dev cluster machine.The Dev cluster manifest file has been modified to listen on the machine IP address. The remote machine is a Windows 7. All Service Fabric assemblies were copied over to the executable folder.

客户端如何使用 fabric:/方案幕后工作?
客户如何指定其针对结构调用的集群?

How does a client call using the "fabric:/" scheme work behind the scenes?How does a client specify which cluster it is targeting for a fabric call?

推荐答案

Actor代理取决于平台服务没有暴露在公共港口上。结果,代理无法与远程计算机上的参与者服务进行通信。它们旨在用于群集内的服务间通信。通常的模式是在集群中创建网关服务,以在公共端口上提供入口点,然后入口点可以将请求中继到参与者。

Actor proxies depend on platform services that are not exposed on public ports. As a result, proxies cannot communicate with actor services on remote machines. They are intended for inter-service communication within the cluster. The general pattern is to create a gateway service within the cluster to provide an ingress point on a public port, which can then relay requests to your actors.

这篇关于从远程计算机对Actor服务的Azure Service Fabric客户端调用返回未知地址错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 00:13