You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by rakshita04 <ra...@siemens.com> on 2020/06/11 11:36:47 UTC
Need to sync two apache ignite cache DB using ip address
Hi Team,
We have 2 apache ignite DBs located at separate IPs and connected through
TCP-ip connection.
ne of this DB should work as master dB and on any change should sync to
other apache ignite DB and update the entries accordingly.
How can i achieve this ? what changes do i need to do in xml file?
I am using C++ platform for apache ignite.
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Need to sync two apache ignite cache DB using ip address
Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!
Yes, you should specify both local and remote addresses in discovery SPI
section:
https://apacheignite.readme.io/docs/tcpip-discovery#static-ip-finder
Regards,
--
Ilya Kasnacheev
чт, 11 июн. 2020 г. в 15:07, rakshita04 <ra...@siemens.com>:
> So are you saying apache ignite automatically does that.
> Do i need to configure the ip of the other node somewhere in xml file so
> that data keeps syncing?
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>
Re: Need to sync two apache ignite cache DB using ip address
Posted by rakshita04 <ra...@siemens.com>.
So are you saying apache ignite automatically does that.
Do i need to configure the ip of the other node somewhere in xml file so
that data keeps syncing?
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Need to sync two apache ignite cache DB using ip address
Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!
There are ways to do that (affinity backup filter), but why would you want
to? You are much better off relying on Ignite's data model when using
Apache Ignite.
Regards,
--
Ilya Kasnacheev
чт, 11 июн. 2020 г. в 15:02, rakshita04 <ra...@siemens.com>:
> Hi Ilya,
>
> I want one node to be master for all entries.
> How can i achieve this?
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>
Re: Need to sync two apache ignite cache DB using ip address
Posted by rakshita04 <ra...@siemens.com>.
Hi Ilya,
I want one node to be master for all entries.
How can i achieve this?
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Need to sync two apache ignite cache DB using ip address
Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!
If you declare your caches as REPLICATED they will be kept in sync. One
node will be master of half entries and the other will be master of the
remaining half.
Regards,
--
Ilya Kasnacheev
чт, 11 июн. 2020 г. в 14:36, rakshita04 <ra...@siemens.com>:
> Hi Team,
>
> We have 2 apache ignite DBs located at separate IPs and connected through
> TCP-ip connection.
> ne of this DB should work as master dB and on any change should sync to
> other apache ignite DB and update the entries accordingly.
> How can i achieve this ? what changes do i need to do in xml file?
> I am using C++ platform for apache ignite.
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>