Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to sync files between two EBS volumn

Tags:

amazon-ec2

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.

like image 979
Pritesh Patel Avatar asked May 25 '11 05:05

Pritesh Patel


People also ask

How do I transfer data from one EBS volume to another?

Attach both EBS volumes to the instance and mount them as, say, /vol1 and /vol2. Copy the files from /vol1 to /vol2 (perhaps using something like: rsync -aSHAX /vol1/ /vol2/ ) Unmount the volumes, detach the EBS volumes, terminate the temporary instance.

Can I stripe multiple volumes together to get better performance?

Q: Can I stripe multiple volumes together to get better performance? Yes. You can stripe multiple volumes together to achieve up to 260,000 IOPS or 60,000 Mbps (or 7500 MB/s) when attached to larger EC2 instances.

Can EBS volume be share between instances?

Amazon EBS Multi-Attach enables you to attach a single Provisioned IOPS SSD ( io1 or io2 ) volume to multiple instances that are in the same Availability Zone. You can attach multiple Multi-Attach enabled volumes to an instance or set of instances.

How do you replicate EBS volumes?

Go to the volume where your EBS snapshot resides. Select the EBS snapshot you want to copy to another region and then click on the Copy Snapshot button. Put a name and description on the EBS snapshot you want to copy to another region and then select the region you want to copy it to.


1 Answers

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

like image 103
Sanket Dangi Avatar answered Oct 14 '22 04:10

Sanket Dangi