Thanks Mike. Yes we are using wan replication. We want the switch to be an automatic step. As soon as prod cluster fails we need to switch to cob without any restart of the client application.
One way we are thinking of is probably catching those locator not available sort of exception and then make a switch. Any thoughts? With best regards, Ashish On Thu, Apr 11, 2019, 1:42 AM Michael Stolz <mst...@pivotal.io> wrote: > If the data centers are far apart you will want to use the bi-directional > GemFire WAN Gateway to replicate between clusters. > > The trickiest part is figuring out when to switch. If you already have a > mechanism for that then that's great. > > Once you know for sure you want to switch, the easiest way is to install a > gemfire.properties file on the client machines that points to the locators > in the other data center and restart the clients. > > There is a programmatic way to do it but is a lot more code and work than > this way. > > Feel free to ask any additional questions here. > > > > -- > Mike Stolz > Principal Engineer, GemFire Product Lead > Mobile: +1-631-835-4771 > > On Wed, Apr 10, 2019, 2:01 PM aashish choudhary < > aashish.choudha...@gmail.com> wrote: > >> Hi, >> >> We have a scenario where in we need to switch over to a different data >> center automatically when any failure occurs in the existing cluster. >> >> Any recommendations? >> >> >> With best regards, >> Ashish >> >