AI Compute Infrastructure for the LLM Era: Data Center and Scheduling Practices

    As budget constraints and market volatility impact compute procurement, maximizing existing GPU resources has become critical. This article explores best practices for large language model (LLM) infrastructure across five key dimensions: data center networking, tiered storage, GPU slicing and scheduling, monitoring and autoscaling, and hardware failover under supply chain fluctuations.

    Recent capital market volatility affects compute procurement and expansion plans. With tighter budgets, teams must maximize existing GPU utilization. This article outlines key practices for LLM infrastructure across five areas: networking, storage, scheduling, monitoring, and hardware failover.

    1. What Kind of Data Center Network Does LLM Training Require?

    In multi-node training, gradients must be synchronized across nodes at each step. If inter-node communication is slow, GPUs idle, reducing efficiency. Network selection is the first step in cluster design. Common solutions include:

    Solution Typical Latency Cost Ops Difficulty Applicable Scale
    InfiniBand Low, usually microsecond-level High Requires dedicated team Large-scale training clusters
    RoCEv2 lossless Ethernet Low, depends on PFC and ECN tuning Medium Requires continuous tuning Medium to large scale, teams with Ethernet experience
    Standard TCP Ethernet Higher, significant jitter Low Low Small-scale training or inference-focused

    Latency values in the table are typical magnitudes; actual values depend on switches, NICs, and topology. RoCEv2 is sensitive to packet loss, so ensure PFC and ECN configurations are consistent across the entire link before deployment.

    Before going live, use nccl-tests for bandwidth baseline testing. For example, run all_reduce_perf and record the bus bandwidth across different message sizes. If measured values are significantly lower than the theoretical nominal bandwidth of the NIC, troubleshoot the topology, NIC bonding, and affinity configurations before starting formal training.

    2. How to Store Training Data Without Slowing Down GPUs?

    Massive training data requires tiered storage. Hot data goes on NVMe SSD-based parallel file systems or cache layers, while cold data goes to object storage. The goal is to ensure GPUs never wait for data reads while controlling storage costs.

    Several parameters can serve as a starting point to validate on your workload:

    • Cache hit rate: Target over 90%. If lower, check if data access patterns are too random.
    • Prefetch window: Prefetch 2 to 4 batches of data to avoid consuming too much memory.
    • Object size: Merge many small files into shards of several hundred MB to a few GB. Small files amplify metadata operations and slow down reads.

    Cost calculation involves two parts. One is the monthly fee for storage capacity, including cache node amortization. The other is the data read fee, which can be converted into a data cost per 1,000 GPU hours. This allows horizontal comparison between different storage solutions.

    3. How to Slice and Schedule GPUs?

    Three common GPU slicing methods offer different isolation levels:

    1. Whole GPU scheduling: A Pod exclusively occupies a single GPU. This is the simplest method with the best isolation, suitable for LLM training.
    2. Time-slicing: Multiple tasks take turns using the same GPU. It improves utilization but lacks memory isolation. A memory overflow in one task can affect others on the same card.
    3. MIG (Multi-Instance GPU): On supported GPU models, a single card is divided into multiple hardware-isolated instances, each with independent memory and compute units.

    Before using MIG, verify driver versions, GPU Operator or device plugin versions, and GPU model compatibility. The following YAML snippet requests a MIG instance. This assumes the node is already partitioned per MIG strategy, and the resource name must match the actual partition spec:

    1. apiVersion: v1
    2. kind: Pod
    3. metadata:
    4. name: llm-inference-pod
    5. spec:
    6. containers:
    7. - name: inference-container
    8. image: generic-llm-runtime:latest
    9. resources:
    10. limits:
    11. nvidia.com/mig-1g.5gb: 1
    12. cpu: "4"
    13. memory: "16Gi"

    If using time-slicing, configure replicas in the NVIDIA device plugin configuration. Pods still request nvidia.com/gpu: 1, but each physical card reports multiple schedulable units. This method suits inference or lightweight fine-tuning, not memory-intensive LLMs.

    For scheduling, use PriorityClass to differentiate tasks. Core training tasks get high priority and can preempt low-priority tasks. Low-priority inference or experimental tasks run when resources are idle and yield compute when resources are tight.

    4. Monitoring and Elastic Scaling

    Single-node failures are common in distributed training. The cluster should continuously collect the following metrics:

    • GPU ECC error counts and XID error logs
    • NCCL timeout occurrences
    • InfiniBand or RoCE port error counts and packet loss rates
    • Storage IOPS and P99 read latency
    • GPU utilization and SM (Streaming Multiprocessor) activity

    Alert thresholds should be adjusted based on baselines. Examples: Alert immediately and remove the node from the scheduling pool upon XID hardware errors; alert after 3 consecutive NCCL timeouts; alert if storage P99 latency exceeds 50 ms for 5 minutes.

    Training tasks should periodically save checkpoints. The interval balances failure rates and save duration. For example, saving every 30 minutes is standard, but if a single save takes 5 minutes, check if storage write bandwidth is a bottleneck. Inference services can autoscale based on request queue length and P95 latency, releasing nodes back to the resource pool when load drops.

    5. Hardware Failover Under Supply Chain Volatility

    When a single hardware supply chain faces issues, procurement cycles may extend. Teams can use a unified compute abstraction layer to compile model computation graphs onto accelerators from different vendors. This minimizes business code changes when switching hardware.

    Note that operator libraries, numerical behaviors, and performance characteristics differ across hardware. Switching requires re-validating precision and performance, not just changing configurations.

    Low-precision computing (e.g., FP8, INT8) can reduce memory usage and boost throughput, but may affect model efficacy. Validation methods include:

    • Precision: Compare task metrics on a fixed validation set; roll back to higher precision if the gap from the baseline exceeds a preset threshold.
    • Performance: Under the same model, batch size, and sequence length, run multiple times after warm-up. Compare average tokens per second and peak memory.

    Throughput improvements depend on model architecture, operator implementation, and hardware model. Some combinations yield significant gains, but fixed multipliers cannot be guaranteed. Rely on your own benchmarks.

    6. Common Mistakes

    • Treating nvidia.com/gpu: 1 as a slicing configuration. This declaration only requests a device; slicing requires additional device plugin configuration.
    • Looking only at GPU utilization instead of MFU (Model FLOPs Utilization). High utilization might just mean the GPU is waiting for communication or data, with a low proportion of effective computation.
    • Starting training without an NCCL bandwidth baseline, making performance issues hard to diagnose.
    • Running memory-intensive LLMs on time-sliced GPUs, causing tasks to compete for memory and resulting in OOM (Out of Memory).

    Data center efficiency depends on the coordination of networking, storage, scheduling, and monitoring. Each component needs measurable baselines and alerts to make reliable decisions amidst budget changes.