大网数据广告活动
服务器运维问答

Docker Storage in AWS. S3, EBS or EFS

· 52CE 我爱测

I have just moved companies and I am building a new docker swarm on aws. In my last organisation everything was on premises. I am trying to understand my options for persistent volumes, and see that rexray now offer docker certif…

问题原文

原帖链接 · Mark Jones · CC BY-SA 4.0

I have just moved companies and I am building a new docker swarm on aws. In my last organisation everything was on premises.

I am trying to understand my options for persistent volumes, and see that rexray now offer docker certified plugins for all three storage systems.

I have been trying to look into my options, but a lot of the articles I am reading are 2 year old, which is a lifetime in the docker world.

I understand that to some extent it depends what I am storing, and that depends on the container. Usually it is either config files for the service or a database such as postgres or Mongo.

A few years ago everyone was talking about backing docker with S3, but I am concerned about storing databases there as it seems rather extreme to update the entire object if a record changes.

the old plugin documentation used to say that docker could use "any network attached block storage device", and back then I used flocker with ceph. I have found a few articles (from 2017) talking about performance and high availability going out of the window with EBS?

EFS I know nothing about, but presume it is a file system on top of EBS? and thus prone to the same issues.

Can anyone give me more up to date advice?

thank you

已采纳解答

原帖链接 · tacotuesday · CC BY-SA 4.0

This really depends on your use case and cost tolerance.


S3

  • Cheapest option of the three
  • Can be shared with a multiple hosts
  • Redundant
  • Highest latency of the three
  • Elastic

EBS

  • Lowest latency of the three
  • Lower cost than EFS, but higher than S3
  • Redundant
  • Cannot be shared with multiple EC2 instances at the same time
  • Elastic, but you have to resize the EBS volume and then the file system

EFS

  • NFS as a service
  • Can be shared with multiple hosts
  • Elastic
  • Redundant
  • Lower latency than S3
  • Highest cost of the three

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-03-25)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。