Compute Sharing Platform Architecture: Design and Engineering Practices
This article explains how to build a compute sharing platform that pools distributed accelerator resources into standardized, measurable, and schedulable services. It covers the layered architecture, resource pooling and abstraction, metering and billing pipelines, marketplace mechanisms, scheduling implementation, unified multi-model inference access, international deployment and compliance, a healthcare use case, and a practical launch checklist.
1. Why Compute Sharing Platforms Are Needed
The rapid growth of large model training and inference has created a severe mismatch between compute supply and demand across both time and space. On one side, enterprises and institutions that own accelerator cards often have substantial idle capacity during business troughs. On the other, small and mid-sized teams struggle to secure stable compute during peak periods. The traditional approach—each organization procures and operates its own infrastructure—leads to low overall utilization, rigid costs, and insufficient elasticity.
The core goal of a compute sharing platform is to abstract scattered compute resources into standardized services that are measurable, tradable, and orchestrable, so suppliers earn revenue and consumers gain elasticity. To achieve this, the platform must solve four engineering problems at once: how to pool resources, how to meter usage, how to schedule tasks, and how to deliver services.
2. Layered Architecture Overview
A robust layered design looks like this:
- Resource access layer: connects heterogeneous accelerators and general compute nodes, and reports hardware specifications, availability, and health status in a unified way.
- Pooling and virtualization layer: partitions and isolates resources through containerization or virtualization to form the minimum allocatable resource unit.
- Scheduling and orchestration layer: decides task placement based on quotas, priorities, affinity, and fragmentation.
- Metering and billing layer: collects usage duration, resource specifications, and call volume to produce auditable billing data.
- Service delivery layer: exposes usage entry points through common capabilities such as model inference APIs, task queues, object storage, message queues, logging, and monitoring/alerting.
- Operations and governance layer: handles admission review, credit evaluation, dispute resolution, and compliance auditing.
The key value of layering is decoupling: hardware differences on the supplier side are hidden in the lower layers, while consumers only face unified resource specifications and service interfaces.
3. Resource Pooling and Unified Abstraction
The first step in resource pooling is to establish a unified resource description model. Use structured fields to describe each resource unit so that scheduling logic is not tightly coupled to specific hardware:
{"resource_id": "gpu-node-0001","accelerator_type": "class-a","accelerator_count": 8,"vram_mb": 65536,"cpu_cores": 96,"memory_mb": 786432,"zone": "region-1-a","health": "ready","price_tier": "standard"}
On this basis, physical nodes are split into two delivery forms: dedicated resource groups and shared resource pools. Dedicated resource groups serve workloads that are sensitive to performance jitter and require stable isolation; shared resource pools serve batch tasks that can tolerate some queuing and preemption. Running both together significantly reduces fragmentation: idle dedicated groups can be temporarily added to the shared pool during peaks and reclaimed during troughs.
For isolation, combining a container platform with resource limits is a common approach. For scenarios with stricter isolation requirements, use a combination of separate namespaces, separate network domains, and separate storage volumes, and mark the isolation level at the scheduling layer to prevent highly sensitive tasks from being downgraded.
4. Metering, Billing, and Marketplace Mechanisms
Sharing depends on accurate accounting. Metering data should at minimum cover occupied duration, resource specifications, actual utilization, call counts, and data traffic. The recommended pipeline has four stages—collect, aggregate, reconcile, and bill. The collection end performs local caching and resumable transfer; the aggregation end aligns data in minute-level windows; the reconciliation end cross-validates against scheduling logs; and the billing end generates tamper-proof billing records.
If the platform introduces order matching, three additional mechanisms are required:
- Quotes and inventory: suppliers publish sellable specifications and time slots, and the platform maintains an available inventory view.
- Matching and pricing: orders are matched by priority and clearing rules to prevent the same resource from being sold twice.
- Settlement and disputes: a complete audit trail is retained to support voucher-based traceback and reversal.
Any billing and settlement rules are subject to the platform’s own published terms; this article does not define specific prices or revenue-sharing ratios.
5. Engineering the Scheduling Strategy
A scheduler can be abstracted into two phases: filtering and scoring. The filtering phase excludes nodes that fail hard constraints, and the scoring phase ranks the remaining candidates:
def schedule(task, nodes):feasible = [n for n in nodes if n.health == "ready"and n.accelerator_count >= task.min_acceleratorsand n.zone in task.allowed_zones]if not feasible:return Nonedef score(n):fragmentation = n.accelerator_count - task.min_acceleratorsreturn (task.priority * 10- fragmentation * 0.5- n.estimated_queue * 2)return max(feasible, key=score)
In practice, three more capabilities are needed. First, preemption and reclamation free up resources for higher-priority tasks while saving checkpoints for preempted tasks. Second, topology affinity places tasks that need high-bandwidth interconnect on the same node or within the same network domain. Third, elastic scaling dynamically adjusts allocatable capacity based on queue length and utilization metrics. Metric collection should go through a unified monitoring and alerting system to avoid inconsistent definitions caused by separate collection setups.
6. Unified Abstraction for Multi-Model Service Access
If the platform offers multiple large model capabilities, it should not write separate calling logic for each model. Instead, define a unified service abstraction: a unified request and response structure, a unified streaming output convention, unified error codes and retry semantics, and a unified quota and rate-limiting entry point.
POST /v1/inference{"model": "text-generation","input": {"prompt": "...", "max_tokens": 512},"stream": true,"tenant": {"id": "t-1001", "quota": "standard"}}
The gateway handles authentication, rate limiting, routing, and canary releases, while the backend connects to different inference runtimes through an adapter pattern. When a new model goes live, implementing the adapter and registering the route is enough to complete a canary release and fast rollback. For observability, build separate dashboards for time to first token, throughput, failure rate, and queue time, and connect the logging service with distributed tracing to determine whether a problem is queuing or an inference bottleneck.
7. International Deployment and Compliance
When serving multiple regions, consider the following from the early architecture stage: data residency and cross-border transfer requirements, regional inventory and proximity scheduling, multilingual and multi-timezone billing, and a unified identity and permission model. A practical approach is a unified control plane with partitioned data planes: the control plane manages accounts, quotas, and orchestration policies, while each region independently deploys inference and storage components and synchronizes necessary metadata over standard protocols.
8. Industry Application: Healthcare
Healthcare scenarios impose higher requirements on compute platforms: data minimization and de-identification, access auditing, task isolation, and traceable results. A workable practice is to establish dedicated resource groups and a separate key management system, keep full traces of inference inputs and outputs, authorize model calls and data access separately, and expose only the minimum necessary set of interfaces.
9. Launch Checklist
- Is the resource description unified and directly consumable by the scheduler?
- Are metering definitions consistent across billing and auditing?
- Are preemption, checkpointing, and retry mechanisms in place?
- Is model access abstracted into adapters and a unified gateway?
- Are the three core dashboards—capacity, latency, and failure rate—established?
- Does multi-region deployment meet data residency and permission isolation requirements?
In summary, the competitiveness of a compute sharing platform does not depend on single-point hardware specifications, but on pooling abstraction, metering trustworthiness, scheduling efficiency, and consistency in service delivery. Making these layers solid is what allows the platform to maintain stable engineering performance between supply fluctuations and demand spikes.
