Hi Stephen,
I tested your proposal, but to no avail. The discovery process is still
continuously retried, but never successful.
Best regards,
Tobias
On 1/8/19 4:07 PM, Stephen Darlington wrote:
Try putting the same list on both nodes:
<value>172.24.10.79:3013</value>
<value>172.24.10.83:3013</value>
Regards,
Stephen
On 8 Jan 2019, at 14:13, Tobias König <tobias.koe...@banksapi.de> wrote:
Hi there,
I'm trying to get an Ignite cluster consisting of two nodes to work, that uses
a minimum number of exposed ports. I'm new to Ignite, but it is my
understanding, that it should suffice to set each node to one specific port 1.
for communication and 2. for discovery. The overall goal is to get a Docker
cluster (with default bridged networking) working without Multicast and without
--net=host.
However, I'm doing preliminary tests /without/ docker and am directly using my
local machine (Node 1, IP 172.24.10.79) and a Raspberry Pi (Node 2, IP
172.24.10.83), and I can't get the cluster to work, because the discovery
process doesn't succeed. I'm using a static IP finder in which I point each
node to its corresponding counterpart.
XML-configuration of both nodes with the aforementioned minimal use of ports is
attached inline.
If I start node 1 first and then node 2, no discovery process is initiated in
the first minutes. If I start node 2 first and then node 1, the discovery
process is initiated but not completed successfully. I'll attach logs for the
second case for both node 2 and 1.
Can somebody spot my configuration error?
Best regards and TIA,
Tobias
P.S. I was able to reproduce the error on two "regular" machines as well,
without the use of a Raspberry Pi.
_______________________________
# ignite-config-node1.xml
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean class="org.apache.ignite.configuration.IgniteConfiguration">
<property name="discoverySpi">
<bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
<property name="localPort" value="3013"/>
<property name="ipFinder">
<bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
<property name="addresses">
<list>
<value>127.0.0.1:3013</value>
<value>172.24.10.83:3013</value>
</list>
</property>
</bean>
</property>
</bean>
</property>
<property name="communicationSpi">
<bean
class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
<property name="localPort" value="3012"/>
</bean>
</property>
</bean>
</beans>
# ignite-config-node2.xml
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean class="org.apache.ignite.configuration.IgniteConfiguration">
<property name="discoverySpi">
<bean
class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
<property name="localPort" value="3013"/>
<property name="ipFinder">
<bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
<property name="addresses">
<list>
<value>127.0.0.1:3013</value>
<value>172.24.10.79:3013</value>
</list>
</property>
</bean>
</property>
</bean>
</property>
<property name="communicationSpi">
<bean
class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
<property name="localPort" value="3012"/>
</bean>
</property>
</bean>
</beans>
<ignite-node2.log><ignite-node1.log>