Load balancing with unequal work 00:00:01 Equal request counts, unequal queues Two checkout workers each take the same number of requests. Only one develops a long line. Lila sorts the tickets by what they make a worker do. A long export and a quick read use very different amounts of its time. The longest queue starts at two requests and later reaches forty-five. Equal arrivals did not guarantee equal departures. A single multiplexed connection can carry several requests while an idle connection can carry none. Routing algorithms choose a target at a particular granularity. A transport balancer generally selects a backend for a connection, while an application proxy can route requests. 00:00:41 Count occupied work beside incoming requests Round robin balances selections, weights describe intended proportions, and least-connections observes concurrent connections. None of these alone tells you exactly how much CPU a particular request will cost. The distributor considers eligible backends under its routing policy. Connection count and active request cost can now diverge. Compare in-flight work, service time and queue age by backend. Change routing or isolate long-running work and verify the busiest backend under comparable input. 00:01:14 Find which backend stays busy longest Which signal better predicts the next short read's wait when the workers are doing very different jobs? Compare outstanding work and service time by request class, then inspect the slowest worker. Where exports dominate, try a separate allocation or a policy that accounts for occupied work. Hold the input mix stable so the comparison has meaning. If outstanding work is balanced, compare host-specific CPU limits, data locality and dependency waits. 00:01:42 Separate long exports from short reads The longest queue falls to five requests after exports are separated. A transport balancer forwards connections. NAT changes addresses while direct server return can send responses on a different path. Observe both directions when interpreting traffic counts. Lila checks the tail for short reads and verifies exports still finish. A useful balancing signal measures the scarce resource the next request needs.