KatInterview

Moving 200 TB of Media to GPUs Under a 72-Hour Deadline

System DesignModel answer
HardModel answerSystem Designdata-pipelinedata-migrationdistributed-training

Last 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

  1. Migration plan. How do you get 200 TB into the cloud inside the deadline, given the network you have?
  2. 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.
  3. 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.
  4. 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.