Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Netflix TechBlog 27 min read Case study mediumAdept

Single-tenant Titus: VM-level isolation on a multi-tenant container platform

Netflix added a single-tenant mode to Titus, its Kubernetes-based multi-tenant container platform, giving selected tasks a dedicated, right-sized EC2 instance while keeping the same API, deployment path and platform-managed hosts. Shared-kernel isolation (cgroups, CFS, iocost, HTB traffic shaping) cannot partition last-level cache, memory bandwidth, softirq budget or kernel locks, so stateful streaming jobs suffered tail-latency spikes and checkpoint restores from noisy neighbors. The team rejected microVMs (bare-metal or nested virtualization constraints, self-run hypervisor, no GPUs), gVisor (syscall overhead on IO-heavy paths) and raw EC2 (loss of the managed experience) because these workloads need resource isolation, not protection from hostile tenants. The implementation uses an allowlist in the federation layer, just-in-time autoscaling that picks the smallest fitting instance from allowed families, and anti-affinity, taints, a non-preemptible priority class and disabled repacking to guarantee one task per node.

Related posts

  • Capacity without conflict: A guide to multi-tenant GPU cluster design for AI-native teams

    Together AI easyNovice

    Multi-tenant GPU clusters pool hardware at a shared infrastructure layer (central control plane, shared storage, InfiniBand east/west and Ethernet north/south fabric) while giving each team dedicated GPU nodes, storage PVCs, credentials and its own orchestration layer such as Kubernetes or Slurm. Scheduler-enforced quotas by GPU count, spend or reservation window, conflict-free advance booking and automatic burst to on-demand capacity keep one team from starving others. Teams choose CUDA driver, shared memory and storage at booking time. Nodes get acceptance testing before handoff (DCGM diagnostics, GPU burn, single- and multi-node NCCL, NVBandwidth), with tiered repair: reprovision for software faults, cluster migration for hardware failures. The guide is framed around Together AI's own offering.

  • How we built a secure, performant, multi-tenant cloud platform to run untrusted code

    Deno mediumAdept

    Deno Deploy runs untrusted JavaScript and TypeScript in pools of V8 isolates inside VMs called runners, split into a control plane for deployments and a data plane of edge regions. At deploy time, code is transpiled with swc, all dependencies are vendored and ordered breadth-first so they can be streamed into V8, and the bundle is replicated to regional buckets. Postgres stays off the critical path, and edge proxies keep an in-memory domain-to-deployment table. Requests arrive via Anycast, and the proxy picks a runner using heuristics over CPU and memory load. Isolation combines namespaces, cgroups, seccomp and a watchdog process, built against a five-point tenant threat model.

  • How security and tenant isolation allows Deno Subhosting to run untrusted code securely

    Deno easyNovice

    Deno Deploy and Deno Subhosting isolate untrusted tenant code using layered defenses mapped to a five-point threat model: per-deployment V8 isolates, a virtualized filesystem, and separate VPCs for ingress and outbound traffic. Each isolate runs in its own process on a restricted Deno runtime, inside Linux namespaces, with seccomp filters to detect unusual syscalls. For resource fairness, cgroups cap CPU, memory and I/O, and an internal WatchDog service kills isolates that exceed memory limits, block the event loop, or show abusive patterns such as crypto mining. The mechanisms are described at a high level, without configuration or implementation specifics.

  • How OrderServ achieved up to 64% cost savings with multi-tenant ECS

    AWS Architecture Blog mediumAdept

    Cognizant's OrderServ food-ordering platform moved from one dedicated ECS Fargate cluster per brand (21 microservices each) to a shared multi-tenant cluster. Isolation is enforced by a .NET tenancy library that resolves tenant context per request with AsyncLocal, routes data access with tenant prefixes and fails closed, backed by STS session-tag scoped credentials and per-tenant Valkey RBAC. Switching from Fargate to EC2 Auto Scaling warm pools on Bottlerocket cut scale-out from 5–7 minutes to 30–60 seconds and compute cost by 47–64% with Savings Plans, using a five-layer scaling strategy that includes per-tenant throttling. A FireLens and EventBridge crash-observability pipeline with EFS-persisted .NET mini dumps costs about $10/month per service, and passkeys replaced SMS OTP to cut authentication costs by 80%.

  • Modal becomes a gVisor maintainer

    Modal mediumAdept

    Google is donating gVisor to the CNCF under maintainer-led governance, and Modal, which launches over 40 million gVisor containers a day for GPU inference, training, and AI sandboxes, is joining as a maintainer. gVisor's Go-based Sentry application kernel implements the Linux syscall interface and is itself confined by namespaces, cgroups and seccomp, giving tenant isolation without hardware virtualization: about 25 ms boot and 12 MB overhead. Modal's upstream work includes nvproxy support for new NVIDIA GPUs, NVLink, MPS and GPUDirect RDMA, plus a new rdmaproxy that reaches ~99% of native NCCL all-reduce bandwidth over InfiniBand, RoCE and EFA. Other contributions are huge-page recycling that lifts PyTorch shared-memory throughput from 2.9 to 22 GB/s and tmpfs work that makes SQLite 2.7x faster. Planned work covers multi-GPU memory snapshots, GPUDirect Storage, MIG/vGPU and sub-minute inference server startup.

The quest for software engineering knowledge.

Look:
Layout: