You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Aleksandr Pakhomov <ap...@gmail.com> on 2022/12/05 11:59:03 UTC
RE: Docker and clustering
Hi, could you please share the TCP/IP Discovery configuration?
If you have not configured it please check this
https://ignite.apache.org/docs/latest/clustering/tcp-ip-discovery <https://ignite.apache.org/docs/latest/clustering/tcp-ip-discovery>
--
Best regards,
Aleksandr
On 2022/11/25 11:27:19 sp...@e.mail.fr wrote:
> Hi, I am trying to setup a two nodes replicated cluster, in an active/passive way. On each node, a Java webapp will be accessing the local database instance using JDBC. The app itself is stateless, but I need synced datas from the database. Ignite seems to be a nice choice, as I don't need advanced SQL features but replication and simplicity. So I am running an Ignite container on two differents hosts (10.17.10.55 and 10.17.10.56), using : docker run -v "/tmp/ignite.xml:/opt/ignite/apache-ignite/config/default-config.xml" -p "10800:10800" -p "11211:11211" -p "47100:47100" -p "47500:47500" -p "49112:49112" apacheignite/ignite:latest And here is the content of the file "ignite.xml" (of course, "consistentId" value is different for each host, the rest is the same).
>
> 10.17.10.55
> 10.17.10.56
>
> As far as I can see, when the containers are up, ports are exposed and firewall does not block communications (I have runned these two commands on both hosts, in order to "cross check"): echo "10800 11211 47100 47500" | xargs nc -vz 10.17.10.55
> Connection to 10.17.10.55 10800 port [tcp/*] succeeded!
> Connection to 10.17.10.55 11211 port [tcp/*] succeeded!
> Connection to 10.17.10.55 47100 port [tcp/*] succeeded!
> Connection to 10.17.10.55 47500 port [tcp/*] succeeded! echo "10800 11211 47100 47500" | xargs nc -vz 10.17.10.56
> Connection to 10.17.10.56 10800 port [tcp/*] succeeded!
> Connection to 10.17.10.56 11211 port [tcp/*] succeeded!
> Connection to 10.17.10.56 47100 port [tcp/*] succeeded!
> Connection to 10.17.10.56 47500 port [tcp/*] succeeded! But the two Ignite instances don't seem to communicate, as I get an error message like : Failed to connect to any address from IP finder (make sure IP finder addresses are correct and firewalls are disabled on all host machines): [/10.17.10.55:47500, /10.17.10.56:47500] Did I miss something ? A quick and dirty try with a local docker-compose and a config file which is the base of the one I tried here was running flawlessly. Regards
>
> -------------------------------------------------------------------------------------------------
> FreeMail powered by mail.fr
>