Pool API Architecture

Compute Pool API

Scheduler-oriented patterns for pooled GPU, CPU, RAM, VPS, container, and specialized compute capacity across trusted or marketplace fleets.

What this pool coordinates

One policy boundary for shared capacity

Compute pools turn heterogeneous machines into schedulable capacity. Clients request a resource shape and workload policy rather than a hard-coded host. The control plane filters eligible nodes, creates a time-bounded lease, and tracks queue and execution state. The data plane starts the workload inside an enforceable isolation boundary.

Build the contract before the marketplace

▣

Use versioned resource shapes

Define CPU, RAM, accelerator capability, local disk, network, architecture, runtime, and region. Publish allocatable capacity rather than raw hardware totals. Keep exact hardware pins available for validated workloads without forcing every client to depend on model names.

▣

Allocate with leases

A lease prevents double scheduling and creates an explicit commit, renew, and release lifecycle. Heartbeats protect long jobs. Expired or uncertain leases enter reconciliation instead of being silently recycled while work may still be running.

▣

Make queue policy visible

Weighted fairness, priority classes, quotas, aging, and checkpoint-aware preemption prevent one tenant or job shape from monopolizing the fleet. Reason codes explain why apparent free capacity cannot satisfy a request.

▣

Treat isolation as a spectrum

Containers package workloads but may not provide the boundary every tenant requires. Use signed images, non-root execution, network controls, sandboxed runtimes, or dedicated virtual machines according to trust and data sensitivity.

The control-plane pieces

Use these modules as separate services or bounded components. Their contracts matter more than how many repositories contain them.

Reference module

Shapes

Versioned CPU, RAM, GPU, storage, network, and runtime requests.

Reference module

Leases

Atomic reserve, commit, heartbeat, renew, expire, and release.

Reference module

Queueing

Fair sharing, priorities, aging, cancellation, and preemption.

Reference module

Images

Approved registries, immutable digests, signatures, and limits.

Reference module

Telemetry

Queue, startup, execution, utilization, and failure events.

Reference module

Cost Controls

Credit reservations, maximum runtime, and tenant quotas.

A concrete API shape

This example is an architecture pattern, not a live PoolAPI.com endpoint. It shows explicit identifiers, units, limits, and idempotency rather than hidden defaults.

POST /compute-leases
{
  "pool_id": "gpu-global",
  "shape": {
    "gpu_count": 1,
    "gpu_memory_gib_min": 24,
    "cpu_millis": 8000,
    "memory_mib": 32768
  },
  "maximum_runtime_seconds": 3600
}

Common design decisions

Is a container enough for hostile multi-tenant workloads?

Not always. The required boundary may be a sandboxed runtime, microVM, or dedicated host depending on the risk.

What is the difference between a job and a lease?

The lease claims capacity; the job describes and tracks the workload using that capacity.

Can GPUs be fractional?

Only when the scheduler and runtime can enforce a specific partitioning or time-sharing model. Expose the mechanism as a distinct shape.

Why track warm image caches?

They can reduce startup time, but should usually be a ranking preference rather than a hard requirement.

Go deeper

All guides
Compute Pool API featured graphic
Compute Infrastructure · July 2, 2025

Compute Pool API

A scheduler-oriented guide to leases, resource shapes, queues, fairness, images, security, and telemetry for pooled compute capacity.

gpu computecontainers
Node Pool API Design featured graphic
Compute Infrastructure · January 13, 2026

Node Pool API Design

A control-plane blueprint for node identity, heartbeats, capabilities, leases, maintenance states, failure domains, and safe scheduling.

node poolshealth checks
Credit Pool API Design featured graphic
API Operations · June 27, 2024

Credit Pool API Design

How to model pooled API credits without double-spend, ambiguous balances, or retry bugs—and how to separate limits from accounting.

credit poolsusage ledgers