简体   繁体   English

AWS EFS 和 S3 之间有什么区别?

[英]What is difference between AWS EFS and S3?

AWS releases new Elastic File System this week. AWS 本周发布了新的弹性文件系统。 See http://aws.amazon.com/efs/ The page doesn't contain many details.请参阅http://aws.amazon.com/efs/该页面不包含很多详细信息。 I'd like to know its performance comparing to S3, as well as other differences.我想知道它与 S3 相比的性能以及其他差异。

As already mentioned EFS is completely different to S3. 如前所述,EFS与S3完全不同。 The simplest way to look at is to look at what the underlying technology is. 最简单的方法是查看底层技术是什么。

S3 is an object store , meaning it is a higher layer data storage system, essentially it is a database "blob" storage, storing data in an underlying simple database as an object. S3是对象存储 ,意味着它是更高层数据存储系统,实质上它是数据库“blob”存储,将数据作为对象存储在底层简单数据库中。 It's designed for Write once Read many access, perfect for media data like image or video particularly as it is distributed and offers a very high level of redundancy. 它专为一次写入而设计读取多次访问,非常适合图像或视频等媒体数据,特别是在分发时,可提供非常高级别的冗余。

EFS is a Network Storage system , underlying it is a storage array (SAN) and it offers the standard protocol for multi session network file systems (NFS) It's built on high speed SSD drives and is intended for shared storage for your ec2 instances, think file servers. EFS是一个网络存储系统 ,它是一个存储阵列(SAN),它为多会话网络文件系统(NFS)提供标准协议它建立在高速SSD驱动器上,用于ec2实例的共享存储,想一想文件服务器。 It's been a long time coming for AWS and IMO this was one of the biggest missing key components for aws to really be a competitor to on-premise enterprise data centers. AWS和IMO已经很长一段时间了,这是aws真正成为企业数据中心内部竞争对手的最大缺失关键组件之一。

Performance for EFS will be scalable and although I have not seen the details yet I am sure it will allow for provisioned IOPS just like EBS. EFS的性能将是可扩展的,虽然我还没有看到细节,但我相信它将允许像EBS一样配置IOPS。

You almost can't compare EFS and S3 because they are two very different things, even though there is some overlap in their functionality, or at least their apparent functionality. 你几乎无法比较EFS和S3,因为它们是两个非常不同的东西,即使它们的功能有一些重叠,或者至少它们的明显功能。

They both store things and they both have a storage pricing model that scales linearly with usage over time. 他们都存储东西,他们都有一个存储定价模型随着时间的推移线性扩展。

But S3 is an object store with an HTTP interface and a mixed consistency model.... 但S3是一个带有HTTP接口和混合一致性模型的对象存储....

...while EFS is an actual filesystem with an NFS interface and as such will almost certainly offer immediate consistency. ...虽然EFS是一个带有NFS接口的实际文件系统,因此几乎可以肯定提供即时一致性。

S3, coupled with a utility like s3fs can be used in a way that mimics a filesysem, but not to the point of behaving in all ways like an actual filesystem. S3,与s3fs这样的实用程序相结合,可以模仿文件系统的方式使用,但不能像实际文件系统那样以各种方式运行。

One way of looking at EFS is that it is an answer to the question, "how do I attach an EBS volume to multiple instances at the same time?" 查看EFS的一种方式是它是一个问题的答案,“如何将EBS卷同时附加到多个实例?” Previously, of course, the answer was, "you can't." 当然,以前的答案是,“你做不到。” You can mount the filesystem exposed by EFS on any nunber of instances and the result should be very similar to what you'd see if you had a "shared volume." 您可以在任何实例上安装由EFS公开的文件系统,结果应该与您拥有“共享卷”时看到的结果非常相似。

Its performance compared to S3 is not really a fair comparison, again, because they are different things for different purposes, but EFS will almost without question be "faster" by any meaningful definition of the word. 与S3相比,它的性能并不是一个公平的比较,因为它们是出于不同目的的不同之处,但EFS几乎毫无疑问会被这个词的任何有意义的定义“更快”。

Also, no software should be required in order to mount an EFS filesystem on a Linux system. 此外,为了在Linux系统上安装EFS文件系统,不需要任何软件。

