Interview Prep/AWS/S3, EBS and EFS

An app on EFS slows to a crawl under load; `PercentIOLimit` sits at 100% or throughput flat-lines.

AdvancedTroubleshootingS3, EBS and EFS
Answer

Likely causes → In Bursting mode, throughput depends on stored size, and BurstCreditBalance has run out. PercentIOLimit at 100% means the file system has hit the I/O operation limit for General Purpose performance mode. Lots of small-file metadata operations also have high per-operation latency on NFS.

Diagnose →

aws efs describe-file-systems --file-system-id fs-0abc --query 'FileSystems[].[ThroughputMode,PerformanceMode,SizeInBytes.Value]'
# CloudWatch AWS/EFS: BurstCreditBalance, PermittedThroughput, MeteredIOBytes, PercentIOLimit

Fix →

  1. Switch to Elastic throughput: aws efs update-file-system --file-system-id fs-0abc --throughput-mode elastic
  2. Spread I/O across more clients and threads, and avoid hot ls loops over huge directories
  3. Cache read-heavy content locally

Prevent → Use Elastic throughput by default for spiky workloads, and keep databases off EFS.

aws All AWS questions Roadmap: AWS core services

More on S3, EBS and EFS