Rack as a Machine: Co-Design Practices for AI Infrastructure
This article explains why the unit of AI infrastructure design is shifting from the single accelerator to the full rack, and how to treat compute, interconnect, memory, storage, power, cooling, management, and orchestration as one coordinated resource pool. It presents a six-plane abstraction model, five key levers for rack-level co-design, a topology-aware scheduling example, the metrics and pitfalls to watch, and practical guidance for cloud deployment and developer workflows. Readers will learn how to reason about effective throughput rather than peak performance, and how to turn "the rack as one machine" from an architectural idea into stable productivity.
Rack as a Machine: Co-Design Practices for AI Infrastructure
1. Why the Design Unit Is Moving from the Single Card to the Rack
Discussions of AI infrastructure have traditionally focused on a single accelerator’s peak compute, memory capacity, or single-node performance. But in large-model training and inference, effective throughput is rarely determined by a single peak number. It is determined by how well compute, memory, interconnect, power, cooling, and scheduling work together across the entire rack. A powerful node still stalls if the interconnect topology does not match the parallelism strategy, because communication waits eat into compute. It throttles under heavy load if power delivery and liquid cooling are insufficient. And long-running training jobs break repeatedly if fault domains are too large and recovery procedures are unclear.
So “turning the whole rack into one machine” is not a marketing slogan. It is a system abstraction: treat the multiple compute nodes, switching fabric, storage access, management control plane, and physical infrastructure inside a rack as a single resource pool that can be orchestrated, observed, and scheduled in a unified way. The design goal shifts from “make a single chip run faster” to “make the whole rack sustain higher effective compute under real workloads.” This is similar to the insight that dark matter observation offers system design: the invisible factors often determine overall behavior. For a rack, those invisible factors are communication congestion, power walls, thermal distribution, fault propagation, and scheduling fragmentation.
2. An Abstraction Model for Rack-Level Architecture
A deployable rack-level system can be abstracted into six planes:
- Compute plane: CPUs, accelerators, and their local memory, which perform the actual compute work.
- Interconnect plane: high-speed data paths within and between nodes, which determine bandwidth, latency, and topology complexity.
- Storage and data plane: the read/write paths for training data, checkpoints, and model parameters, which affect data supply and recovery speed.
- Power and thermal plane: rack-level power distribution, dynamic power capping, and liquid or hybrid liquid-air cooling.
- Management control plane: firmware, out-of-band management, health checks, fault isolation, and lifecycle management.
- Software orchestration plane: schedulers, runtimes, communication libraries, observability, and job orchestration.
These six planes are not simply stacked; they are tightly coupled. The interconnect topology sets the ceiling for parallelism strategies; the power policy affects the sustainable frequency of accelerators; cooling capacity determines the power density a rack can carry; and scheduling granularity in turn affects power balance and fault-domain size. The core of rack-level co-design is to model these couplings explicitly and make joint trade-offs across hardware specs, system software, and higher-level scheduling.
3. Five Key Levers for Extreme Co-Design
3.1 Interconnect and Topology: Decide the Communication Pattern First, Then the Resource Layout
Large-model training involves heavy collective and point-to-point communication. If a job is split across nodes in different racks while the scheduler is unaware of topology, you get the familiar “compute is fast, waiting is slower” problem. Rack-level design must match interconnect bandwidth and switching tiers to common parallelism strategies: place communication-intensive jobs within the same high-bandwidth domain first, and spread low-intensity jobs across domains to balance power and resource utilization. Topology is not about being as complex as possible; it is about making the most common communication paths the shortest, keeping the most congested paths observable, and allowing graceful degradation during faults.
3.2 Memory Hierarchy and Data Flow: Reduce Wasteful Movement
The performance bottleneck of a rack-level system often comes from data movement rather than compute itself. Design must make the data flow explicit across local memory, high-bandwidth memory, node memory, rack-shared cache, and remote storage, keeping hot data close to the compute units and staggering checkpoint writes against training reads. On the software side, support data prefetching, sharded loading, asynchronous checkpointing, and communication-compute overlap. Evaluation should look beyond compute utilization to the share of data movement and the time spent waiting.
3.3 Power and Liquid Cooling: Treat Power and Heat as First-Class Resources
As rack power density rises, power and cooling stop being “supporting engineering” and become “performance variables.” Rack-level power management needs to allocate power dynamically by job priority, avoid global throttling under peak load, and migrate workloads precisely when a region overheats. Liquid cooling requires coordinated design across nodes, piping, monitoring, and operations. A common mistake is planning infrastructure only for peak power, which leaves average utilization low; a more reasonable approach is power oversubscription with dynamic power capping, while always preserving safety margins and fault-degradation strategies.
3.4 Reliability and Maintainability: Treat Failure as the Norm, Not the Exception
Large-scale training jobs run for a long time, and any single point of failure in the rack can interrupt them. Rack-level design must define fault domains clearly: a single accelerator, a single node, a single switching domain, or the entire rack. Software should support fast health checks, faulty-node isolation, elastic restart, and periodic checkpointing. Maintainability matters just as much: whether liquid-cooling connectors, switch modules, and power modules can be replaced online, and whether the spare-parts strategy matches delivery cycles, all affect long-term availability. “Rack as a machine” means the operations interface must also be unified; you cannot manage each node as an isolated island.
3.5 Software Stack and Scheduling: Make Topology Awareness the Default
Rack-level hardware only becomes a system capability when software uses it correctly. Schedulers should support topology awareness, gang scheduling, and fault awareness; runtimes need to expose metrics for communication, power, temperature, memory, and queue depth; compilers and communication libraries need to make path selections based on the in-rack topology. A practical principle: do not make application developers bind physical topology manually. Instead, express intent such as “communication-sensitive,” “power-sensitive,” or “fault-tolerance-first” through resource labels and scheduling policies, and let the platform layer handle placement.
4. A Topology-Aware Scheduling Example
The following is an illustrative, product-agnostic configuration that shows what general information a scheduler needs:
workload:accelerators: 8topology_policy: rack-affinitygang_scheduling: truecheckpoint_interval: 5mpower_budget: dynamicobservability:- link_utilization- accelerator_utilization- inlet_temperature
The corresponding scheduling pseudocode can be simplified as:
for job in pending_jobs:if job.communication_intensity is high:place_job_within_same_high_bandwidth_domain(job)else:spread_job_across_racks_for_power_balance(job)if job.requires_gang_scheduling:reserve_all_resources_atomically(job)attach_health_check_and_checkpoint_policy(job)
The key to this kind of policy is not any single line of code, but that the scheduler understands the “communication domain,” the “power domain,” and the “fault domain” at the same time. Scheduling that only matches resource counts creates fragmentation and hidden waits; only by folding topology, power, and health status into the decision can you improve rack-level effective throughput.
5. Performance Evaluation and Common Pitfalls
When evaluating a rack-level solution, focus on these metrics: effective compute utilization, share of communication wait time, job queue time, checkpoint recovery time, per-rack power utilization, cooling headroom, fault-isolation time, and delivery and scale-out cycles. Common pitfalls include: comparing only peak compute while ignoring communication overhead; planning power for peak load and wasting resources; treating fault recovery as an operations problem rather than an architecture problem; and doing topology optimization without observability.
6. Cloud Deployment and Developer Practices
For cloud platforms, rack-level workloads need general infrastructure capabilities: bare-metal or high-performance compute instances provide stable compute, high-speed networks carry east-west traffic, container platforms handle job orchestration, object storage holds datasets and checkpoints, and logging plus monitoring and alerting provide unified observability. A general cloud platform such as Baidu AI Cloud can build on general categories like bare metal, container platforms, high-speed networking, object storage, and logging, monitoring, and alerting to provide resource pooling and observability support for rack-level workloads, but the specific design should still be driven by capacity planning and load testing around the characteristics of the business workload.
For developers, the recommendations are: first identify a job’s communication intensity and fault tolerance; design checkpoints to be asynchronous and incremental; avoid hard-coding the parallelism strategy into business code; express topology preferences through resource labels; observe compute, network, power, and temperature metrics together during load testing; and run fault-injection drills for long-running jobs. Only when hardware, software, and operations processes evolve together will “rack as a machine” turn from an architectural idea into stable productivity.
