55 points · by geertj · 3y ago · 24 comments
Didn't notice they moved to a new "Elastic Throughput" pricing, the old one being "Legacy"... it now charges $0.03/GB reads and $0.06/GB writes on top of the same $0.30/GB storage, terrible pricing.
Specifically, we noticed lack of support for these features:
- session trunking (and, in general, multiple channels)
- multiple concurrent requests on a channel (ala ca_maxrequests)
- callbacks
ca_maxoperations was quite low (10, I think?), and they limit the number of parallel clients that you can access EFS with at once.
What this amounts to is that you can reach acceptable performance on file reads/writes, but metadata heavy access patterns have no hope of reaching the advertised IOPs. It's a shame because frankly metadata performance is something NFSv4 excels at.
FSxN (https://aws.amazon.com/fsx/netapp-ontap/)
As others have mentioned among non-native services (not sure if that's acceptable to you, but it is to some) there are many 3rd party solutions that work better with NFSv4.
On the other hand, the pricing is absurd. A very nice 30.72TiB NVMe SSD for datacenter use is $3400. Storing that much data on EFS will pay for itself in less than two weeks. (I read the GB-month fee in the docs several times. I don’t think it’s a typo.). If you read the data four times, you will pay as much as that SSD costs.
This is so absurdly expensive that, for many workloads, it will be much cheaper to just replicate the data into big SSDs on each server. (Of course, doing this on AWS may be a bit unpleasant.)
And EFS’s performance seems lackluster. One of those SSDs has maybe 10x the IOPS and 1/10 the latency of EFS.
https://aws.amazon.com/efs/when-to-choose-efs/
If thought-experimenting a cheaper alternative to EFS, remember to include:
- Continuous availability to the filesystem without data loss if you lose a data center
- Close-to-open consistency semantics https://docs.aws.amazon.com/efs/latest/ug/how-it-works.html#...
I don't think this is an "architectural decision", more a hold-over from legacy systems that had NFS dependencies. Main (public) example that comes to mind is Jira Data Center: https://confluence.atlassian.com/adminjiraserver/running-jir... If the business made a decision to buy it, then you need NFS, and EFS can fill that. In this sense, I think of EFS as being in the class of AWS products like Amazon MQ for RabbitMQ - the architectural decision was made outside of the context of your company's stack, but AWS still has a managed offering to support it.
Modern systems will typically pick S3 instead, as it's much cheaper. I'd be hard-pressed to imagine a need for which NFS is a reasonable modern decision in greenfield development.
For example. I setup Developer Workspaces that can mount an EFS share to their linux box, and anything they put in there will be accessible from Kubernetes Jobs they kick off, and from their Jupyterhub workspace.
I can either pay AWS to do it for me, or I can figure out how to get a 250k IOPS GlusterFS server to work across multiple AZs in a region. I think the math maths out to around the same cost at the end of the day
It's not something you can just throw together if you want something that is stable and performant.
Which means that the cost of that person to operate it is going to be significantly more expensive than if you just use AWS.
Buuttt... you're trying to compare apples (a rack in a DC) to oranges (an AWS Native Solution that spans multiple DCs). And that's before you get into all the AWS bullshit that fucking sucks, but it sucks more to do it yourself.
A Rack in a DC isn't a solution that's useful to people who are in AWS.
Short answer you can do it, but it will get expensive if you do any significant amount of writes.
I do wish AWS would release a SQLite compatible database though. Maybe this week during Reinvent.
Can someone share how high-throughput EFS has been helpful ?
I’ve never had much luck with NFS in the past besides shared home directories. Anything concurrent always seemed to have consistency issues.