liveBook · Manning

NFS

As explained in Amazon Web Services in Action, Third Edition: An in-depth guide to AWS

NFS is a network file system protocol that allows clients to access files on remote servers as if they were local files.

NFS is a network file system protocol that lets machines mount and access files stored remotely as though they were part of a local filesystem. In AWS, Amazon Elastic File System (EFS) provides a managed, scalable, highly available NFS implementation. section 9.0

NFS is useful when multiple virtual machines must read and write the same files. EFS supports parallel access from multiple EC2 instances, including instances in different availability zones, making it suitable for shared application files and user uploads. section 9.0 section 2.1

Choose NFS-backed storage when the application needs shared filesystem semantics:

  • Use it for legacy applications that store state or uploaded content as ordinary files rather than objects. section 9.0
  • Mount one filesystem on multiple Linux EC2 instances so load-balanced web servers see the same application files and uploads. section 9.0 section 2.1
  • Prefer EFS over a single EBS volume when shared access or higher availability is required; EBS is attached to one instance within one data center. section 9.0

WordPress behind a load balancer

Two EC2 web servers run WordPress behind a load balancer. EFS, mounted by both servers through NFSv4.1, stores WordPress application files and user-uploaded images, so either server can handle a request without needing a separate copy of the files. section 2.1

How Amazon Web Services in Action, Third Edition: An in-depth guide to AWS covers it

How deep it goes
Explains NFS through EFS architecture, storage comparisons, mounting, performance, monitoring, and backups.
Examples
Uses a WordPress deployment where two web servers share application files and user-uploaded images through EFS.
What you can do after
Operate/configure shared filesystem storage by mounting EFS on multiple Linux EC2 instances.
How it connects
Connects NFS with EFS, EC2, EBS, instance stores, availability zones, load balancers, and legacy applications.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Amazon Web Services in Action, Third Edition: An in-depth guide to AWS. The section links point to the parts of the book it draws on.