Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Mirror use in two datacenters

We have been using the mirror feature successfully. However when testing with 2 datacenters each DB store its own data. Is there a way in which we can use the mirror feature accross datacenters? If so, can you point out the link to configuration?

Thanks in advance Alejandro

asked 2017-08-16 16:58:20 -0500

tech4253 gravatar image
edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
0

Hi Alejandro,

This requires some custom configuration for multiple mirrors, please see here: https://docs.gigaspaces.com/xap/12.2/...

Can you please share your use case where you need to write to 2 different data sources?

Thanks,

Inbar

answered 2017-08-17 07:50:50 -0500

inbarc gravatar image
edit flag offensive delete link more

Comments

We have two datacenters in a cluster, each one has its own database. They are in sync through a WAN Gateway, but for audit log we have a space not persistent and a mirror which writes the record to each database using hibernate. We don't want those records in the space. We want that when records are saved in DC1, the same records are saved in DC2. I wonder if defining multiple mirrors will work, or perhaps synchronizing the empty persistent space?

tech4253 gravatar imagetech4253 ( 2017-08-18 14:45:44 -0500 )edit
0

We have two datacenters in a cluster, each one has its own database. They are in sync through a WAN Gateway, but for audit log we have a space not persistent and a mirror which writes the record to each database using hibernate. We don't want those records in the space. We want that when records are saved in DC1, the same records are saved in DC2. I wonder if defining multiple mirrors will work, or perhaps synchronizing the empty persistent space?

answered 2017-08-18 09:35:03 -0500

tech4253 gravatar image
edit flag offensive delete link more
0

Hi,

Can you please clarify some more the scenario, not sure I got it right: You want the audit log to be saved in the database but not in the space? are you deleting it from the space after it is saved in the DB?

answered 2017-08-20 03:28:12 -0500

inbarc gravatar image
edit flag offensive delete link more

Comments

Exactly, that's why we have a non persistent space, to write there and be intercepted by the mirror who does the actual saving to DB

tech4253 gravatar imagetech4253 ( 2017-08-20 19:15:50 -0500 )edit

Ok, instead of deleting the objects from the space, you can use the object Lease Expiration setting and it will be cleared from the space after a time you specify. Regarding saving to 2 datacenters, you can use the mirror splitter instead of using 2 separate mirrors, but the question is: will it make sense to connect from one datacenter to a remote DB in the second datacenter? what is the distance between those 2 data centers?

inbarc gravatar imageinbarc ( 2017-08-21 06:03:55 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-08-16 16:58:20 -0500

Seen: 95 times

Last updated: Aug 20