You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by monstereo <me...@gmail.com> on 2018/08/05 13:56:08 UTC

Specify Port for discovery?Stop the discovery?

I don't want node2 to connect node1. But it is always connectting. 
Here is the node1 xml

<property name="discoverySpi">
            <bean
class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
                <property name="localPort" value="48500"/>
                <property name="localPortRange" value="20"/>
                <property name="ipFinder">
                    <bean class=
                                 
"org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder">
                        <property name="addresses">
                            <list>
                                <value>127.0.0.1:48500..48520</value>
                            </list>
                        </property>
                    </bean>
                </property>
            </bean>
 </property>


Here is the node2 xml

<property name="discoverySpi">
            <bean
class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
                <property name="ipFinder">

                    <bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder">
                        <property name="addresses">
                            <list>
                                <value>192.168.122.1:47500..47509</value>
                            </list>
                        </property>
                    </bean>
                </property>
            </bean>
        </property>

*note that 192.168.122.1 is the node1 ip address*



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

Re: Specify Port for discovery?Stop the discovery?

Posted by Павлухин Иван <vo...@gmail.com>.
Hi,

Valentin is it right that explicit addresses and ports have no sense for
Multicast IP finder?

2018-08-06 1:57 GMT+03:00 vkulichenko <va...@gmail.com>:

> You're using the Multicast IP finder, therefore nodes discover each other
> via
> multicast even if port ranges do not intersect. Try switching to static IP
> finder:
> https://apacheignite.readme.io/docs/tcpip-discovery#
> section-static-ip-finder
>
> -Val
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>



-- 
Best regards,
Ivan Pavlukhin

Re: Specify Port for discovery?Stop the discovery?

Posted by vkulichenko <va...@gmail.com>.
You're using the Multicast IP finder, therefore nodes discover each other via
multicast even if port ranges do not intersect. Try switching to static IP
finder:
https://apacheignite.readme.io/docs/tcpip-discovery#section-static-ip-finder

-Val



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