Moving 200 TB of Media to GPUs Under a 72-Hour Deadline
System DesignModel answerLast updated
Design a plan to relocate 200 TB of images and video from a bandwidth-limited data center to a cloud GPU cluster, then feed training fast, reproducibly, and with verified integrity.
Scenario
Your team owns about 200 TB of raw images and videos sitting in an aging on-premises data center. A distributed deep learning job will train on this data in a cloud GPU cluster. All of the data must be in the cloud within 72 hours. After it lands, it has to be preprocessed (resize, normalize, augment) and delivered to the training nodes with very low read latency so the GPUs never wait on input.
What to design
- Migration plan. How do you get 200 TB into the cloud inside the deadline, given the network you have?
- Pipeline architecture. Describe the path from cloud object storage to the GPUs. Cover data formats (for example TFRecord, WebDataset, Petastorm, or raw files) and any caching layers.
- Preprocessing. How do you run the compute-heavy preprocessing without leaving the GPUs idle? Discuss a distributed preprocessing framework and what belongs offline versus online.
- Reliability. How do you track progress across the whole transfer and prove that every byte arrived intact? How do you recover from failures?
Constraints
- The data center has a dedicated 1 Gbps uplink for this effort.
- Training needs fast local disk (NVMe) access to avoid starving the GPUs.
- Runs must be reproducible, so every dataset version must be tracked.
What a good answer includes
Quantitative reasoning, explicit trade-offs, clarifying questions, and a clear statement of any assumptions you make about file sizes, GPU count, and budget.
Hints
Hint 1
Convert 1 Gbps into TB per day before designing anything. Compare that with 200 TB and with the 72-hour window, and let the result drive your migration choice.
Hint 2
Think about what can use the network and what must move another way. A hybrid plan can use the uplink for metadata and a small priority subset while bulk data travels physically or over a temporary faster link.
Hint 3
Millions of small files are a throughput killer. Consider packing samples into large shards, and separate deterministic one-time preprocessing from random per-epoch augmentation.
Hint 4
For integrity and reproducibility, build a source manifest with checksums first, track per-file state in a durable table, and publish immutable, versioned dataset prefixes with their own manifests.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
1. Start with the arithmetic
- 1 Gbps is about 125 MB/s, or roughly 10.8 TB/day at perfect utilization. With realistic efficiency (about 80%, after protocol overhead, small files and retries) it is about 8.6 TB/day.
- In 72 hours the link moves roughly 26-32 TB, around 15% of the dataset.
- Sending all 200 TB over the wire takes about 19 days at line rate and over 3 weeks in practice.
Conclusion: a network-only migration cannot meet the deadline. Say this early, then ask clarifying questions:
- What is the file count and size distribution (many small JPEGs versus large videos)?
- How many GPUs, and what samples/sec do they consume?
- Does "72 hours" mean data landed or training started? Can training begin on a subset?
- Is there budget for temporary connectivity or shipping appliances, and what is the lead time?
2. Migration strategy
Primary path: physical transfer appliances (for example Snowball Edge-class devices at about 80 TB usable each). Three or four devices cover 200 TB with headroom.
- Load the devices in parallel over the local 10-25 GbE network. At about 1 GB/s per device, 70 TB takes roughly 20 hours, so the copy phase is about a day.
- Shipping and ingestion into object storage add roughly 1-3 days.
- Be honest that the devices must be ordered ahead of time. Treat the 72-hour clock as starting when they arrive, or flag the risk.
Alternative: a temporary dedicated 10 Gbps link. 200 TB takes about 44 hours at line rate. If provisioning is fast and budget allows, this is simpler and avoids shipping risk. Naming this trade-off is a strong signal.
Hybrid. Do not leave the uplink idle. Use it for the manifest, labels, and a stratified priority subset of 20-25 TB so the team can validate preprocessing and training end to end before the bulk data lands. Use parallel-stream tools (DataSync, rclone, or similar) to saturate the link.
3. Pipeline architecture
Use three zones that decouple ingestion from training:
On-prem -> (appliances + network) -> object store raw/ (immutable)
-> distributed preprocessing (Spark / Ray on CPU fleet)
-> object store curated/v{N}/ (sharded + manifest)
-> shared parallel filesystem (lazy-loaded from the bucket)
-> GPU node NVMe cache -> loader (DALI / tf.data / DataLoader) -> GPU
Format. Never train on millions of loose files, since per-object GETs and metadata operations throttle throughput. Pack samples into 256 MB-1 GB shards:
- Images: WebDataset tar shards or TFRecord, giving sequential reads and shard-level shuffling.
- Video: re-encoded clips at training resolution, or keyframe-indexed chunks.
- Petastorm suits Parquet-style tabular plus tensor data and is a weaker fit for media.
Storage tiers.
| Tier | Pros | Cons |
|---|---|---|
| Stream from object store | Cheap, scalable | Higher latency, request throttling, needs deep prefetch |
| Shared parallel FS (Lustre-class) linked to bucket | Very high aggregate throughput, POSIX, lazy hydration | Costs while running; size for throughput, not capacity |
| Local NVMe | Lowest latency | Small and ephemeral |
Keep the object store as the source of truth, use the parallel filesystem as the shared fast tier, and let each node cache its assigned shards on NVMe for multi-epoch reuse.
Sizing example. 64 GPUs x 1,500 img/s x 150 KB is about 14 GB/s aggregate reads. At roughly 1 GB/s per TiB of a high-throughput tier, about 15 TiB of filesystem is enough.
4. Preprocessing without starving GPUs
Split the work in two.
Offline, deterministic, once. Decode, resize to the maximum training resolution, normalize color space, drop corrupt files, extract video frames. Run it on an autoscaling CPU fleet (Spark or Ray Data, spot instances). It is embarrassingly parallel: about 500 vCPUs at roughly 100 images/s each finish in hours. It usually shrinks 200 TB to 30-60 TB, which makes every downstream tier cheaper.
Online, stochastic, per epoch. Random crops, flips, color jitter, mixup. Keep these online to preserve sample diversity and avoid multiplying storage. Run them on the GPU (DALI) or in overlapped CPU workers with prefetching and pinned memory. If the CPU is still the bottleneck, move JPEG decode to nvJPEG/NVDEC or offload augmentation to remote workers (such as a tf.data service).
Check for starvation by monitoring GPU utilization and input-queue depth. If the queue is empty, scale the loader, not the model.
5. Integrity, progress, and failure handling
- Source manifest first. Before copying, record path, size, mtime and SHA-256 for every file. This is the contract for the migration.
- State tracking. Keep a durable table (DynamoDB or Postgres) keyed by file with states
PENDING -> COPIED_TO_DEVICE -> LANDED -> VERIFIED -> CURATED. Workers are idempotent and resumable, so a crash restarts from the table. A dashboard shows bytes and files per state. - Verification. Compare checksums at landing against the manifest, using object-store checksums or a verification job. Reconcile counts and total bytes, and re-copy mismatches only. Quarantine unreadable files rather than failing the run.
- Pipeline failures. Make preprocessing tasks retryable and write outputs to temporary prefixes, then commit atomically by writing the manifest last.
6. Reproducibility
Pin every curated version with a dataset version ID, a manifest of shards with hashes and sample counts, the preprocessing code commit and container digest, and the config. Store these in Delta/Iceberg tables, DVC, or a metadata store. Never overwrite curated/v{N}/; new versions get new prefixes. Training logs the dataset version and shuffle/augmentation seeds.
Common mistakes
- Designing a network-only transfer without doing the math.
- Training directly on millions of small files.
- Materializing augmentations offline.
- Sizing the fast tier by capacity rather than throughput.
- Skipping checksums, or having no resumable state.
- Overwriting dataset versions in place.
Trade-offs to mention
Appliances are cheap per TB but have lead time and logistics risk; a temporary fast link costs more but is simpler. A parallel filesystem speeds up training but is billed while running, so spin it down between runs. Heavier offline preprocessing reduces storage and I/O but fixes the training resolution.