Amazon EFS: How to create an Elastic File System?

Amazon EFS: How to create an Elastic File System?

In this infrastructure with autoscaling, the code is not synchronized, it is shared. This requires an Elastic File System (EFS) which we will create in the following tutorial. The creation and configuration of Amazon EFS are needed to share the document root of WordPress without the need of having continuous synchronizations. The data should be the same in all the instances of autoscaling.

Keep in mind that this is just the 4th Part of our sequence of How to create a High-Performance WordPress with Autoscaling on AWS.

Step by Step to create an Amazon EFS

Requirements:

  • An account on AWS

Step by step:

1. Login on the AWS account.
2. 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.

Step by Step to create an Amazon EFS, 1-Verify-the-region

3.  Select the Amazon EFS service.

Step by Step to create an Amazon EFS,2-Select-the-EFS-Service

4. Click on “Create file system”.

Step by Step to create an Amazon EFS, 3-Create-file-system

5. Select the VPC and the private subnet. Press “Next Step”.

4-select-the-VPC-w323

6. Assign a name to the EFS and choose the performance mode, it is recommended to keep the value by default. Then, press “Next Step”.

5-Assign-a-name

7. Review the configurations and create the EFS.

6-Review-the-configuration

8. Verify the correct creation of the amazon EFS.

7-Verify-the-correct-creation

*Note: Verify in the Security Group, that the value of the origin (source) of the traffic is the private network or 0.0.0.0/0.

  1. Connect to the instance via SSH.
  2. Mount EFS in the instance.

a) Click on “Amazon EC2 mount instructions”.

8-Mount-EFS
9-Follow-the-instructions

Follow the instructions shown.

11-Test
12-Test2

The results of this test are as follows:

  • Writing a 500 Mb file in the EFS took 4.74519 seconds with a speed of 100 Mb / s.
  • In a local directory, writing the same file took 7.34338 seconds with a speed of 71.4 Mb / s.

This means that the I/O of the EFS is faster than a local directory.

And that’s it! Those are all the steps that you need to follow to create an Elastic Fyle System. Remember that the objective of this tutorial is to create a high-performance and Auto-scalable WordPress. Do not forget to go to see the whole process and the other tutorials we have prepared for you.

implement a high performance and autoscalable wordpress

Subscribe

to our newsletter

Table of Contents
Weekly DevOps Newsletter

Subscribe to our DevOps News

Subscribe to a monthly newsletter to receive the IT best practices, startup-related insights & emerging technologies.

Join hundreds of business leaders and entrepreneurs, who are part of our growing tech community.

We guarantee 100% privacy. Your information will not be shared.