EFS is also considerably (10x) more expensive than S3 at $0.30 vs $0.03. EFS也比S3高出(10倍),价格为0.30美元,而后者为0.03美元。 From an IOPs perspective you should see better performance from EFS as it's SSD based and doesn't have the overheard of HTTP on top as does S3. 从IOP的角度来看,您应该看到EFS的性能更好,因为它是基于SSD的,并且没有像S3那样无意中听到HTTP。 It's essential NAS as a Service. 它是NAS即服务的重要组成部分。

Two addition differences between the two: 两者之间的两个加法差异:

  1. AWS S3 offers Server-Side Encryption: http://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html The same is not currently offered in AWS EFS AWS S3提供服务​​器端加密: http//docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html AWS EFS 目前不提供相同的功能
  2. Files stored in AWS S3 as public, are accessible via a public URL to anyone. 作为公共存储在AWS S3中的文件可通过公共URL访问任何人。 In AWS EFS however, in order to achieve the same, you'll need to deploy a web server that will serve your files. 但是,在AWS EFS中,为了实现相同目的,您需要部署将为您的文件提供服务的Web服务器。

Choosing between EFS and S3 is depend on your usage pattern 在EFS和S3之间进行选择取决于您的使用模式

EFS availability and durability is same as S3 EFS可用性和耐用性与S3相同

but both have different usage patterns 但两者都有不同的使用模式

S3 have four common usage patterns: S3有四种常见的使用模式:

  • static web content 静态网页内容
  • host entire static websites 托管整个静态网站
  • store data for large-scale analytics. 存储大规模分析的数据。
  • backup and archiving of critical data. 备份和归档关键数据。

EFS is designed for applications thats concurrently access data from multiple EC2 instances. EFS专为同时访问多个EC2实例的数据的应用程序而设计。 simply, by having one EFS you can attach it to multiple EC2.. you can't do that with EBS. 简单地说,通过拥有一个EFS,您可以将其附加到多个EC2 ..您无法使用EBS执行此操作。

Amazon claim that S3 performance is more than any current users needs. 亚马逊声称S3性能高于当前用户的任何需求。

EFS performance has two modes EFS性能有两种模式

  • General Purpose 一般用途
  • Max I/O 最大I / O.

General Purpose is the default and it's appropriate for most operations type. 通用是默认值,适用于大多数操作类型。 but, if your workload will exceed 7000 file operations per second then Max I/O is your target 但是,如果您的工作负载每秒超过7000个文件操作,那么Max I / O就是您的目标

This may help: https://1drv.ms/x/s!Al2WmWQmp2xZtmeDzRWwXycUnh_o这可能会有所帮助: https : //1drv.ms/x/s!Al2WmWQmp2xZtmeDzRWwXycUnh_o

在此处输入图片说明

Regards, Aditya Garg问候, Aditya Garg

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS S3 与 EFS - 安装如何在它们之间产生差异? - AWS S3 vs EFS - how does mounting make the difference between them? AWS S3 Select 和 AWS Athena 有什么区别? - What is difference between AWS S3 Select and AWS Athena? AWS S3 中的 Object 和 Object ACL 有什么区别? - what is the difference between Object and Object ACL in AWS S3? AWS S3 SDK ListObjectsV2 startafter 和 ContinuationToken 有什么区别? - AWS S3 SDK ListObjectsV2 what's difference between startafter and ContinuationToken? S3 AWS CDK 的 access_control 和 public_read_access 有什么区别? - What's the difference between access_control and public_read_access for S3 AWS CDK? s3 download和getobject有什么区别 - what is the difference between s3 download and getobject S3对象和ObjectSummary有什么区别? - What is the difference between an S3 Object and an ObjectSummary? “s3:PutObject*”和“s3:PutObject”有什么区别? - What is the difference between "s3:PutObject*" and "s3:PutObject"? 在 CDN 和 AWS S3 对象上设置缓存标头有什么区别? - What is the difference between setting cache headers on CDN vs on AWS S3 objects? AWS S3 存储桶:“阻止公共访问”和未指定“允许”的空白存储桶策略文件有什么区别? - AWS S3 Bucket: what is the difference between "Block public access" and a blank Bucket policy file with no "allow" specified?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM