Cluster computing 点火网络接口配置,通过指定的网络接口群集

Cluster computing 点火网络接口配置,通过指定的网络接口群集,cluster-computing,gridgain,in-memory,ifconfig,ignite,Cluster Computing,Gridgain,In Memory,Ifconfig,Ignite,我正在配置了多个网络接口的机箱上运行Ignite群集。我有3个不同速度的网络接口 我看到Ignite找到了3个ip地址 INFO: Non-loopback local IPs: xxx, yyy, zzz 然后 及 及 我想将Ignite cluster配置为仅使用其中一个网络接口进行通信 我有一个Ignite xml网络配置 <bean id="grid.cfg" class="org.apache.ignite.configuration.IgniteConfiguration

我正在配置了多个网络接口的机箱上运行Ignite群集。我有3个不同速度的网络接口

我看到Ignite找到了3个ip地址

INFO: Non-loopback local IPs: xxx, yyy, zzz
然后

我想将Ignite cluster配置为仅使用其中一个网络接口进行通信

我有一个Ignite xml网络配置

  <bean id="grid.cfg" class="org.apache.ignite.configuration.IgniteConfiguration" parent="base-ignite.cfg">

    <property name="discoverySpi">
        <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
            <property name="ipFinder">
                <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
                    <property name="addresses">
                        <list>
                            <value>box1:47500</value>
                            <value>box2:47500</value>
                            <value>box3:47500</value>
                            <value>box4:47500</value>
                            ....
                            ...
                            ..
                            .
                        </list>
                    </property>
                </bean>
            </property>
        </bean>
    </property>
</bean>

因此,Ignite服务器绑定并侦听机箱上的所有网络接口。在xml配置中,我只给出了一个网络接口的地址,但在节点加入消息中,我看到了所有其他网络接口的ip地址。

Ignite要求每个节点上有两个可用端口:一个用于发现(默认为47500),另一个用于通信(默认为47100)。有关详细说明,请参阅此链接:

端口48100用于共享内存通信,其工作速度比传统TCP通信快,但仅适用于运行在同一物理机器上的节点。此功能是可选的,可以通过将
-1
设置为共享内存通信端口来禁用:

<property name="communicationSpi">
    <bean class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
        <property name="sharedMemoryPort" value="-1"/>
    </bean>
</property>

>>> Local node addresses: [Server1/xxx, Server1/yyy, Server1/zzz, /127.0.0.1]
>>> Local ports: TCP:47100 TCP:47500 TCP:48100 
  <bean id="grid.cfg" class="org.apache.ignite.configuration.IgniteConfiguration" parent="base-ignite.cfg">

    <property name="discoverySpi">
        <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
            <property name="ipFinder">
                <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
                    <property name="addresses">
                        <list>
                            <value>box1:47500</value>
                            <value>box2:47500</value>
                            <value>box3:47500</value>
                            <value>box4:47500</value>
                            ....
                            ...
                            ..
                            .
                        </list>
                    </property>
                </bean>
            </property>
        </bean>
    </property>
</bean>
INFO: Added new node to topology: TcpDiscoveryNode [id=cb61c90f-6a8d-4c4a-81dc-7994b5e5fd80, addrs=[box1-xxx,box1-yyy, box1-yyy, 127.0.0.1], sockAddrs=[/box1-xxx:47500, /box1-xxx:47500, /box1-yyy:47500, /box1-yyy:47500, /box1-zzz:47500, /box1-zzz:47500, /127.0.0.1:47500], discPort=47500, order=2, intOrder=2, lastExchangeTime=1442308257191, loc=false, ver=1.5.0#20150911-sha1:b736c46f, isClient=false]
<property name="communicationSpi">
    <bean class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
        <property name="sharedMemoryPort" value="-1"/>
    </bean>
</property>