4 ms·
EFS allows you to connect to the filesystem from multiple web front-end machines. Doing the same with EBS would require you to manage some sort of clustered fil
by JStanton617 5y ago
EFS allows you to connect to the filesystem from multiple web front-end machines. Doing the same with EBS would require you to manage some sort of clustered filesystem, or run a separate storage tier server.
- remram 5y agoSo you are using it for shared files and user-generated files, not database? Instead of S3?
- jabart 5y agoWordpress Plugins are stored both in the filesystem and in the database and need to match. Same for the Wordpress Core when an update occurs as WP updates the PHP files locally for the upgrade process. The AWS guidance for a multi-webserver Wordpress setup has included EFS for this reason for years now. You can store uploaded media in S3, but that is a performance optimization that doesn't solve the previous issues.
- remram 5y agoSo you mean the plugins' code, I see, thanks!
- zrail 5y agoNot OP but the obvious use case for Wordpress is the install directory itself. Deploy to one server and have all servers sharing the EFS get the update at the same time.
- KptMarchewa 5y agoSo PHP rereads the source files on every request? Interesting.
- remram 5y agoThere's a cache. Even if you have to restart some process or purge some cache, this setup makes sense to me for applications that can update their own code (e.g. install/update plugins).