Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MongoDB Docker Container on AWS ECS using EFS

Is it recommended to have multiple MongoDB Docker containers on the AWS Elastic Container Service (ECS) that share the same AWS Elastic File System (EFS)? Why? Why not?

like image 842
Justin Avatar asked Nov 08 '22 07:11

Justin


1 Answers

It would depend on your requirements. Basically, EFS implements NFSv4 protocols. Usually NFS is slower than the block device. Didn't test it. But think EFS performance would be lower than EBS on the same SSD device. You could test your application with MongoDB on EFS. If performance is not a concern, it would be fine to use EFS.

like image 119
CloudStax Avatar answered Nov 15 '22 05:11

CloudStax