{"id":1001,"date":"2026-11-27T07:24:41","date_gmt":"2026-11-27T07:24:41","guid":{"rendered":"https:\/\/blockoala.com\/index.php\/2026\/11\/27\/netflix-gives-performance-sensitive-titus-tasks-an-ec2-instance-of-their-own\/"},"modified":"2026-11-27T07:24:41","modified_gmt":"2026-11-27T07:24:41","slug":"netflix-gives-performance-sensitive-titus-tasks-an-ec2-instance-of-their-own","status":"publish","type":"post","link":"https:\/\/blockoala.com\/index.php\/2026\/11\/27\/netflix-gives-performance-sensitive-titus-tasks-an-ec2-instance-of-their-own\/","title":{"rendered":"Netflix gives performance-sensitive Titus tasks an EC2 instance of their own"},"content":{"rendered":"<p>Netflix has added a single-tenant mode to Titus, its container platform, that runs one task per EC2 instance. Early adopters include stateful, high-throughput streaming workloads, where interference from another task can mean minutes spent recovering from a checkpoint. Application teams keep the same API and deployment process, and the compute platform team continues to manage and patch the hosts.<\/p>\n<p>Titus launches millions of containers each week across tens of thousands of EC2 instances. Sharing instances remains the default. Netflix recommends the dedicated mode for large, long-running tasks that are sensitive to interruption and closely match an available instance size, rather than for small or bursty services.<\/p>\n<h2>Why shared-host controls fell short<\/h2>\n<p>Netflix wanted predictable performance for trusted internal teams, not a security boundary against malicious tenants. Its existing controls could not fully isolate tasks competing for the same last-level cache or memory bandwidth. Networking exposed a different limit: the HTB traffic shaper used a global lock, and a container sending large numbers of small packets could consume enough kernel CPU time to leave neighboring tasks short of resources. Netflix said predictive CPU pinning and eBPF-based detection helped, but did not eliminate interference.<\/p>\n<p>Netflix considered microVMs such as Firecracker and Kata, but they required bare metal or nested virtualization, and nested virtualization was not ready on the instance types Netflix used at the time. Netflix also cited hypervisor overhead and a lack of GPU support. It found that gVisor added overhead on I\/O-intensive paths. Running containers directly on EC2, meanwhile, would have handed host patching and fleet sizing back to application teams.<\/p>\n<h2>How Titus keeps one task on each instance<\/h2>\n<p>The compute platform team controls which workloads qualify and which instance families they can use. The autoscaler launches the smallest eligible instance that meets a task\u2019s CPU, memory and GPU requirements. Pod anti-affinity, a non-preemptible priority class and node taints keep other tasks off that node. Netflix also disabled defragmentation so the scheduler would not move a running task to repack the cluster.<\/p>\n<p>To assess isolation, Netflix runs a reference application alone and then alongside a disruptive \u201chavoc\u201d container. It compares throughput and 99th-percentile latency across the two runs. Netflix did not publish numerical results.<\/p>\n<h2>The trade-offs: startup time and unused capacity<\/h2>\n<p>A fresh instance takes tens of seconds to boot before it even begins pulling the container image. Keeping instances ready in advance is less effective than in a shared cluster because tasks require different instance sizes. Netflix maintains a small warm pool for the most latency-sensitive launches, limits the sizes it stocks and excludes bare-metal instances. Disabling Kubernetes preemption also removed a scheduling bottleneck that had left new nodes idle. Lazy image pulling with stargz or SOCI and checkpoint restoration with CRIU are longer-term options, not reported deployments.<\/p>\n<p>A dedicated instance is not necessarily a more efficient one. Netflix said sidecars and system services can consume tens of percent of a small instance\u2019s resources, compared with only a few percent on the largest sizes. But shared hosts can also have capacity left over that no waiting task fits. Restricting access to single-tenant mode lets Netflix reserve it for workloads that benefit without giving up the density of shared hosts elsewhere.<\/p>\n<p>Early users include managed Apache Flink, streaming data connectors, telemetry and logging pipelines, and some latency-sensitive GraphQL and edge services. As the rollout continues, Netflix is also working on an eBPF-based traffic shaper to replace HTB on shared clusters, alongside cache and memory-bandwidth partitioning. Its longer-term goal is a single compute API that chooses between EC2 and Titus based on the requirements an application team declares.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Netflix has added a single-tenant mode to Titus, its container platform, that runs one task per EC2 instance. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1001","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/posts\/1001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/comments?post=1001"}],"version-history":[{"count":0,"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/posts\/1001\/revisions"}],"wp:attachment":[{"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/media?parent=1001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/categories?post=1001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/tags?post=1001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}