Hi Alexey,

Works like a charm!  😊

Thanks,
 Raymond.

-----Original Message-----
From: Alexey Popov [mailto:tank2.a...@gmail.com]
Sent: Wednesday, January 10, 2018 9:03 PM
To: user@ignite.apache.org
Subject: Re: Creating multiple Ignite grids on same machine

Hi Raymond,

In your case you should configure:

1. different TcpDiscoverySpi local ports 2. different ports for
TcpDiscoveryVmIpFinder (Vm = Static for .NET). You should not use a default
ipFinder.
3. different TcpCommunicationSpi local ports

Please see sample Java xml-configs as a reference sample. You can do the
similar things with Ignite.Net 2.3 configuration.

Sample cluster 1 cfg:

        <property name="discoverySpi">
            <bean
class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
                <property name="localAddress" value="127.0.0.1"/>
                <property name="localPort" value="48500"/>

                <property name="ipFinder">
                    <bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
                        <property name="addresses">
                            <list>
                                <value>127.0.0.1:48500..48509</value>
                            </list>
                        </property>
                    </bean>
                </property>
            </bean>
        </property>

        <property name="communicationSpi">
            <bean
class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
                <property name="localAddress" value="127.0.0.1"/>
                <property name="localPort" value="48100"/>
            </bean>
        </property>Sample cluster 2 cfg:

        <property name="discoverySpi">
            <bean
class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
                <property name="localAddress" value="127.0.0.1"/>
                <property name="localPort" value="47500"/>

                <property name="ipFinder">
                    <bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
                        <property name="addresses">
                            <list>
                                <value>127.0.0.1:47500..47509</value>
                            </list>
                        </property>
                    </bean>
                </property>
            </bean>
        </property>

        <property name="communicationSpi">
            <bean
class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
                <property name="localAddress" value="127.0.0.1"/>
                <property name="localPort" value="47100"/>
            </bean>
        </property>Thank you,
Alexey



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to