EFS
Last updated
Last updated
EFS is a file-level, fully managed, storage provided by AWS (Amazon Web Services) that can be accessed by multiple EC2 instances concurrently.
Just like the AWS EBS, EFS is specially designed for high throughput and low latency applications.
EFS can be created using the EC2-Instance where it will be created in a specific region and distributed across multiple availability zones for the purpose of high availability and durability.
Once the EFS is created you need to set up mount targets which will provide the connectivity to your EFS file system.
Standard
This is the default storage class for EFS.
The user is only charged for the amount of storage used.
This is recommended for storing frequently accessed files.
Infrequent Access
Cheaper storage space.
Recommended for rarely accessed files.
Increased latency when reading or writing files.
General Purpose
Offers low latency.
Supports a maximum of 7000 IOPS.
As a cloud watch metric, you can view the amount of IOPS your architecture uses and can switch to Max IOPS if required.
Max I/O
This is recommended when EFS needs over 7000 IOPS
Theoretically, this mode has an unlimited I/O speed.
Throughput Modes in EFS
Burst Mode
Allows 100MBPS of burst speed per TB of storage.
Provisioned Mode
Users can decide the max burst speed of the EFS but are charged more when speeds go beyond the default limit.
EFS is scalable and elastic where you can scale the EFS depending on the data that is going to be stored. The scaling is done automatically.
Multiple instances in AWS can access the EFS simultaneously. It makes it easy to share data across instances.
Within the same region, the EFS replicates the data to the multiple availability zones.
EFS supports a wide range of POSIX file system features, making it compatible with many Linux-based applications.
EFS only supports the Network File System (NFS) protocol, so it can only be mounted and accessed by devices that support NFS.
EFS has a maximum file size of 47.9 TB.
EFS has a maximum throughput of 1000 MB/s per file system and a maximum of 16,000 IOPS per file system.
EFS has a maximum number of files and directories that can be created within a single file system, which is determined by the size of the file system. For example, a 1 TB file system can support up to about 20 million files and directories.
Login on the AWS account.
Verify the region in which the infrastructure will be created. In the upper right corner, click on the button with the city name and choose the region, in this case, it will be Virginia.
Select the Amazon EFS service.
Click on “Create file system”.
Select the VPC and the private subnet. Press “Next Step”.
Assign a name to the EFS and choose the performance mode, it is recommended to keep the value by default. Then, press “Next Step”.
Review the configurations and create the EFS.
Verify the correct creation of the amazon EFS.
Connect to the instance via SSH.
Mount EFS in the instance.