Azure service fabric 服务结构可以';无法连接到UDP(非真实引擎服务器)上的来宾可执行文件

Azure service fabric 服务结构可以';无法连接到UDP(非真实引擎服务器)上的来宾可执行文件,azure-service-fabric,unreal-engine4,Azure Service Fabric,Unreal Engine4,我正在尝试将不真实的服务器来宾可执行文件部署到服务结构。 我一直在写这篇博文: 除了我没有使用容器和基于Windows的服务 在本地集群上,一切正常。我可以从客户端连接到部署的服务器 尝试连接到远程服务器时,我无法连接到它 当查看我的服务结构管理页面时,似乎我的服务器进程正在工作(它具有正确的进程id) 在我的负载平衡服务中,我在UDP/7777上有端口转发,尽管HealthProbe在TCP上(没有选择UDP的选项,我不知道该mnatter是否存在) 这是我的服务清单: <?xml v

我正在尝试将不真实的服务器来宾可执行文件部署到服务结构。 我一直在写这篇博文:

除了我没有使用容器和基于Windows的服务

在本地集群上,一切正常。我可以从客户端连接到部署的服务器

尝试连接到远程服务器时,我无法连接到它

当查看我的服务结构管理页面时,似乎我的服务器进程正在工作(它具有正确的进程id)

在我的负载平衡服务中,我在UDP/7777上有端口转发,尽管HealthProbe在TCP上(没有选择UDP的选项,我不知道该mnatter是否存在)

这是我的服务清单:

<?xml version="1.0" encoding="utf-8"?>
<ServiceManifest Name="UnrealGuestPkg"
                 Version="1.0.0"
                 xmlns="http://schemas.microsoft.com/2011/01/fabric"
                 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ServiceTypes>
    <!-- This is the name of your ServiceType. 
         The UseImplicitHost attribute indicates this is a guest executable service. -->
    <StatelessServiceType ServiceTypeName="UnrealGuestType" UseImplicitHost="true" />
  </ServiceTypes>

  <!-- Code package is your service executable. -->
  <CodePackage Name="Code" Version="1.0.0">
    <!-- The SetupEntryPoint is an optional element used to specify a
         program to be executed before the service's code is launched. -->
    <!--
    <SetupEntryPoint>
      <ExeHost>
        <Program></Program>
      </ExeHost>
    </SetupEntryPoint>
    -->
    <EntryPoint>
      <ExeHost>
        <Program>ActionRPGGame\Binaries\Win64\ActionRPGGameServer.exe</Program>
        <Arguments>-log</Arguments>
        <WorkingFolder>CodeBase</WorkingFolder>
        <!-- Uncomment to log console output (both stdout and stderr) to one of the
             service's working directories. -->
        <!-- <ConsoleRedirection FileRetentionCount="5" FileMaxSizeInKb="2048"/> -->
      </ExeHost>
    </EntryPoint>
  </CodePackage>

  <!-- Config package is the contents of the Config directoy under PackageRoot that contains an 
       independently-updateable and versioned set of custom configuration settings for your service. -->
  <ConfigPackage Name="Config" Version="1.0.0" />

  <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 Name="UnrealGuestTypeEndpoint" Port="7777" Protocol="udp" />
    </Endpoints>
  </Resources>
</ServiceManifest>

ActionRPGGame\Binaries\Win64\ActionRPGGameServer.exe
-日志
代码基

1.您似乎缺少服务配置

<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 Name="ServiceEndpoint" Port="7777" />
  </Endpoints>
</Resources>

  • 负载平衡器上的探测不支持UDP。因此,公开第二个使用tcp的服务端点,就像健康端点一样