Surprising Economics of Load-Balanced Systems - Marc's Blog
I have a system with c servers, each of which can only handle a single concurrent request, and has no internal queuing. The servers sit behind a load balancer, which contains an infinite queue. An unlimited number of clients offer c * 0.8 requests per second to the load balancer on average. In other words, we increase the offered load linearly with c to keep the per-server load constant. Once a request arrives at a server, it takes one second to process, on average. How does the client-observed mean request time vary with c? Option A is that the mean latency decreases quickly, asymptotically approaching one second as c increases (in other words, the time spent in queue approaches zero). Option B is constant. Option C is a linear improvement, and D is a linear degradation in latency. Which curve do you, intuitively, think that the latency will follow? I asked my Twitter followers the same question, and got an interestingly mixed result: Breaking down the problem a bit will help figure o
Surprising Economics of Load-Balanced Systems - Marc's Blog Marc's Blog About Me My name is Marc Brooker. I like to build things that work, and do cool stuff. I like building big things. I also dabble in machining, welding, cooking, and skiing. I am an engineer at Amazon Web Services (AWS) in Seattle, where I work on agentic AI, especially safety and policy for agentic AI. Before that, I worked on EC2, EBS, databases, serverless, and serverless databases. All opinions are my own. Links My Publications and Videos @marcbrooker on Mastodon @MarcJBrooker on Twitter Is this blog written by AI? Surp
saved by
related reading
- Transformer Inference Arithmetic | kipply's blogkipp.ly
- Queues Don't Fix Overloadferd.ca
- Look Ma, No Bubbles! Designing a Low-Latency Megakernel for Llama-1B · Hazy Researchhazyresearch.stanford.edu
- Is Frontier Asynchronous RL Solved? — Luke J. Huangluk-huang.github.io
- On-demand Container Loading in AWS Lambdaarxiv.org
- Production Twitter on One Machine? 100Gbps NICs and NVMe are fast - Tristan Humethume.ca
- Let’s Handle 1 Million Requests per Second, It’s Scarier Than You Think!youtube.com
- LLM Inference Performance Engineering: Best Practices | Databricks Blogdatabricks.com
- Why compute might get 10x more expensive in coming yearsdwarkesh.com
- How is LLaMa.cpp possible?finbarr.ca
- Modal's serverless Servers | Modal Blogmodal.com
- Mixture of Experts Quantile Balancing: Validated at 32B-A5B (1e22 FLOPs) Scaleopenathena.ai