• Customers
  • Pricing
  • Docs
Sign Up

Compute Glossary

How computers for agents work, from the hardware to the sandbox.

  1. Compute Glossary
  2. /
  3. Infrastructure

Multi-tenancy

Also called Multitenancy, Shared tenancy

One shared hostShared cores, caches and memoryShared hypervisorLimits per tenantA guest kernel eachThree tenants' sandboxes

Multi-tenancy is the running of many customers, called tenants, on the same hosts and services. A tenant is whoever owns a set of workloads and pays for them, such as a company or a single developer. Their workloads sit side by side on shared servers, and their requests pass through the same control plane. Each tenant should see only its own data and feel only its own load, as if it had the system to itself.

It exists because most workloads are idle much of the time. A host shared by many tenants stays busy when any of them is busy, so the same work needs fewer machines. Operators also overcommit shared hosts, promising more than they hold because tenants rarely peak together. The savings let providers sell small slices of compute, down to a single short-lived sandbox.

The cost is that every shared part becomes a possible path from one tenant to another. A flaw in the isolation boundary lets one tenant read or change the data of others. Sandbox hosts face this in its hardest form, since tenants run arbitrary code, often written by an AI agent that nobody reviews. Platforms that run such untrusted code therefore put a virtual machine boundary around each sandbox, rather than relying on a shared kernel.

Tenant boundaries

Tenant boundaries are the layers that keep tenants apart, on shared hosts and in shared services. On a host, containers share one kernel, so a single kernel bug can let one tenant reach every other tenant there. Hardware virtualization gives each tenant its own guest kernel, so only the hypervisor, with a much smaller attack surface, stays shared. MicroVMs keep that boundary while starting fast enough for short-lived sandboxes.

Shared services need boundaries too, enforced in their code rather than in hardware. A control plane or database that serves all tenants tags each record with its tenant, and every request must be checked against that tag. A single missing check can expose one tenant's data to another, with no escape from a host needed. Some operators go further and give a sensitive tenant hosts of its own, called dedicated hosts, at a higher price.

Noisy neighbors

A noisy neighbor is a tenant whose heavy use of a shared host slows down the others. Processor time and memory are the easy parts to divide, since control groups and the hypervisor can cap each tenant. Caches and memory bandwidth are harder, because every core on a processor shares them. A tenant that streams through large amounts of memory can push the cached data of others out and slow them without exceeding any limit.

Some processors can split these shared parts in hardware. Intel Resource Director Technology can give each tenant a fixed share of the last-level cache and limit its memory bandwidth. Disks and network links need limits of their own, usually on operations per second and on bandwidth. A scheduler that sees a host under strain can also place new work elsewhere.

Side channels

A side channel is a path through which one tenant learns about another from the timing of shared hardware, with no bug in the software. Spectre and related flaws showed that speculative execution leaves traces in caches that another program can measure. The two threads of one core share the most, so flaws such as L1 Terminal Fault let one thread read data its sibling had just used. Hosts that mix tenants therefore keep different tenants off sibling threads, or turn simultaneous multithreading off.

Shared memory opens channels too. A host that merges identical pages across guests lets one guest time its writes to learn whether another holds the same page. Rowhammer attacks flip bits in memory by reading neighboring rows over and over, and researchers have used them across virtual machines. Hosts that run untrusted code therefore turn off page merging between tenants.

Limits

Tenant limits are the quotas that cap how much of a shared system one tenant may use. They usually cap the number of running sandboxes and the processors and memory those sandboxes hold. Rate limits also cap how fast a tenant may send requests to the control plane. Without them, one tenant could fill the capacity of a region and leave nothing for the others. Limits also bound the damage from a stolen account, which could otherwise start sandboxes without end.

Use cases

Multi-tenancy shapes how sandbox platforms divide hosts and services between customers.

  • Untrusted agent code. Code that an agent writes runs beside the sandboxes of other tenants. Containers share one kernel, so a single kernel bug could reach every tenant on the host. A virtual machine boundary around each sandbox leaves only the hypervisor shared.

  • Steady performance. A tenant that streams through memory can slow others without exceeding any limit. Hardware features that split the last-level cache and limit memory bandwidth keep such a tenant within its share.

  • Tenants on shared cores. Flaws such as L1 Terminal Fault let one thread read data its sibling on the same core had just used. Hosts keep different tenants off sibling threads, or turn simultaneous multithreading off.

  • Fair shares of capacity. Quotas cap the running sandboxes of a tenant and the processors and memory they hold. One tenant then cannot fill the capacity of a region and leave nothing for the others.

  • Sensitive workloads. Some tenants need more than a shared boundary can promise. Dedicated hosts give such a tenant machines of its own, at a higher price.

Related terms

  • Isolation
  • Overcommit
  • Hardware virtualization
  • MicroVM
  • Control group
  • CPU core
PreviousScaleNextSandbox

On this page

Compute Glossary
  1. Foundations
    • Sandbox
    • Virtual machine
    • vCPU
    • Block storage
    • Virtual network interface
    • Kernel
    • Hardware virtualization
    • Hypervisor
    • GPU
    • CPU core
    • Memory
    • CPU
    • Local disk
    • Network interface card
    • Compute
    • Workload
    • Latency
  2. Sandboxes
    • Isolation
    • Lifecycle
    • Snapshot
    • Persistence
  3. Virtualization
    • KVM
    • MicroVM
    • Container
  4. Hardware
    • Server
    • CPU architecture
    • CPU type
    • GPU memory
    • GPU model
    • Mac model
  5. Kernel
    • System call
    • Process
    • Memory page
    • Namespace
    • Control group
    • Seccomp
    • Capabilities
  6. Storage
    • Object storage
    • File system
    • Copy-on-write
  7. Networking
    • Egress control
    • SSH
    • Ingress
  8. Infrastructure
    • Control plane
    • Scheduler
    • Overcommit
    • Preemption
    • Region
    • Capacity
    • Scale
    • Multi-tenancy
  9. Agents
    • AI agent
    • Tool call
    • Untrusted code
    • Computer use
    • Code interpreter
  10. Reinforcement learning
    • Reinforcement learning
    • Environment
    • Rollout
    • Verifier
    • Reward hacking
    • Actor–learner architecture

Computersfor Agents

Isolated sandboxes for agent code,
ready in under 100 ms.

Start for Free

Subscribe to DotFiles Insider, our monthly digest of AI infrastructure news, deep dives, and Daytona product releases.

Company

  • About
  • Careers
  • Brand
  • Partners
  • Startup Program
  • Research Grants
  • Events
  • Contact

Product

  • Pricing
  • Docs
  • Changelog

Resources

  • Guides
  • Blog

Legal

  • DPA
  • SLA
  • Terms of Service
  • Privacy Policy
Trust Center
All Systems Operational