Home > front end >  AWS EC2 - syncronizing two instances between two region for replication
AWS EC2 - syncronizing two instances between two region for replication

Time:04-15

What would be the best way in AWS to maintain redundancy between two EC2 instance on two different region ? My client want to be sure that he will loose no data if something goes wrong in the main region dc.

CodePudding user response:

I would suggest that you look at the official AWS guides Cross-Region DR for EC2 with CloudEndure, as well as multi-region application solution.

Please consider the following when you design the synchronization between EC2 instances across regions:

  • Availability
  • Consistency
  • Partition tolerance.

In particular, in the second AWS guide you can find information on using AWS Backup to save and store EC2 instances as AMI images.

Furthermore, if you have a database solution in place with data that is accessed (some variant of CRUD operations) from both EC2 instances, the design will be more intricate. Check out the topic "Spanning relational databases across regions" in the second AWS guide.

CodePudding user response:

A simple, yet robust approach would be to use EFS.

Create an EFS file system in your primary region and set-up replication to a secondary region. Then move all data from EC2 storage (i.e. EBS) to EFS using an appropriate mount point. Repeat on EC2 instance in secondary region.

  • Related