【问题标题】:Apache Ignite .Net Client Server ConnectionApache Ignite .Net 客户端服务器连接
【发布时间】:2017-09-08 05:01:29
【问题描述】:

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

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

我的服务器 web.config :

   <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>

我的启动 Ignite 的服务器代码:

IIgnite ignite = Ignition.StartFromApplicationConfiguration();

客户端应用程序在代码处挂起:

Ignition.Start()

【问题讨论】:

    标签: c# .net ignite


    【解决方案1】:

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

    要么从客户端和服务器的配置中删除discoverySpi,要么确保配置相同。

    还要注意,如果没有服务器节点,客户端节点将挂起。

    【讨论】:

    • 编辑了我的答案。
    猜你喜欢
    • 2018-10-05
    • 2018-02-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-23
    • 2021-10-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多