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.
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.
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With