Best way to sync files between two EBS volumn

Does anyone have a better idea for load balancing on EC2. I mainly use two instances of the EC2 window with a separate EBS volume attached to each instance. I know how to use a load balancer and work great for me. I only have a problem with sharing application data between two instances, my application requires a large number of photos and PDF downloads, and I want to make sure that they are replicated in both instances. I do not want to use S3 in this case, since we only need to go through the REST / SOAP protocol.

Any idea.

* Update: I just updated the topic as it was misleading. I want to synchronize files between two EBS volumes connected to different EC2 instances.

+4
source share
2 answers

You can use the Gluster file system to replicate data on EBS volumes. It will not only provide replication, but also the high availability of your data. You can customize gluster by region, for example, one instance in US-East and another in US-West. Thus, even one of the regions will decrease, it will continue to serve data for you. Replication occurs on the fly.

Gluster File System Configuration Link: Gluster-Configuration-AWS-Multi-AZ

Regards, Sanket Dangi

+5
source

Using S3 will not prevent you from using the REST / SOAP protocol with the client. You just have your application for saving or receiving files from S3 instead of the local drive, you do not need to use S3 directly from the client. Transfer and storage on S3 from EC2 is free in the same region.

0
source

All Articles