All,
I'm trying to set up a cluster using docker. The network setting seems to
have some problem.
Could you please take a look and advise?
I have two hosts and each will run a container. Static ip address and basic
address resolver are used.
This is part of configuration on one container.
<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>host1
public ip</value>
<value>host2
public ip</value>
</list>
</property>
</bean>
</property>
</bean>
</property>
<property name="addressResolver">
<bean
class="org.apache.ignite.configuration.BasicAddressResolver">
<constructor-arg>
<map>
<entry key="container 1
private ip" value="host1 public ip"/>
<entry key="host1"
value="container 1 private ip"/>
</map>
</constructor-arg>
</bean>
</property>
The other container has the same configuration under TcpDiscoveryVmIpFinder,
but the BasicAddressResolver has ip address for host2/container2.
when I run the container, I use command "sudo docker run -p 47100:47100 -p
47500:47500 imagename"
Here's the result of docker ps on two hosts.
$ sudo docker ps
CONTAINER ID IMAGE COMMAND
CREATED STATUS
PORTS
NAMES
3e1e86d18b43 imagename "/bin/sh -c $IGNITE_H" 27 seconds ago
Up 26 seconds
0.0.0.0:47100->47100/tcp, 11211/tcp, 49112/tcp, 0.0.0.0:47500->47500/tcp
nostalgic_ noyce
$ sudo docker ps
CONTAINER ID IMAGE COMMAND
CREATED STATUS PORTS
NAMES
5bbd182dca5c imagename "/bin/sh -c $IGNITE_H" 19 minutes ago
Up 19 minutes 0.0.0.0:47100->47100/tcp, 11211/tcp, 49112/tcp,
0.0.0.0:47500->47500/tcp romantic_galileo
Does the settings look right? Thank you!
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/Docker-cluster-set-up-tp12549.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.