Guide · Amazon EFS · Performance Tuning
Amazon EFS Performance Modes and Throughput for MCP Servers — Bursting, Elastic, and Provisioned
Amazon EFS exposes two independent performance axes: performance mode (General Purpose vs Max I/O, which controls metadata latency and IOPS ceiling) and throughput mode (Bursting, Elastic, or Provisioned, which controls how much read/write bandwidth is available). Getting these wrong is expensive: Bursting mode on a small file system frequently runs out of burst credits and throttles to 100 KB/s baseline — invisible until production traffic hits. Provisioned Throughput on a file system that only needs occasional bursts wastes $6/MB/s/month. This guide explains how each mode works, how to pick the right one for MCP server workloads, how to monitor the critical BurstCreditBalance metric, and how to switch throughput mode without downtime.
TL;DR
Use Elastic Throughput for most MCP server EFS workloads — it auto-scales from zero to 10 GB/s read / 3 GB/s write with no burst credits to manage, billed per GB transferred ($0.03/GB read, $0.06/GB write in us-east-1). Use Bursting only if your file system is large (1 TB+) and your sustained throughput need matches the burst ratio, or if the per-GB transfer cost of Elastic is greater than the flat-rate provisioned cost. Use Provisioned Throughput only if you need a guaranteed floor of throughput regardless of file system size. Never use Max I/O performance mode unless you have 100+ concurrent NFS clients and can tolerate 2× higher metadata latency. Can't switch performance mode after creation — plan before creating.
Performance mode — General Purpose vs Max I/O
Performance mode controls the metadata operation latency ceiling and the per-file-system IOPS limit. It is set at file system creation and cannot be changed afterwards.
| Mode | Metadata latency | IOPS limit | Use when |
|---|---|---|---|
| General Purpose (default) | <1 ms | 35,000 IOPS | All MCP server workloads. Low latency for directory listings, file open/close, stat() calls. |
| Max I/O | 2–10 ms (higher) | Unlimited (file system aggregate) | 100+ concurrent NFS clients with aggregate throughput >10 GB/s. Rare — big data ETL pipelines, HPC clusters. |
MCP servers should always use General Purpose mode. Even if you have 50 Lambda functions or ECS tasks simultaneously mounted to EFS, you are unlikely to hit 35,000 IOPS — each tool call does a handful of file reads and writes, not thousands. The only scenario where Max I/O makes sense for MCP infrastructure is an ML training pipeline where hundreds of GPU instances are streaming training data concurrently from EFS. For that use case, consider S3 + FSx for Lustre instead.
# Create with General Purpose (default) — this is correct for MCP servers
aws efs create-file-system \
--performance-mode generalPurpose \
--throughput-mode elastic \
--encrypted \
--tags Key=Name,Value=mcp-server-efs
# Check performance mode on existing file system
aws efs describe-file-systems \
--file-system-id fs-0abc123def456 \
--query 'FileSystems[0].PerformanceMode'
# Returns: "generalPurpose"
Throughput mode — Bursting
Bursting Throughput is the legacy mode and was the only option before Elastic Throughput launched in 2022. In Bursting mode, throughput is tied to file system size through a credit system:
- Baseline throughput: 50 KB/s per GB of Standard storage class. A 1 GB file system gets 50 KB/s baseline — barely enough for one file read per second.
- Burst throughput: 100 MB/s for file systems under 1 TB; scales linearly above that (e.g., 2 TB = 200 MB/s burst). Burst is funded by credits.
- Burst credits: earned at 50 KB/s × file system size (GB). A 10 GB file system earns 500 KB/s = 42 GB/day of credits. At 100 MB/s burst, it depletes in 7 minutes of sustained bursting.
The critical metric for Bursting mode is BurstCreditBalance. If it hits zero, the file system throttles to baseline throughput (50 KB/s × GB stored). For a 100 MB file system (100 GB stored), baseline is 5 MB/s — usable. For a 2 GB file system (the EFS minimum billing size is 0 GB — you pay for what you store), baseline is 100 KB/s — essentially unusable for model loading.
# CloudWatch alarm — alert when burst credits are low (less than 1 GB remaining)
aws cloudwatch put-metric-alarm \
--alarm-name "efs-burst-credits-low" \
--namespace AWS/EFS \
--metric-name BurstCreditBalance \
--dimensions Name=FileSystemId,Value=fs-0abc123def456 \
--period 300 \
--evaluation-periods 2 \
--threshold 1073741824 \
--comparison-operator LessThanThreshold \
--statistic Minimum \
--alarm-actions "arn:aws:sns:us-east-1:123456789012:ops-alerts" \
--ok-actions "arn:aws:sns:us-east-1:123456789012:ops-alerts"
Bursting Throughput pricing: no extra charge beyond storage. You pay only for storage ($0.30/GB/month for Standard) with burst throughput included. This makes Bursting the cheapest option for high-volume sequential reads on large file systems, since the per-GB transfer cost of Elastic Throughput ($0.03–$0.06/GB) can exceed the included burst allowance at scale.
When to use Bursting for MCP servers: your EFS Standard storage is >500 GB AND your throughput need is bursty (read the full model during cold start, then quiet for hours). The large storage size gives you enough burst credits and baseline throughput to cover cold starts without paying Elastic Throughput per-GB fees.
Throughput mode — Elastic (recommended)
Elastic Throughput (launched November 2022) automatically scales throughput up and down based on workload demand, with no burst credits to manage. This is the right default for MCP server EFS file systems.
| Dimension | Elastic Throughput limit |
|---|---|
| Read throughput | Up to 10 GB/s per file system |
| Write throughput | Up to 3 GB/s per file system |
| Read IOPS | Up to 55,000 IOPS (General Purpose) / unlimited (Max I/O) |
| Write IOPS | Up to 55,000 IOPS |
| Minimum sustained throughput | 1 MB/s (always available, no burst credits needed) |
Pricing for Elastic Throughput (us-east-1, 2026 rates): $0.03/GB of data read; $0.06/GB of data written. Storage costs remain separate ($0.30/GB/month Standard, $0.016/GB/month IA).
import { EFSClient, UpdateFileSystemCommand } from "@aws-sdk/client-efs";
const efs = new EFSClient({ region: "us-east-1" });
// Switch from Bursting to Elastic (no downtime, change takes effect within minutes)
await efs.send(new UpdateFileSystemCommand({
FileSystemId: "fs-0abc123def456",
ThroughputMode: "elastic",
}));
// You can switch modes up to 2 times in a 24-hour period
// Switch from Elastic back to Bursting:
await efs.send(new UpdateFileSystemCommand({
FileSystemId: "fs-0abc123def456",
ThroughputMode: "bursting",
}));
For a 2 GB EFS file system serving model files (1 GB model, read on every cold start): with Bursting mode, the 2 GB stored earns 100 KB/s baseline — not enough for a 1 second cold start. Elastic Throughput delivers 1 MB/s minimum and can burst to 10 GB/s, completing the 1 GB model read in ~800 ms. The transfer cost: $0.03/GB × 1 GB × (number of cold starts). At 1,000 cold starts/month, that's $0.03/month — negligible compared to EC2 or Lambda compute costs.
Throughput mode — Provisioned
Provisioned Throughput lets you set a specific MB/s floor independent of file system size. This is useful when you need a guaranteed minimum throughput — for example, a 5 GB EFS file system that needs 500 MB/s during batch processing. Without provisioning, Bursting would give only 250 KB/s baseline on a 5 GB file system.
Pricing: $6.00/MB/s/month (us-east-1) for provisioned throughput above the baseline you'd get from Bursting mode. At 100 MB/s provisioned, that's $600/month — only cost-effective for very specific throughput-intensive workloads.
aws efs update-file-system \
--file-system-id fs-0abc123def456 \
--throughput-mode provisioned \
--provisioned-throughput-in-mibps 100 # 100 MB/s provisioned
# View current provisioned throughput
aws efs describe-file-systems \
--file-system-id fs-0abc123def456 \
--query 'FileSystems[0].{ThroughputMode:ThroughputMode, ProvisionedThroughput:ProvisionedThroughputInMibps}'
When to use Provisioned for MCP servers: almost never. The only compelling case is a batch ML job that runs nightly and reads 1 TB from EFS in under 30 minutes — where the provisioned throughput cost ($6/MB/s/month × 1,000 MB/s = $6,000/month) is offset by shorter run time. For that workload, FSx for Lustre ($0.14/GB/month, 200 MB/s to 1+ TB/s throughput) is usually a better choice than EFS Provisioned.
Throughput mode decision matrix
| EFS file system size | Workload pattern | Recommended mode | Reason |
|---|---|---|---|
| <100 GB | Intermittent reads (MCP cold starts) | Elastic | Burst credits insufficient for even one sustained read; Elastic delivers consistent throughput |
| 100 GB – 1 TB | Frequent reads from many Lambda/ECS instances | Elastic | Burst credits may be enough but Elastic eliminates the management overhead; per-GB cost is low for typical read volumes |
| >1 TB | Spiky reads, large storage, mostly idle | Bursting | Baseline throughput (50 KB/s × GB) is usable; burst credits are ample; no per-GB transfer cost |
| Any | Sustained high-throughput batch processing | Provisioned (or FSx) | Need guaranteed floor regardless of storage size; evaluate FSx for Lustre as alternative |
The practical rule: start with Elastic. Switch to Bursting only after you observe that BurstCreditBalance is growing (file system size is large enough to outpace throughput demand) and the per-GB transfer cost of Elastic exceeds the included Bursting throughput.
Monitoring throughput with CloudWatch
Key EFS throughput metrics for MCP server operators:
import { CloudWatchClient, GetMetricDataCommand } from "@aws-sdk/client-cloudwatch";
const cw = new CloudWatchClient({ region: "us-east-1" });
const { MetricDataResults } = await cw.send(new GetMetricDataCommand({
StartTime: new Date(Date.now() - 3600 * 1000), // last hour
EndTime: new Date(),
MetricDataQueries: [
{
Id: "readBytes",
MetricStat: {
Metric: {
Namespace: "AWS/EFS",
MetricName: "DataReadIOBytes",
Dimensions: [{ Name: "FileSystemId", Value: "fs-0abc123def456" }],
},
Period: 60,
Stat: "Sum",
},
},
{
Id: "writeBytes",
MetricStat: {
Metric: {
Namespace: "AWS/EFS",
MetricName: "DataWriteIOBytes",
Dimensions: [{ Name: "FileSystemId", Value: "fs-0abc123def456" }],
},
Period: 60,
Stat: "Sum",
},
},
{
Id: "burstBalance",
MetricStat: {
Metric: {
Namespace: "AWS/EFS",
MetricName: "BurstCreditBalance",
Dimensions: [{ Name: "FileSystemId", Value: "fs-0abc123def456" }],
},
Period: 300,
Stat: "Minimum",
},
},
],
}));
// Calculate average throughput MB/s over the last hour
const totalReadBytes = MetricDataResults[0].Values?.reduce((a, b) => a + b, 0) ?? 0;
const totalWriteBytes = MetricDataResults[1].Values?.reduce((a, b) => a + b, 0) ?? 0;
const readMBps = (totalReadBytes / (1024 * 1024)) / 3600;
const writeMBps = (totalWriteBytes / (1024 * 1024)) / 3600;
console.log(`Avg read: ${readMBps.toFixed(2)} MB/s, write: ${writeMBps.toFixed(2)} MB/s`);
Important metrics and alarm thresholds:
| Metric | Throughput mode | Alert when |
|---|---|---|
BurstCreditBalance | Bursting only | <1 GB (1,073,741,824 bytes) — impending throttle to baseline |
PercentIOLimit | Both | >80% sustained — approaching IOPS limit; consider Max I/O if >100 clients |
MeteredIOBytes | Elastic (billing) | Monitor for unexpected spikes — cost anomaly detection |
DataReadIOBytes | Both | Baseline capacity planning, not an alert metric |
ThroughputUtilization | Provisioned only | >90% — approaching provisioned ceiling; increase provisioned MB/s |
Storage class optimization — IA and Archive tiers
EFS Intelligent-Tiering automatically moves files between Standard and IA storage classes based on access patterns. For MCP server model caches, this can significantly reduce storage costs for older model versions that are rarely used but need to remain accessible.
aws efs put-lifecycle-configuration \
--file-system-id fs-0abc123def456 \
--lifecycle-policies \
'[
{"TransitionToIA": "AFTER_14_DAYS"},
{"TransitionToArchive": "AFTER_90_DAYS"},
{"TransitionToPrimaryStorageClass": "AFTER_1_ACCESS"}
]'
Cost comparison for a 50 GB EFS file system storing model artifacts (assume 80% cold data after 30 days):
| Scenario | Monthly storage cost |
|---|---|
| All Standard (no lifecycle) | 50 GB × $0.30 = $15.00 |
| 80% IA (20% Standard) | 10 GB × $0.30 + 40 GB × $0.016 = $3.00 + $0.64 = $3.64 |
| 80% Archive (20% Standard) | 10 GB × $0.30 + 40 GB × $0.008 = $3.00 + $0.32 = $3.32 |
IA retrieval fee: $0.01/GB. If a 1 GB model is retrieved once per month from IA storage, retrieval cost = $0.01 — negligible. If retrieved 100 times/month (100 cold starts × 1 GB), retrieval cost = $1.00 — compare this to Elastic Throughput transfer cost ($0.03/GB × 100 = $3.00). For frequently-accessed models, keeping them in Standard is cheaper than IA + frequent retrievals.
Use the TransitionToPrimaryStorageClass: AFTER_1_ACCESS policy to move files back to Standard after the first read — this ensures that a model that gets queried once every few months returns to Standard tier after that query, so subsequent cold starts within the next 14 days don't pay retrieval fees.
One Zone vs Multi-AZ (Regional) file systems
EFS file systems are either Regional (data replicated across all AZs in the region, the default) or One Zone (data stored in a single AZ, lower cost, lower durability). For MCP server caches and artifact storage, One Zone is often appropriate:
| Type | Durability | Storage price | Mount target | Use case |
|---|---|---|---|---|
| Regional (Multi-AZ) | 99.999999999% (11 nines) | $0.30/GB Standard | One per AZ | Persistent data that cannot be rebuilt (session state, user uploads) |
| One Zone | 99.9999999% (single AZ) | $0.043/GB Standard | One (the specified AZ) | Caches and artifacts that can be re-downloaded from S3 if the AZ fails |
# Create a One Zone file system in us-east-1a (for model cache — rebuildable)
aws efs create-file-system \
--performance-mode generalPurpose \
--throughput-mode elastic \
--availability-zone-name us-east-1a \ # makes it One Zone
--encrypted \
--tags Key=Name,Value=mcp-model-cache Key=Type,Value=one-zone
One Zone saves 85% on storage costs vs Regional ($0.043 vs $0.30/GB). For a 50 GB model cache: Regional = $15/month vs One Zone = $2.15/month. The tradeoff is that if the AZ fails, the file system is unavailable until the AZ recovers (typically minutes to hours) — but since the models can be re-downloaded from S3, this is acceptable downtime for a cache tier.
Use Regional EFS for session state, user-generated content, or any data that cannot be trivially rebuilt from an authoritative source. Use One Zone EFS for caches, pre-computed artifacts, and staging directories where the source of truth is elsewhere (S3, database).
Related guides
- Amazon EFS for MCP servers: fundamentals, mount targets, and access points
- EFS with Lambda: mounting shared file systems in serverless MCP server functions
- EFS with ECS and Fargate: persistent volumes for stateful MCP server containers
- Running MCP servers on Amazon EC2: instance profiles, IMDSv2, and security groups
- MCP server uptime monitoring