-
1. Re: What are implemented (or not) for cross site replication in 5.2.1 final?
dex80526 Feb 26, 2013 4:18 PM (in response to dex80526)anyone is using this xsite repl feature? could you share your experience?
-
2. Re: What are implemented (or not) for cross site replication in 5.2.1 final?
mircea.markus Mar 4, 2013 12:17 PM (in response to dex80526)Is it possible for me to implemenet the bidirectional replication between 2 sites with 5.2.1 release? How do we ensure the cache data are synced/consistent between 2 sites?
The cross site state transfer is schduled for Infinispan 5.3.
As a workaround you can write a map reduce task that would iterate over the entries in the cache and re-write (potentially using the LOCAL invocation flag) them in order to enforce a remote migration of state.
-
3. Re: What are implemented (or not) for cross site replication in 5.2.1 final?
dex80526 Mar 4, 2013 1:01 PM (in response to mircea.markus)Hi Mircea: Thanks for the response and great work on xsite repl.
I have schedule issue here. We schedule to deliver the bi-driection replication between 2 site by the end of May, and probably 5.3 release is too late.
At the same time, is there a way for us to check if the replication succeed or not? For example, there are some events I can listen for to see if the replication is really made throguh to the other site or not. In case, the replication is failed, I can either try it again or do somthing outside ISPN.
Regarding MapReduce workaround (I have not looked into this), does this require remote cache client thing since the writing needs to happening on the remote site?
Does the replication from one site to another (in 5.2.1) only replicate the difference from the previous replication state or send the whole data in the cache every time?
I am at the point to make a call if we should go with the ISPN for our geo-distributed solution. Thanks for the help.
Dex
-
4. Re: What are implemented (or not) for cross site replication in 5.2.1 final?
mircea.markus Mar 8, 2013 11:19 AM (in response to dex80526)At the same time, is there a way for us to check if the replication succeed or not? For example, there are some events I can listen for to see if the replication is really made throguh to the other site or not. In case, the replication is failed, I can either try it again or do somthing outside ISPN.
When you do a cache put, assuming that replication between sites is sync and the metod returned successfully you know that the values was backed up to the remote site.
If the repl between sites is async, you can register an failurePolicyClass="org.infinispan.xsite.CountingCustomFailurePolicy" so that you'll know if things went wrong.
Regarding MapReduce workaround (I have not looked into this), does this require remote cache client thing since the writing needs to happening on the remote site?
no, just re-writting the entries locally would trigger a remote replication as well.
Does the replication from one site to another (in 5.2.1) only replicate the difference from the previous replication state or send the whole data in the cache every time?
It sends a message with every object you write to the cache...
-
5. Re: What are implemented (or not) for cross site replication in 5.2.1 final?
dex80526 Mar 8, 2013 12:10 PM (in response to mircea.markus)Mircea: your promt responses boosts my confidence on going with ISPN for our Geo-active-active fail over solution. Thanks.
Using a customer failurePoliccyClass is a good idea, and I am going to try.
One more thing: I did not see any configuration for ASYNC replication, such as using replication queues, replication thread numbers, etc. Is there any way to configure the ASYNC?
I did some simple test using the x-site feature. I noticed that the backup site needs to be up before the main site, otherwise, the main site takes long time to start and backup will not happen.
Thanks again.
dex