Troubleshooting Ingestion and Storage Capacity Limits
This lesson explains how to recognise the symptom of each capacity limit in stores, streams and the network, which is the key to fixing ingestion pipelines and training jobs that slow down or fail.
Learning outcomes
After completing this lesson, you will be able to:
- Spread S3 requests across prefixes.
- Choose between File, FastFile and Pipe input modes for data-starved training jobs.
- Diagnose stream, database and disk capacity limits.
S3 request rates
Amazon S3 supports at least 3,500 PUT, COPY, POST or DELETE requests and 5,500 GET or HEAD requests per second for each prefix, and scales further by partitioning prefixes automatically. A sudden burst against a single prefix can return HTTP 503 Slow Down while S3 adjusts. The fixes are to spread objects across more prefixes, retry with exponential backoff (the AWS SDKs do this automatically) and avoid writing millions of tiny objects.
Training jobs starved of data
A training job that shows low GPU utilisation while its instances are busy reading data is I/O-bound. SageMaker AI offers three input modes. File mode downloads the whole dataset to the instance's EBS volume before training starts, so large datasets delay the start and need a large volume. FastFile mode presents S3 objects as files and streams them on demand, so training starts immediately. Pipe mode streams data through Unix pipes for algorithms that support it.
Further fixes are to combine many small files into larger shards (100 MB to 1 GB), to use FSx for Lustre for repeated high-throughput reads and to increase the data loader's parallel workers. The following table summarises the input options.
| Option | How it works | Use when |
|---|---|---|
| File mode | Copies the full dataset to EBS before training | Small datasets, random access needed |
| FastFile mode | Streams S3 objects on demand as files | Large datasets, sequential reads |
| Pipe mode | Streams through a pipe | Supported built-in algorithms, RecordIO |
| FSx for Lustre | Parallel file system linked to S3 | Many instances, many epochs, highest throughput |
| Amazon EFS | Shared NFS mount | Data already on EFS |
The following diagram compares an image training job that reads 40 million small files in File mode with the same job after the images are sharded and served through FSx for Lustre.

Starved training jobs
Streams, databases and disks
Kinesis Data Streams returns ProvisionedThroughputExceededException when a shard receives more than 1 MB or 1,000 records per second. If total capacity is sufficient, the partition key is concentrating traffic on a hot shard. DynamoDB throttles when a partition or the table exceeds its capacity; on-demand mode or better-distributed keys fix this. A training instance whose EBS volume is too small for File mode fails with a no-space error, fixed by a larger VolumeSizeInGB or a streaming input mode.
Read the capacity error
A slow image training job
An image classification job reads 40 million JPEG files (about 100 KB each) from S3 in File mode on eight GPU instances. Each run waits two hours before the first epoch, and GPU utilisation stays near 30%. Each symptom points to a different cause, as the following table shows.
| Symptom | Cause | Fix |
|---|---|---|
| Two-hour wait before training starts | File mode copies all 4 TB to each node | FastFile mode or FSx for Lustre |
| GPU utilisation around 30% | Per-file overhead of tiny objects | Pack images into shards of about 256 MB |
| Occasional 503 Slow Down errors | Burst reads on one prefix | Spread shards across prefixes and retry with backoff |
Packing images into shards and linking an FSx for Lustre file system to the bucket removes both the start-up delay and the per-file overhead. Simply choosing larger GPU instances would raise cost without fixing the bottleneck.
What does a 503 Slow Down error from S3 mean, and how is it fixed?
Show answer
The request rate on a prefix is too high. Spread objects across more prefixes and retry with backoff.
Exam Tips
Remember for the exam
- 503 Slow Down: spread prefixes and retry with backoff.
- Long start-up for large datasets: FastFile mode instead of File mode.
- Low GPU utilisation with many small files: shard files or use FSx for Lustre.
- Kinesis throttling with spare capacity: hot partition key.
- No space left during File mode: increase the volume size or stream the data.