首页 文章

Apache Ignite .Net客户端服务器连接

提问于
浏览
2

我是Apache Ignite .Net的新手 . 我使用Nuget的Apache Ignite创建了两个独立的Web应用程序 . 一个应用程序使用clientMode = true设置为客户端但我不知道如何使用IP,端口等连接这两个应用程序 . 请帮助我...请注意这两个应用程序都在localhost上运行 . I have tried with this link

我没有在客户端web.config中添加Ignite的任何配置详细信息 .

My web.config for server :

<configuration>
  <configSections>
    <section name="igniteConfiguration" type="Apache.Ignite.Core.IgniteConfigurationSection, Apache.Ignite.Core" />
  </configSections>
  <runtime>
    <gcServer enabled="true" />
  </runtime>
  <igniteConfiguration xmlns="http://ignite.apache.org/schema/dotnet/IgniteConfigurationSection"
                        localhost="127.0.0.1" peerAssemblyLoadingMode="CurrentAppDomain">
    <atomicConfiguration atomicSequenceReserveSize="10" />

    <discoverySpi type="TcpDiscoverySpi">
      <ipFinder type="TcpDiscoveryMulticastIpFinder">
        <endpoints>
          <string>127.0.0.1:47500..47502</string>
        </endpoints>
      </ipFinder>
    </discoverySpi>
  </igniteConfiguration>
</configuration>

My Server Code for start Ignite:

IIgnite ignite = Ignition.StartFromApplicationConfiguration();

Client application hangs at code :

Ignition.Start()

1 回答

  • 1

    Ignite节点将使用默认配置相互连接,您无需更改任何内容 .

    从客户端和服务器上的配置中删除 discoverySpi ,或确保配置相同 .

    另请注意,如果没有服务器节点,客户端节点将挂起 .

相关问题