Sitemap
Cloud With Azeem

Cloud With Azeem

Engineering the systems behind modern technology. Exploring cloud infrastructure, data engineering, distributed systems, and AI infrastructure.

Press enter or click to view image in full size
Uber Discovered What Hash Rings Miss

Uber’s Secret to Better Shard Balancing

--

Read this article on Medium

Imagine running a cluster with six servers. Each server owns exactly 100 shards. Everything looks balanced. Your shard distribution dashboard is green, and there seems to be no reason to worry.

But your monitoring dashboard tells a different story.

One server is running at 90% CPU utilization, while another is barely reaching 35%.

You have enough capacity in the cluster, but you cannot use it effectively because a few servers are doing much more work than others.

This is a problem that traditional sharding approaches can overlook.

Uber recently shared an interesting engineering case study about this exact problem. After introducing its open-source Shard Manager, the company reported a 38% reduction in CPU utilization on its hottest Matching host.

The interesting part isn’t simply the improvement. It’s the engineering idea behind it: balance the work, not the number of shards.

Let’s understand why this happens and how Uber approached it.

Equal shards don’t mean equal work

--

--

Cloud With Azeem
Cloud With Azeem

Written by Cloud With Azeem

Engineering the systems behind modern technology. Exploring cloud infrastructure, data engineering, distributed systems, and AI infrastructure.