开发者

Best way to sync files between two EBS volumn

Anyone have better idea for load balancing on EC2. Basically I am using two EC2 window开发者_运维知识库 instances with separate EBS volume attached to each instance. I know about how to use load balancer and working fine for me. I have only issue with sharing application data between two instance, my application require large number of photo and PDF upload and I want to make sure replicate in both instance. I don't want to use S3 in this case as we need to pass through REST/SOAP protocol only.

Any idea.

*Update: I just updated subject line as it was misleading. I want to sync files between two EBS volume attached to different EC2 instances.


For replication of data across EBS volumes, you can make use of Gluster Filesystem. It will not only provide replication but also high-availability for your data. You can configure gluster across regions also i.e., one instance in US-East and another in US-West. So even one of the region goes down, it will continue serving data to you. The replication happens on the fly.

The Link to configure Gluster Filesystem : Gluster-Configuration-AWS-Multi-AZ

Regards, Sanket Dangi


Using S3 will not prevent you from using a REST/SOAP protocol with the client. You just have your application save or get files from S3 instead of the local disk, you don't have to use S3 directly from the client. Transfer & storage to S3 from within EC2 is free in the same region.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