Diagnosing skew and hot partitions 00:00:01 One tenant overloads a shard One customer's dashboards time out while most machines look quiet. Lea maps the customer's popular key to the shard that owns it. Adding up total fleet traffic hides the shape of work arriving at that one owner. The busiest partition normally receives two hundred requests per second. During the incident it sees eight hundred fifty. Two shards can hold equal bytes and still receive very different numbers of expensive writes. Lea measures operation cost as well as counts. Partitioning assigns data and its traffic to owners according to a key. Hashing spreads distinct keys, while ranges preserve locality for scans. 00:00:40 Map the busiest tenant to its owning partition Neither automatically divides the traffic of one frequently accessed value. Resharding trades migration work and temporary routing complexity for a new distribution. The router derives an owner from each write’s key. Separate one dominant key from many busy keys sharing an owner. Rebalance a range or explicitly distribute one logical key according to the access pattern. Measure migration completeness, query fan-out and user-facing tail latency. 00:01:10 Trade concentrated writes for read fan-out If she spreads this tenant's writes over several buckets, which previously simple read becomes more expensive? A tenant-wide query may now have to ask several owners and merge their results. Identify any per-tenant uniqueness, ordering or atomic update that the old key provided. Pick a compatible bucketing strategy and measure its busiest new partition. If load is spread over many keys on one shard, a range split or capacity rebalance may help without redesigning a single hot key. 00:01:42 Test the maximum rather than the average The busiest partition now receives three hundred ten requests per second. Horizontal partitioning divides rows among owners. Vertical partitioning divides attributes or responsibilities. Choose according to access locality and the cost of reconstructing a complete result. Lea measures the extra read fan-out under the same workload. A better key redistributes a measured burden while preserving the product's required invariants.