1 00:00:00,130 --> 00:00:01,520 Hi, and welcome to this lecture 2 00:00:01,520 --> 00:00:04,430 on Amazon EFS Elastic File System. 3 00:00:04,430 --> 00:00:09,000 So EFS is a managed NFS, which is a network file system. 4 00:00:09,000 --> 00:00:10,840 And because it's a network file system 5 00:00:10,840 --> 00:00:14,060 it can be mounted on many EC2 instances. 6 00:00:14,060 --> 00:00:15,770 And these EC2 instances 7 00:00:15,770 --> 00:00:19,120 can also be in different availability zones. 8 00:00:19,120 --> 00:00:21,030 That's the whole power of EFS. 9 00:00:21,030 --> 00:00:22,220 So it's highly available. 10 00:00:22,220 --> 00:00:23,730 It's very scalable. 11 00:00:23,730 --> 00:00:24,563 It's expensive. 12 00:00:24,563 --> 00:00:28,220 It's about three times the cost of a gp2 EBS volume. 13 00:00:28,220 --> 00:00:29,220 And you pay per use. 14 00:00:29,220 --> 00:00:31,660 So you don't have to provision capacity in advance. 15 00:00:31,660 --> 00:00:32,689 Let me explain. 16 00:00:32,689 --> 00:00:34,470 So you have your EFS file system 17 00:00:34,470 --> 00:00:36,650 and you surround it with a security group 18 00:00:36,650 --> 00:00:38,620 and then you can have EC2 instances 19 00:00:38,620 --> 00:00:42,080 many of them in the us-east-1 A availability zone, 20 00:00:42,080 --> 00:00:43,040 for example. 21 00:00:43,040 --> 00:00:47,440 Or EC2 instances in the us-east-1 B availability zone. 22 00:00:47,440 --> 00:00:51,840 Or us-east-one C availability zones for your EC2 instances. 23 00:00:51,840 --> 00:00:54,180 And they can all connect at the same time 24 00:00:54,180 --> 00:00:58,490 to the same network file system through EFS. 25 00:00:58,490 --> 00:01:01,650 So the use cases of EFS are content management, 26 00:01:01,650 --> 00:01:04,610 web serving, data sharing, WordPress. 27 00:01:04,610 --> 00:01:07,900 It uses internally the NFS protocol. 28 00:01:07,900 --> 00:01:10,470 And to control access to your EFS, 29 00:01:10,470 --> 00:01:13,150 you need to set up a security group. 30 00:01:13,150 --> 00:01:15,500 Now EFS, it's very important to note 31 00:01:15,500 --> 00:01:18,760 that it's only compatible with Linux based AMI 32 00:01:18,760 --> 00:01:20,620 and not Windows. 33 00:01:20,620 --> 00:01:22,220 You can enable encryption at rest 34 00:01:22,220 --> 00:01:24,750 in your EFS drive using KMS. 35 00:01:24,750 --> 00:01:27,280 And it's a standard file system on Linux. 36 00:01:27,280 --> 00:01:32,270 So it uses the POSIX system and it has a standard file API. 37 00:01:32,270 --> 00:01:33,670 And the cool thing about EFS 38 00:01:33,670 --> 00:01:36,960 is that you don't need to plan the capacity in advance. 39 00:01:36,960 --> 00:01:40,670 The file system will scale automatically and its pay-per-use 40 00:01:40,670 --> 00:01:44,360 for each gigabyte of data you use in EFS. 41 00:01:44,360 --> 00:01:46,520 Now, let's talk about the performance of EFS 42 00:01:46,520 --> 00:01:48,950 because these can come up at the exam. 43 00:01:48,950 --> 00:01:50,700 So the scale is that first of all, 44 00:01:50,700 --> 00:01:53,480 you can get thousands of concurrent NFS clients 45 00:01:53,480 --> 00:01:56,640 and 10 gigabytes per second of throughput. 46 00:01:56,640 --> 00:01:59,410 You can grow to your Petabyte-scale network file system 47 00:01:59,410 --> 00:02:03,010 automatically without provisioning capacity in advance. 48 00:02:03,010 --> 00:02:06,260 Now, you can set different performance modes for EFS 49 00:02:06,260 --> 00:02:08,820 at the creation time of your file system. 50 00:02:08,820 --> 00:02:10,620 The first one is general purpose. 51 00:02:10,620 --> 00:02:14,410 It's a default and it's for latency-sensitive use cases. 52 00:02:14,410 --> 00:02:17,330 So think about web servers, CMS, et cetera. 53 00:02:17,330 --> 00:02:19,670 But if you wanted to maximize the IO, 54 00:02:19,670 --> 00:02:21,040 you can use the Max I/O one. 55 00:02:21,040 --> 00:02:24,120 It gives you a higher latency, higher throughput 56 00:02:24,120 --> 00:02:25,170 and it's highly parallel. 57 00:02:25,170 --> 00:02:27,680 So this is more when you have big data 58 00:02:27,680 --> 00:02:31,113 or media processing type of need for your file system. 59 00:02:32,020 --> 00:02:34,520 The next one is around throughput mode. 60 00:02:34,520 --> 00:02:37,300 So by default, you have the Bursting mode 61 00:02:37,300 --> 00:02:39,490 which is that one terabyte gives you 62 00:02:39,490 --> 00:02:43,423 about 50 megabytes per second of data transfer speed 63 00:02:43,423 --> 00:02:47,460 plus a burst up to 100 megabytes per second. 64 00:02:47,460 --> 00:02:49,640 But then you can set up as well Provisioned 65 00:02:49,640 --> 00:02:52,290 because with Bursting, the more space you're using, 66 00:02:52,290 --> 00:02:55,780 the more bursting capacity you get and throughput you get. 67 00:02:55,780 --> 00:02:58,050 But with Provisioned, you can set the throughput 68 00:02:58,050 --> 00:03:00,180 regardless of your storage size. 69 00:03:00,180 --> 00:03:03,050 So for example, you can have a one terabyte storage 70 00:03:03,050 --> 00:03:05,850 on your EFS and decide Provisioned 71 00:03:05,850 --> 00:03:07,600 and one gigabits per second, 72 00:03:07,600 --> 00:03:09,720 and one gigabyte per second speed 73 00:03:09,720 --> 00:03:11,763 for your EFS network file system. 74 00:03:13,040 --> 00:03:15,890 Now for storage classes, again, multiple options. 75 00:03:15,890 --> 00:03:17,960 So you can set up Storage Tiers. 76 00:03:17,960 --> 00:03:20,700 And its a feature to move files to a different tier 77 00:03:20,700 --> 00:03:22,800 after a few days. 78 00:03:22,800 --> 00:03:24,820 So for example, the Standard tier 79 00:03:24,820 --> 00:03:27,240 is for frequently accessed files. 80 00:03:27,240 --> 00:03:32,150 And there is the Infrequent access tier, the EFS-IA, 81 00:03:32,150 --> 00:03:35,680 which is going to give you a cost to retrieve files 82 00:03:35,680 --> 00:03:37,460 if you do ever retrieve them. 83 00:03:37,460 --> 00:03:40,640 But when you store these files on EFS-IA, 84 00:03:40,640 --> 00:03:42,550 you are paying a lower price. 85 00:03:42,550 --> 00:03:46,580 And to enable EFS IA, you must choose a Lifecycle Policy. 86 00:03:46,580 --> 00:03:49,160 So let's assume we have some frequently used files 87 00:03:49,160 --> 00:03:51,610 on EFS Standard, but then one of these files 88 00:03:51,610 --> 00:03:54,390 is not accessed for more than 60 days, 89 00:03:54,390 --> 00:03:57,610 then because of the Lifecycle Policy we set up together, 90 00:03:57,610 --> 00:04:01,070 the file is going to be moved to EFS IA 91 00:04:01,070 --> 00:04:04,480 in a different tier and is gonna give us a lower cost. 92 00:04:04,480 --> 00:04:07,450 Now in terms of availability and durability, 93 00:04:07,450 --> 00:04:08,340 you have two options. 94 00:04:08,340 --> 00:04:10,960 You can set up EFS to be Multi-AZ 95 00:04:10,960 --> 00:04:12,790 which is great for production use cases 96 00:04:12,790 --> 00:04:15,640 because if an availability zone is down 97 00:04:15,640 --> 00:04:19,110 then it will not affect your EFS file system. 98 00:04:19,110 --> 00:04:21,339 But if you want for development 99 00:04:21,339 --> 00:04:24,380 to have a One Zone EFS file system, you can. 100 00:04:24,380 --> 00:04:28,090 So it's great for development, but it's only in one AZ. 101 00:04:28,090 --> 00:04:31,640 And backup are enabled by default and it's still compatible 102 00:04:31,640 --> 00:04:34,440 with the Infrequent access storage tier. 103 00:04:34,440 --> 00:04:37,130 So it's called the EFS One Zone-IA. 104 00:04:37,130 --> 00:04:39,730 And that gives you the more aggressive discount 105 00:04:39,730 --> 00:04:43,960 which is about 90% in cost saving if you use that. 106 00:04:43,960 --> 00:04:46,770 So the exam will ask you, when should you use EFS? 107 00:04:46,770 --> 00:04:49,110 And then what options should you set 108 00:04:49,110 --> 00:04:52,040 on your EFS network file system to ensure 109 00:04:52,040 --> 00:04:54,760 that you validate and comply with the requirements. 110 00:04:54,760 --> 00:04:56,590 Okay, that's it for this lecture. 111 00:04:56,590 --> 00:04:57,423 I hope you liked it. 112 00:04:57,423 --> 00:04:59,290 And I will see you in the next lecture.