在两个 EBS 卷之间同步文件的最佳方式
任何人对于 EC2 上的负载平衡都有更好的想法。基本上,我使用两个 EC2 窗口实例,每个实例附加单独的 EBS 卷。我知道如何使用负载均衡器并且对我来说工作得很好。我唯一的问题是在两个实例之间共享应用程序数据,我的应用程序需要大量照片和 PDF 上传,并且我想确保在两个实例中进行复制。在这种情况下我不想使用 S3,因为我们只需要通过 REST/SOAP 协议。
任何想法。
*更新: 我刚刚更新了主题行,因为它具有误导性。我想在附加到不同 EC2 实例的两个 EBS 卷之间同步文件。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要跨 EBS 卷复制数据,您可以使用 Gluster 文件系统。它不仅可以提供复制,还可以为您的数据提供高可用性。您还可以跨区域配置 gluster,即一个实例位于美国东部,另一个实例位于美国西部。因此,即使其中一个区域发生故障,它也会继续为您提供数据。复制是即时发生的。
配置 Gluster 文件系统的链接:Gluster-Configuration-AWS-Multi- AZ
问候,
桑克特·丹吉
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
使用 S3 不会阻止您在客户端上使用 REST/SOAP 协议。您只需让应用程序从 S3 而不是本地磁盘保存或获取文件,您不必直接从客户端使用 S3。转移&在同一区域中,从 EC2 内到 S3 的存储是免费的。
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.