ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkulichenko <valentin.kuliche...@gmail.com>
Subject Re: Can I have several clusters on same PC?
Date Thu, 24 Sep 2015 19:32:34 GMT
Hi Alexey,

Can you please properly subscribe to the user list so we can get email
notifications? You can refer to these instructions for more info:
http://apache-ignite-users.70518.x6.nabble.com/mailing_list/MailingListOptions.jtp?forum=1


Alexey V. Ryazanov wrote
> I want (for testing purposes) to have several different Ignite clusters
> works on my PC. Clusters must work independently and must not know about
> each other. Is it possible? How can I do this? Can I have an example?

Yes, this is possible, you just need to properly define discovery
configuration. For example, if you're using TcpDiscoveryVmIpFinder, you
should use different port ranges for different clusters. For the first
cluster it could be like this:

<bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
    <property name="localPort" value="50100"/>
    <property name="localPortRange" value="10"/>
    <property name="ipFinder">
        <bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
            <property name="addresses">
                <list>
                    <value>127.0.0.1:50100..50109</value>
                </list>
            </property>
        </bean>
    </property>
</bean>

And for the second one:

<bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
    <property name="localPort" value="50200"/>
    <property name="localPortRange" value="10"/>
    <property name="ipFinder">
        <bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
            <property name="addresses">
                <list>
                    <value>127.0.0.1:50200..50209</value>
                </list>
            </property>
        </bean>
    </property>
</bean>

Note that port numbers don't intersect, so nodes from different clusters
will never join each other.

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Can-I-have-several-clusters-on-same-PC-tp1479p1484.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message